/*
Theme Name: IELTS Question Bank Child
Theme URI: https://example.com/
Description: Custom Hello Elementor child theme for the IELTS Question Bank website.
Author: IELTS Question Bank
Author URI: https://example.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: ielts-question-bank-child
*/

/* =========================================================
   GLOBAL DESIGN
========================================================= */

:root {
    --iqb-navy: #07154f;
    --iqb-navy-2: #11145f;
    --iqb-red: #e7192d;
    --iqb-red-dark: #ca1324;
    --iqb-purple: #5b24d6;
    --iqb-purple-dark: #4519b3;
    --iqb-text: #101746;
    --iqb-muted: #5d6475;
    --iqb-soft: #f7f7fc;
    --iqb-border: #e4e5ee;
    --iqb-white: #ffffff;
    --iqb-container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
    font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    color: var(--iqb-text);
    background: var(--iqb-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Make Elementor shortcode containers safe for dropdowns */
.elementor-location-header,
.elementor-location-header .elementor,
.elementor-location-header .e-con,
.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-widget-container {
    overflow: visible !important;
}

/* =========================================================
   HEADER
========================================================= */

#iqb-header,
#iqb-header * {
    font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

#iqb-header {
    position: relative;
    z-index: 9999;
    width: 100%;
    background: var(--iqb-white);
}

.iqb-announcement-bar {
    min-height: 36px;
    color: var(--iqb-white);
    background: linear-gradient(90deg, var(--iqb-navy), var(--iqb-navy-2));
}

.iqb-announcement-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.iqb-announcement-message {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.iqb-announcement-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffd43b;
    flex: 0 0 18px;
}

.iqb-announcement-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.iqb-language-selector {
    color: rgba(255,255,255,.94);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.iqb-main-navigation {
    position: relative;
    background: var(--iqb-white);
    border-bottom: 1px solid var(--iqb-border);
    overflow: visible;
}

.iqb-navigation-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: visible;
}

.iqb-header-logo {
    width: 235px;
    height: 58px;
    display: flex;
    align-items: center;
    flex: 0 0 235px;
    overflow: visible;
}

.iqb-header-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    opacity: 1;
    visibility: visible;
    filter: none;
    transform: none;
}

.iqb-desktop-menu {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 1.35vw, 26px);
}

.iqb-desktop-menu a {
    min-height: 86px;
    display: inline-flex;
    align-items: center;
    color: var(--iqb-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .2s ease, border-color .2s ease;
    opacity: 1;
    visibility: visible;
}

.iqb-desktop-menu a:hover,
.iqb-desktop-menu a:focus,
.iqb-desktop-menu a.is-current {
    color: var(--iqb-purple);
    border-bottom-color: var(--iqb-purple);
    background: transparent;
    opacity: 1;
    visibility: visible;
}

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

.iqb-search-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--iqb-text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    box-shadow: none;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.iqb-search-button:hover,
.iqb-search-button:focus-visible {
    color: var(--iqb-purple);
    background: #f4efff;
    border-color: #e2d7ff;
    outline: none;
    opacity: 1;
    visibility: visible;
}

.iqb-search-button svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9;
    stroke-linecap: round;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

.iqb-search-button svg * {
    fill: none !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.iqb-header-login,
.iqb-header-practice {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 21px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.iqb-header-login {
    color: var(--iqb-text);
    background: var(--iqb-white);
    border: 1px solid #aeb3c6;
}

.iqb-header-login:hover,
.iqb-header-login:focus {
    color: var(--iqb-purple);
    background: var(--iqb-white);
    border-color: var(--iqb-purple);
}

.iqb-header-practice {
    color: var(--iqb-white);
    background: var(--iqb-red);
    border: 1px solid var(--iqb-red);
    box-shadow: 0 8px 18px rgba(231,25,45,.18);
}

.iqb-header-practice:hover,
.iqb-header-practice:focus {
    color: var(--iqb-white);
    background: var(--iqb-red-dark);
    border-color: var(--iqb-red-dark);
    box-shadow: 0 9px 20px rgba(231,25,45,.22);
}

.iqb-search-panel {
    position: absolute;
    z-index: 99999;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: var(--iqb-soft);
    border-top: 1px solid var(--iqb-border);
    border-bottom: 1px solid var(--iqb-border);
    box-shadow: 0 14px 30px rgba(7,21,79,.1);
}

.iqb-search-panel[hidden] {
    display: none !important;
}

.iqb-search-form {
    display: flex;
    gap: 10px;
}

.iqb-search-form input {
    flex: 1 1 auto;
    min-height: 47px;
    min-width: 0;
    padding: 0 16px;
    color: var(--iqb-text);
    background: var(--iqb-white);
    border: 1px solid #dfe1ea;
    border-radius: 7px;
    font-size: 14px;
    outline: none;
}

.iqb-search-form input:focus {
    border-color: var(--iqb-purple);
    box-shadow: 0 0 0 3px rgba(91,36,214,.1);
}

.iqb-search-form input::placeholder {
    color: #8a8e9d;
    opacity: 1;
}

.iqb-search-form button {
    min-width: 116px;
    min-height: 47px;
    padding: 0 22px;
    color: var(--iqb-white);
    background: var(--iqb-purple);
    border: 1px solid var(--iqb-purple);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.iqb-search-form button:hover,
.iqb-search-form button:focus {
    color: var(--iqb-white);
    background: var(--iqb-purple-dark);
    border-color: var(--iqb-purple-dark);
}

.iqb-mobile-menu-button {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    color: var(--iqb-text);
    background: var(--iqb-white);
    border: 1px solid var(--iqb-border);
    border-radius: 7px;
    box-shadow: none;
    cursor: pointer;
}

.iqb-mobile-menu-button:hover,
.iqb-mobile-menu-button:focus-visible {
    color: var(--iqb-purple);
    background: #f4efff;
    border-color: #e2d7ff;
    outline: none;
}

.iqb-mobile-menu-button span {
    width: 21px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 3px;
}

.iqb-mobile-navigation {
    display: none;
    padding: 10px 20px 20px;
    background: var(--iqb-white);
    border-top: 1px solid var(--iqb-border);
    box-shadow: 0 20px 35px rgba(7,21,79,.1);
}

.iqb-mobile-navigation.iqb-mobile-menu-open {
    display: block;
}

.iqb-mobile-navigation a {
    display: block;
    padding: 13px 7px;
    color: var(--iqb-text);
    border-bottom: 1px solid #eff0f5;
    font-size: 14px;
    font-weight: 600;
}

.iqb-mobile-navigation a:hover,
.iqb-mobile-navigation a:focus {
    color: var(--iqb-purple);
}

.iqb-mobile-navigation .iqb-mobile-practice-button {
    margin-top: 13px;
    padding: 14px 18px;
    color: var(--iqb-white);
    background: var(--iqb-red);
    border: 0;
    border-radius: 7px;
    text-align: center;
    font-weight: 700;
}

/* =========================================================
   FOOTER
========================================================= */

.iqb-footer,
.iqb-footer * {
    font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

.iqb-footer {
    margin-top: 70px;
    background: var(--iqb-white);
}

.iqb-newsletter-section {
    padding: 0 0 28px;
}

.iqb-newsletter-box {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) minmax(390px, .95fr);
    align-items: center;
    gap: 27px;
    padding: 25px 34px;
    background: linear-gradient(100deg, #faf7ff 0%, #f3ecff 100%);
    border: 1px solid #ded4f3;
    border-radius: 12px;
}

.iqb-newsletter-icon {
    width: 80px;
    height: 69px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--iqb-purple);
    background: #e9ddff;
    border-radius: 18px;
    transform: rotate(-4deg);
}

.iqb-newsletter-icon svg {
    width: 49px;
    height: 49px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.iqb-newsletter-content h2 {
    margin: 0 0 7px;
    color: var(--iqb-text);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.iqb-newsletter-content p {
    margin: 0;
    color: var(--iqb-muted);
    font-size: 14px;
    line-height: 1.55;
}

.iqb-newsletter-form {
    min-width: 0;
}

.iqb-newsletter-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
}

.iqb-newsletter-form input {
    min-width: 0;
    min-height: 48px;
    padding: 0 15px;
    color: var(--iqb-text);
    background: var(--iqb-white);
    border: 1px solid var(--iqb-border);
    border-radius: 7px;
    font-size: 14px;
    outline: none;
}

.iqb-newsletter-form input:focus {
    border-color: var(--iqb-purple);
    box-shadow: 0 0 0 3px rgba(91,36,214,.1);
}

.iqb-newsletter-form button {
    min-height: 48px;
    padding: 0 24px;
    color: var(--iqb-white);
    background: var(--iqb-red);
    border: 1px solid var(--iqb-red);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.iqb-newsletter-form button:hover,
.iqb-newsletter-form button:focus {
    color: var(--iqb-white);
    background: var(--iqb-red-dark);
    border-color: var(--iqb-red-dark);
}

.iqb-newsletter-form small {
    display: block;
    margin-top: 7px;
    color: #7c8191;
    font-size: 10.5px;
}

.iqb-footer-main {
    padding: 10px 0 42px;
}

.iqb-footer-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(5, minmax(115px, 1fr));
    align-items: start;
    gap: 34px;
}

.iqb-footer-logo {
    width: 220px;
    height: auto;
    display: block;
}

.iqb-footer-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 55px;
    object-fit: contain;
    object-position: left center;
    opacity: 1;
    visibility: visible;
    filter: none;
    transform: none;
}

.iqb-footer-brand p {
    max-width: 255px;
    margin: 18px 0;
    color: var(--iqb-muted);
    font-size: 13px;
    line-height: 1.6;
}

.iqb-footer-socials {
    display: flex;
    align-items: center;
    gap: 9px;
}

.iqb-footer-socials a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--iqb-navy);
    background: #f1f2f7;
    border-radius: 50%;
    opacity: 1;
    visibility: visible;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.iqb-footer-socials a:hover,
.iqb-footer-socials a:focus {
    color: var(--iqb-white);
    background: var(--iqb-purple);
    transform: translateY(-2px);
}

.iqb-footer-socials svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
    visibility: visible;
}

.iqb-footer-socials .iqb-filled {
    fill: currentColor;
    stroke: currentColor;
}

.iqb-footer-socials .iqb-social-play {
    fill: #f1f2f7;
    stroke: none;
}

.iqb-footer-socials a:hover .iqb-social-play {
    fill: var(--iqb-purple);
}

.iqb-footer-column h3 {
    margin: 4px 0 16px;
    color: var(--iqb-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.iqb-footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.iqb-footer-menu li {
    margin: 0 0 9px;
}

.iqb-footer-menu a {
    color: var(--iqb-muted);
    font-size: 13px;
    line-height: 1.5;
    opacity: 1;
    visibility: visible;
}

.iqb-footer-menu a:hover,
.iqb-footer-menu a:focus {
    color: var(--iqb-purple);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 1;
    visibility: visible;
}

.iqb-footer-bottom {
    padding: 17px 0;
    color: var(--iqb-white);
    background: var(--iqb-navy);
}

.iqb-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.iqb-footer-bottom p {
    margin: 0;
    font-size: 10.5px;
    line-height: 1.5;
}

.iqb-footer-bottom p:last-child {
    max-width: 720px;
    color: rgba(255,255,255,.72);
    text-align: right;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
    .iqb-header-logo {
        width: 205px;
        flex-basis: 205px;
    }

    .iqb-desktop-menu {
        gap: 14px;
    }

    .iqb-desktop-menu a {
        font-size: 13px;
    }

    .iqb-header-login,
    .iqb-header-practice {
        padding-inline: 15px;
    }

    .iqb-footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }
}

@media (max-width: 1050px) {
    .iqb-desktop-menu {
        display: none;
    }

    .iqb-navigation-inner {
        min-height: 74px;
    }

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

    .iqb-mobile-menu-button {
        display: flex;
    }

    .iqb-newsletter-box {
        grid-template-columns: auto 1fr;
    }

    .iqb-newsletter-form {
        grid-column: 1 / -1;
    }

    .iqb-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .iqb-footer-brand {
        grid-column: 1 / -1;
    }

    .iqb-footer-brand p {
        max-width: 500px;
    }
}

@media (max-width: 720px) {
    .iqb-container {
        width: min(calc(100% - 28px), var(--iqb-container));
    }

    .iqb-announcement-message {
        max-width: 78%;
        font-size: 10.5px;
    }

    .iqb-language-selector {
        font-size: 10px;
    }

    .iqb-header-logo {
        width: 170px;
        height: 44px;
        flex-basis: 170px;
    }

    .iqb-search-button,
    .iqb-header-login {
        display: none;
    }

    .iqb-header-practice {
        min-height: 40px;
        padding: 8px 13px;
        font-size: 11.5px;
    }

    .iqb-search-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .iqb-search-form button {
        min-height: 45px;
    }

    .iqb-newsletter-box {
        grid-template-columns: 1fr;
        padding: 23px;
        text-align: center;
    }

    .iqb-newsletter-icon {
        margin-inline: auto;
    }

    .iqb-newsletter-form {
        grid-column: auto;
    }

    .iqb-newsletter-input-row {
        grid-template-columns: 1fr;
    }

    .iqb-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 29px 24px;
    }

    .iqb-footer-brand {
        grid-column: 1 / -1;
    }

    .iqb-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .iqb-footer-bottom p:last-child {
        text-align: center;
    }
}

@media (max-width: 470px) {
    .iqb-header-practice {
        display: none;
    }

    .iqb-footer-grid {
        grid-template-columns: 1fr;
    }

    .iqb-footer-brand {
        grid-column: auto;
    }
}
/* ==========================================================
   IELTS QUESTION BANK — HOMEPAGE
   Shortcode: [iqb_homepage]
========================================================== */

.home .iqb-footer {
    margin-top: 0 !important;
}

.iqb-home {
    width: 100%;
    color: #101746;
    background: #ffffff;
    font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

.iqb-home svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================
   HERO
========================================================== */

.iqb-home-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 40% 40%,
            rgba(91, 36, 214, 0.035),
            transparent 35%
        ),
        #ffffff;
}

.iqb-home-hero-grid {
    width: min(calc(100% - 40px), 1240px);
    min-height: 360px;
    display: grid;
    grid-template-columns: 50% 50%;
    margin-right: auto;
    margin-left: auto;
}

.iqb-home-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px 40px 35px 10px;
}

.iqb-home-trust-badge {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 13px;
    color: #5b24d6;
    background: #f5efff;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.iqb-home-trust-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.iqb-home-trust-icon svg {
    width: 18px;
    height: 18px;
}

.iqb-home-hero h1 {
    margin: 0;
    color: #101746;
    font-size: clamp(40px, 4.2vw, 59px);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.iqb-home-hero h1 span {
    color: #101746;
}

.iqb-home-hero-description {
    max-width: 520px;
    margin: 18px 0 0;
    color: #5d6475;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.iqb-home-hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.iqb-home-primary-button,
.iqb-home-video-button {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 11px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.iqb-home-primary-button {
    color: #ffffff !important;
    background: #e7192d;
    border: 1px solid #e7192d;
    box-shadow: 0 9px 20px rgba(231, 25, 45, 0.15);
}

.iqb-home-primary-button:hover {
    color: #ffffff !important;
    background: #cb1324;
    border-color: #cb1324;
    transform: translateY(-1px);
}

.iqb-home-primary-button svg {
    width: 18px;
    height: 18px;
}

.iqb-home-video-button {
    color: #101746 !important;
    background: #ffffff;
    border: 1px solid #d6d9e5;
}

.iqb-home-video-button:hover {
    color: #5b24d6 !important;
    border-color: #5b24d6;
    transform: translateY(-1px);
}

.iqb-home-video-button svg {
    width: 20px;
    height: 20px;
}

.iqb-home-hero-visual {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.iqb-home-hero-visual::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -90px;
    left: -85px;
    width: 250px;
    height: 540px;
    background: #ffffff;
    border-radius: 50%;
    transform: rotate(8deg);
}

.iqb-home-hero-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center 45%;
}

.iqb-home-updated-badge {
    position: absolute;
    z-index: 4;
    top: 34px;
    right: 37px;
    width: 102px;
    height: 102px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, #7029e5, #4d19b7);
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 11px 28px rgba(66, 23, 154, 0.24);
}

.iqb-home-updated-icon {
    width: 31px;
    height: 31px;
    margin-bottom: 1px;
}

.iqb-home-updated-icon svg {
    width: 31px;
    height: 31px;
    stroke-width: 1.7;
}

.iqb-home-updated-badge strong,
.iqb-home-updated-badge > span:last-child {
    font-size: 13px;
    font-weight: 750;
    line-height: 1.08;
}

.iqb-home-recent-badge {
    position: absolute;
    z-index: 4;
    top: 146px;
    right: 27px;
    min-width: 145px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(220, 222, 233, 0.9);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(7, 21, 79, 0.15);
}

.iqb-home-recent-badge-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b24d6;
    background: #f2eaff;
    border-radius: 9px;
}

.iqb-home-recent-badge-icon svg {
    width: 22px;
    height: 22px;
}

.iqb-home-recent-badge > div:last-child {
    display: flex;
    flex-direction: column;
}

.iqb-home-recent-badge strong {
    color: #5b24d6;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.iqb-home-recent-badge span {
    margin-top: 5px;
    color: #101746;
    font-size: 12px;
    font-weight: 700;
}

.iqb-home-recent-badge small {
    margin-top: 4px;
    color: #7b8191;
    font-size: 9px;
}

/* ==========================================================
   STATISTICS
========================================================== */

.iqb-home-statistics {
    position: relative;
    z-index: 6;
    width: min(calc(100% - 40px), 1240px);
    min-height: 96px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
    padding: 0 18px;
    background: #ffffff;
    border: 1px solid #dee0e9;
    border-radius: 13px;
    box-shadow: 0 10px 30px rgba(7, 21, 79, 0.045);
}

.iqb-home-stat-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 25px;
}

.iqb-home-stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 0;
    bottom: 22px;
    width: 1px;
    background: #e3e4ec;
}

.iqb-home-stat-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b24d6;
    background: #f4efff;
    border-radius: 50%;
}

.iqb-home-stat-icon svg {
    width: 27px;
    height: 27px;
}

.iqb-home-stat-item > div:last-child {
    display: flex;
    flex-direction: column;
}

.iqb-home-stat-item strong {
    color: #101746;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.05;
}

.iqb-home-stat-item span {
    margin-top: 4px;
    color: #101746;
    font-size: 12px;
    font-weight: 650;
}

.iqb-home-stat-item small {
    margin-top: 3px;
    color: #7b8191;
    font-size: 10px;
}

/* ==========================================================
   COMMON SECTIONS
========================================================== */

.iqb-home-section {
    width: min(calc(100% - 40px), 1240px);
    margin-right: auto;
    margin-left: auto;
}

.iqb-home-section-heading {
    margin-bottom: 23px;
    text-align: center;
}

.iqb-home-section-heading h2,
.iqb-home-title-row h2 {
    margin: 0;
    color: #101746;
    font-size: 26px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.iqb-home-section-heading p {
    margin: 8px 0 0;
    color: #687083;
    font-size: 13px;
}

/* ==========================================================
   MODULES
========================================================== */

.iqb-home-modules {
    padding-top: 30px;
}

.iqb-home-module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.iqb-home-module-card {
    min-height: 142px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 19px 18px;
    background: #ffffff;
    border: 1px solid #dfe1e9;
    border-radius: 11px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.iqb-home-module-card:hover {
    transform: translateY(-3px);
    border-color: #cfc7e6;
    box-shadow: 0 13px 30px rgba(7, 21, 79, 0.07);
}

.iqb-home-module-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.iqb-home-module-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.7;
}

.iqb-home-module-listening .iqb-home-module-icon {
    color: #5b24d6;
    background: #eee5ff;
}

.iqb-home-module-reading .iqb-home-module-icon {
    color: #e7192d;
    background: #ffe9eb;
}

.iqb-home-module-writing .iqb-home-module-icon {
    color: #15978c;
    background: #e1f6f3;
}

.iqb-home-module-speaking .iqb-home-module-icon {
    color: #e98715;
    background: #fff0dd;
}

.iqb-home-module-copy h3 {
    margin: 2px 0 7px;
    color: #101746;
    font-size: 17px;
    font-weight: 750;
}

.iqb-home-module-copy p {
    min-height: 50px;
    margin: 0;
    color: #5d6475;
    font-size: 12px;
    line-height: 1.45;
}

.iqb-home-module-copy a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    font-size: 12px;
    font-weight: 700;
}

.iqb-home-module-copy a svg {
    width: 16px;
    height: 16px;
}

.iqb-home-module-listening a {
    color: #5b24d6;
}

.iqb-home-module-reading a {
    color: #e7192d;
}

.iqb-home-module-writing a {
    color: #15978c;
}

.iqb-home-module-speaking a {
    color: #e98715;
}

/* ==========================================================
   RECENT TESTS
========================================================== */

.iqb-home-recent-tests {
    padding-top: 30px;
}

.iqb-home-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 14px;
}

.iqb-home-title-row a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5b24d6;
    font-size: 12px;
    font-weight: 700;
}

.iqb-home-title-row a svg {
    width: 17px;
    height: 17px;
}

.iqb-home-test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.iqb-home-test-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 46% 54%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe1e9;
    border-radius: 11px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.iqb-home-test-card:hover {
    transform: translateY(-3px);
    border-color: #ccc4e6;
    box-shadow: 0 13px 30px rgba(7, 21, 79, 0.075);
}

.iqb-home-test-image {
    position: relative;
    min-height: 170px;
    display: block;
    overflow: hidden;
    background: #f3efff;
}

.iqb-home-test-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.iqb-home-test-card:hover .iqb-home-test-image img {
    transform: scale(1.035);
}

.iqb-home-new-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    color: #ffffff;
    background: #5b24d6;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
}

.iqb-home-test-placeholder {
    width: 100%;
    height: 100%;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b24d6;
}

.iqb-home-test-placeholder svg {
    width: 46px;
    height: 46px;
}

.iqb-home-test-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.iqb-home-test-title {
    overflow: hidden;
    color: #101746 !important;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iqb-home-test-title:hover {
    color: #5b24d6 !important;
}

.iqb-home-exam-type {
    width: max-content;
    max-width: 100%;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
}

.iqb-home-exam-academic {
    color: #5b24d6;
}

.iqb-home-exam-general {
    color: #189443;
}

.iqb-home-test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 11px;
}

.iqb-home-test-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666e81;
    font-size: 10px;
}

.iqb-home-test-meta svg {
    width: 13px;
    height: 13px;
}

.iqb-home-module-dots {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.iqb-home-dot {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 750;
}

.iqb-home-dot.listening {
    color: #5b24d6;
    background: #e7dcff;
}

.iqb-home-dot.reading {
    color: #dd1730;
    background: #ffe1e6;
}

.iqb-home-dot.writing {
    color: #148a83;
    background: #d9f3ef;
}

.iqb-home-dot.speaking {
    color: #d8760c;
    background: #ffe9cb;
}

.iqb-home-test-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    color: #5d6475;
    font-size: 10px;
}

.iqb-home-no-tests {
    grid-column: 1 / -1;
    padding: 35px;
    background: #f7f7fc;
    border: 1px dashed #cfd2df;
    border-radius: 11px;
    text-align: center;
}

.iqb-home-no-tests h3 {
    margin: 0;
}

.iqb-home-no-tests p {
    margin: 8px 0 0;
    color: #5d6475;
}

/* ==========================================================
   BENEFITS
========================================================== */

.iqb-home-benefits {
    padding-top: 28px;
    padding-bottom: 34px;
}

.iqb-home-benefits-heading {
    margin-bottom: 20px;
}

.iqb-home-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.iqb-home-benefit-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 8px 24px;
}

.iqb-home-benefit-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    bottom: 8px;
    width: 1px;
    background: #e4e5ed;
}

.iqb-home-benefit-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b24d6;
    background: #f3eeff;
    border-radius: 50%;
}

.iqb-home-benefit-icon svg {
    width: 27px;
    height: 27px;
}

.iqb-home-benefit-item h3 {
    margin: 3px 0 6px;
    color: #101746;
    font-size: 14px;
    font-weight: 750;
}

.iqb-home-benefit-item p {
    margin: 0;
    color: #5d6475;
    font-size: 11px;
    line-height: 1.5;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1024px) {

    .iqb-home-hero-grid {
        grid-template-columns: 52% 48%;
    }

    .iqb-home-hero-content {
        padding-right: 25px;
    }

    .iqb-home-hero h1 {
        font-size: 44px;
    }

    .iqb-home-statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .iqb-home-stat-item:nth-child(2)::after {
        display: none;
    }

    .iqb-home-stat-item:nth-child(-n+2) {
        border-bottom: 1px solid #e3e4ec;
    }

    .iqb-home-module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .iqb-home-test-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .iqb-home-benefit-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
    }

    .iqb-home-benefit-item:nth-child(2)::after {
        display: none;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 720px) {

    .iqb-home-hero-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .iqb-home-hero-content {
        padding: 32px 20px;
    }

    .iqb-home-hero h1 {
        font-size: 40px;
    }

    .iqb-home-hero-description {
        font-size: 15px;
    }

    .iqb-home-hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .iqb-home-primary-button,
    .iqb-home-video-button {
        width: 100%;
    }

    .iqb-home-hero-visual {
        min-height: 360px;
    }

    .iqb-home-hero-visual::before {
        display: none;
    }

    .iqb-home-updated-badge {
        top: 20px;
        right: 20px;
        width: 92px;
        height: 92px;
    }

    .iqb-home-recent-badge {
        top: auto;
        right: 20px;
        bottom: 20px;
    }

    .iqb-home-statistics,
    .iqb-home-section {
        width: calc(100% - 28px);
    }

    .iqb-home-statistics {
        grid-template-columns: 1fr;
        margin-top: 14px;
        padding: 0;
    }

    .iqb-home-stat-item {
        padding: 16px 20px;
    }

    .iqb-home-stat-item::after {
        display: none !important;
    }

    .iqb-home-stat-item:not(:last-child) {
        border-bottom: 1px solid #e3e4ec;
    }

    .iqb-home-module-grid,
    .iqb-home-test-grid,
    .iqb-home-benefit-grid {
        grid-template-columns: 1fr;
    }

    .iqb-home-module-card {
        min-height: 0;
    }

    .iqb-home-test-card {
        grid-template-columns: 44% 56%;
    }

    .iqb-home-benefit-item {
        padding: 8px 0;
    }

    .iqb-home-benefit-item::after {
        display: none !important;
    }
}

@media (max-width: 470px) {

    .iqb-home-hero h1 {
        font-size: 34px;
    }

    .iqb-home-test-card {
        grid-template-columns: 1fr;
    }

    .iqb-home-test-image {
        min-height: 205px;
    }

    .iqb-home-title-row {
        align-items: flex-start;
    }

    .iqb-home-title-row h2 {
        font-size: 23px;
    }
}