/* =========================================
   Mindora Tests Page
========================================= */

.tests-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 40px 0 80px;
    background:
        radial-gradient(circle at 10% 10%, rgba(46, 204, 113, .12), transparent 25%),
        radial-gradient(circle at 90% 30%, rgba(39, 174, 96, .12), transparent 25%),
        linear-gradient(135deg, #f7fff9 0%, #edfff3 45%, #f9fffb 100%);
}


/* =========================================
   Decorations
========================================= */

.tests-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
    opacity: .35;
}

.orb-1 {
    width: 240px;
    height: 240px;
    background: #a9f5c5;
    top: 120px;
    right: -100px;
}

.orb-2 {
    width: 180px;
    height: 180px;
    background: #7ce5a3;
    top: 650px;
    left: -80px;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: #d2ffe1;
    top: 1200px;
    right: 5%;
}

.tests-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tests-stars span {
    position: absolute;
    color: #20a95b;
    opacity: .35;
    animation: starFloat 5s ease-in-out infinite;
}

.tests-stars span:nth-child(1) {
    top: 12%;
    right: 15%;
}

.tests-stars span:nth-child(2) {
    top: 25%;
    left: 10%;
}

.tests-stars span:nth-child(3) {
    top: 45%;
    right: 7%;
}

.tests-stars span:nth-child(4) {
    top: 65%;
    left: 8%;
}

.tests-stars span:nth-child(5) {
    top: 78%;
    right: 18%;
}

.tests-stars span:nth-child(6) {
    top: 90%;
    left: 25%;
}

@keyframes starFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-12px) rotate(15deg);
    }
}


/* =========================================
   Hero
========================================= */

.tests-hero {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
    min-height: 430px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    direction: rtl;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 50px;
    color: #168f4c;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(31, 174, 91, .18);
    box-shadow: 0 10px 30px rgba(20, 120, 65, .08);
    font-size: 17px;
    font-weight: 700;
}

.hero-text h1 {
    margin: 25px 0 15px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.15;
    color: #143c29;
    font-weight: 900;
}

.hero-text h1 span {
    display: block;
    color: #1eaa5a;
}

.hero-text p {
    max-width: 650px;
    color: #658173;
    font-size: 17px;
    line-height: 2;
}


/* =========================================
   Search
========================================= */

.hero-search {
    max-width: 650px;
    margin-top: 28px;
    background: #fff;
    border: 1px solid #dcefe3;
    border-radius: 18px;
    padding: 7px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 50px rgba(28, 105, 58, .1);
}

.hero-search>i {
    color: #20a95b;
    margin: 0 12px;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    color: #193c2a;
}

.hero-search button {
    border: none;
    background: #1fa85a;
    color: white;
    padding: 13px 25px;
    border-radius: 13px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: .25s;
}

.hero-search button:hover {
    background: #178b49;
    transform: translateY(-2px);
}


/* =========================================
   Hero Planet
========================================= */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-planet {
    width: 310px;
    height: 310px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planet-core {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #77e5a3, #1a9d53 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 75px;
    box-shadow:
        0 30px 80px rgba(22, 153, 78, .3),
        inset -15px -20px 30px rgba(0, 80, 35, .18);
    animation: planetFloat 5s ease-in-out infinite;
}

.planet-ring {
    position: absolute;
    border: 1px solid rgba(29, 163, 87, .35);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.ring-one {
    width: 290px;
    height: 100px;
}

.ring-two {
    width: 350px;
    height: 130px;
    transform: rotate(25deg);
}

@keyframes planetFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-star {
    position: absolute;
    color: #1ea95a;
    font-size: 25px;
}

.star-one {
    top: 20px;
    right: 30px;
}

.star-two {
    bottom: 40px;
    left: 10px;
}

.star-three {
    top: 90px;
    left: -5px;
}


/* =========================================
   Statistics
========================================= */

.test-statistics {
    position: relative;
    z-index: 3;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto 100px;
    padding: 22px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(20px);
    border: 1px solid #e0f1e6;
    border-radius: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 20px 60px rgba(30, 105, 60, .08);
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-left: 1px solid #e5f0e9;
}

.stat-item:last-child {
    border-left: none;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8faef;
    color: #1da357;
    font-size: 20px;
}

.stat-item strong,
.stat-item span {
    display: block;
}

.stat-item strong {
    color: #17472e;
    font-size: 18px;
}

.stat-item span {
    color: #799287;
    font-size: 16px;
    margin-top: 3px;
}


/* =========================================
   Sections
========================================= */

.test-categories,
.tests-library {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto 90px;
    position: relative;
    z-index: 2;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    direction: rtl;
    margin-bottom: 28px;
}

.section-eyebrow {
    display: block;
    color: #1c9e54;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-heading h2 {
    margin: 0;
    color: #153d29;
    font-size: 32px;
    font-weight: 900;
}

.section-heading p {
    max-width: 400px;
    color: #789083;
    line-height: 1.9;
}


/* =========================================
   Categories
========================================= */

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    direction: rtl;
}

.category-item {
    border: 1px solid #dcece2;
    background: rgba(255, 255, 255, .75);
    color: #5b7566;
    border-radius: 14px;
    padding: 12px 18px;
    font-family: inherit;
    cursor: pointer;
    transition: .25s;
}

.category-item i {
    margin-left: 6px;
}

.category-item:hover,
.category-item.active {
    color: white;
    background: #1fa75a;
    border-color: #1fa75a;
    box-shadow: 0 10px 25px rgba(31, 167, 90, .2);
}


/* =========================================
   Featured Test
========================================= */

.featured-test {
    width: min(1200px, calc(100% - 40px));
    min-height: 380px;
    margin: 0 auto 100px;
    padding: 55px 65px;
    border-radius: 35px;
    background:
        radial-gradient(circle at 90% 20%, rgba(142, 244, 176, .35), transparent 25%),
        linear-gradient(135deg, #0e6537, #16884a);
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 10px 40px 100px rgba(17, 111, 57, .2);
}

.featured-test::after {
    content: "";
    position: absolute;
    height: 450px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    right: -180px;
    top: -150px;
}

.featured-content {
    direction: rtl;
    position: relative;
    z-index: 2;
}

.featured-label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 17px;
    padding: 8px 13px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .12);
}

.featured-content h2 {
    font-size: 42px;
    line-height: 1.4;
    margin: 18px 0;
}

.featured-content h2 span {
    color: #a5f2bf;
}

.featured-content p {
    line-height: 2;
    color: rgba(255, 255, 255, .78);
}

.featured-meta {
    display: flex;
    gap: 25px;
    margin: 25px 0;
    font-size: 17px;
    color: #d8f7e2;
}

.featured-meta i {
    margin-left: 5px;
}

.featured-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #168347;
    padding: 14px 23px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: .25s;
}

.featured-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .15);
}

.featured-visual {
    display: flex;
    justify-content: center;
}

.featured-circle {
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.featured-icon {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.circle-symbol {
    position: absolute;
    color: #a7f5bf;
}

.symbol-1 {
    top: 10px;
    right: 25px;
}

.symbol-2 {
    bottom: 20px;
    left: 20px;
}

.symbol-3 {
    top: 80px;
    left: -15px;
}


/* =========================================
   Test Grid
========================================= */

.tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    direction: rtl;
}

.test-card {
    overflow: hidden;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #dfede4;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(24, 100, 52, .07);
    transition: .3s;
}

.test-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(24, 100, 52, .13);
}

.test-card-top {
    height: 150px;
    position: relative;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.test-card-top::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
}

.purple {
    background: linear-gradient(135deg, #7559c9, #9d7bea);
}

.green {
    background: linear-gradient(135deg, #159c53, #4dcc7d);
}

.orange {
    background: linear-gradient(135deg, #e28a3b, #f2b46d);
}

.blue {
    background: linear-gradient(135deg, #4389c5, #71b8e8);
}

.pink {
    background: linear-gradient(135deg, #cf668c, #ee9eb8);
}

.teal {
    background: linear-gradient(135deg, #159d96, #55c9c0);
}

.test-category {
    position: absolute;
    right: 18px;
    top: 18px;
    color: white;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .16);
}

.test-card-icon {
    width: 75px;
    height: 75px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 35px;
}

.test-decoration {
    position: absolute;
    bottom: 15px;
    left: 18px;
    color: rgba(255, 255, 255, .8);
    font-size: 25px;
}

.test-card-body {
    padding: 23px;
    direction: rtl;
}

.test-card-body h3 {
    margin: 0 0 10px;
    color: #173d2a;
    font-size: 19px;
}

.test-card-body p {
    color: #7a8f83;
    font-size: 17px;
    line-height: 1.9;
    min-height: 50px;
}

.test-info {
    display: flex;
    gap: 18px;
    color: #82968a;
    font-size: 15px;
    margin: 18px 0;
}

.test-info i {
    color: #21a65a;
    margin-left: 4px;
}

.test-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #198c4c;
    background: #edfaf2;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    transition: .2s;
}

.test-button:hover {
    background: #1fa75a;
    color: white;
}


/* =========================================
   Career CTA
========================================= */

.career-cta {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto 90px;
    padding: 42px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #dcece2;
    box-shadow: 0 20px 60px rgba(25, 100, 55, .08);
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.career-icon {
    min-width: 75px;
    height: 75px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5faed;
    color: #1da458;
    font-size: 32px;
}

.career-content {
    flex: 1;
}

.career-content>span {
    color: #1da458;
    font-size: 16px;
    font-weight: 800;
}

.career-content h2 {
    color: #173e2a;
    margin: 8px 0;
    font-size: 25px;
}

.career-content h2 strong {
    color: #1ca257;
}

.career-content p {
    color: #809389;
    line-height: 1.9;
    font-size: 17px;
    margin: 0;
}

.career-button {
    white-space: nowrap;
    background: #1fa65a;
    color: white;
    padding: 14px 20px;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 700;
}

.career-decoration {
    position: absolute;
    color: #b7eecb;
    font-size: 35px;
}

.decoration-one {
    left: 25px;
    top: 20px;
}

.decoration-two {
    left: 100px;
    bottom: 15px;
}


/* =========================================
   Bottom
========================================= */

.tests-bottom-message {
    width: min(700px, calc(100% - 40px));
    margin: auto;
    text-align: center;
    direction: rtl;
}

.message-icon {
    width: 60px;
    height: 60px;
    margin: auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4faec;
    color: #1ca157;
    font-size: 25px;
}

.tests-bottom-message h2 {
    color: #173d2a;
    margin: 18px 0 10px;
}

.tests-bottom-message p {
    color: #809287;
    line-height: 2;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 1000px) {

    .tests-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p,
    .hero-search {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        display: none;
    }

    .test-statistics {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item:nth-child(2) {
        border-left: none;
    }

    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-test {
        grid-template-columns: 1fr;
    }

    .featured-visual {
        display: none;
    }

}

@media (max-width: 700px) {

    .tests-page {
        padding-top: 20px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-search {
        flex-wrap: wrap;
        padding: 10px;
    }

    .hero-search input {
        min-width: 150px;
    }

    .hero-search button {
        margin-top: 7px;
        width: 100%;
    }

    .test-statistics {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        border-left: none;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .tests-grid {
        grid-template-columns: 1fr;
    }

    .featured-test {
        padding: 35px 25px;
    }

    .featured-content h2 {
        font-size: 30px;
    }

    .featured-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .career-cta {
        flex-direction: column;
        text-align: center;
    }

    .career-button {
        width: 100%;
        text-align: center;
    }
}
