/* Home page sections. Loaded after home1-style.css, on the home page only. */

/* --------------- Headings --------------- */
h2.sub-head {
    letter-spacing: 0;
}

.sec-lead {
    font-size: 36px;
    line-height: 48px;
    letter-spacing: -2px;
}

.header-sa .caption h1.hero-title {
    font-size: 72px;
    line-height: 1.08;
    letter-spacing: -3px;
}

.header-sa .caption .text {
    margin-top: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.services-sa .item h3 {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
}

.work-card .card-item h3 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1px;
}

.work-card .card-item .img img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
}

.work-card .card-item .cont .tag {
    display: inline-block;
}

.services-sa .item .img img {
    width: 100%;
    height: auto;
}

.intro-sa img {
    height: auto;
}

/* --------------- Service cards: always the same height --------------- */
.services-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    row-gap: 50px;
}

.services-cards > [class*="col-"] {
    display: flex;
    flex-direction: column;
    width: 100%; /* Bootstrap would otherwise size the column to a third of its grid cell. */
}

.services-cards .item {
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* Spare height goes above the picture, so the pictures line up at the bottom. */
.services-cards .item .img {
    margin-top: auto;
}

@media screen and (min-width: 992px) {
    .services-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --------------- About --------------- */
.about-summary {
    font-size: 26px;
    line-height: 40px;
}

.fact-list {
    margin: 50px 0 0;
}

.fact-list .fact {
    display: flex;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.fact-list dt {
    flex: 0 0 170px;
    font-size: 14px;
    font-weight: 400;
    color: #9a9a9a;
}

.fact-list dd {
    margin: 0;
    font-size: 16px;
}

/* --------------- Cards --------------- */
.info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 30px;
    border-radius: 20px;
    background: var(--bg-color);
}

.info-card-highlight {
    border: 1px solid rgba(201, 243, 29, .4);
    background: linear-gradient(160deg, rgba(201, 243, 29, .09), var(--bg-color) 60%);
}

.info-card-highlight .card-badge {
    border-color: #c9f31d;
    color: #c9f31d;
}

.info-card h3 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -.5px;
}

.info-card p {
    font-size: 15px;
    line-height: 24px;
    color: #c4c4c4;
}

.info-card .butn {
    margin-top: auto;
}

/* .butn-sm has no padding in the theme, so text touched the border. */
.info-card .butn-sm {
    padding: 8px 18px;
}

.info-card p + .butn {
    position: relative;
    top: 24px;
    margin-bottom: 24px;
}

.card-badge,
.step-number {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
}

.step-number {
    color: #c9f31d;
}

/* --------------- Partnerships --------------- */
.partner-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    border-radius: 20px;
    background: var(--bg-color);
}

.partner-card .preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border-radius: 14px;
}

.partner-card .cont {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 10px 10px;
}

.partner-card h3 {
    margin-bottom: 14px;
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -.5px;
}

.partner-card p {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 24px;
    color: #c4c4c4;
}

.partner-card p.involvement {
    color: #fff;
}

.partner-card .butn {
    margin-top: auto;
}

.partner-card .card-badge {
    border-color: #c9f31d;
    color: #c9f31d;
}

html[dir="rtl"] .partner-card h3 {
    letter-spacing: 0;
}

/* --------------- Sponsored project --------------- */
.sponsor-sa .box {
    padding: 60px;
    border: 1px solid rgba(166, 214, 120, .35);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(40, 94, 45, .35), rgba(33, 33, 33, .9) 60%);
}

.sponsor-sa .card-badge {
    border-color: #a6d678;
    color: #cdee9f;
}

.sponsor-sa h3 {
    margin-bottom: 20px;
    font-size: 40px;
    line-height: 52px;
    letter-spacing: -1px;
}

.sponsor-sa .role {
    margin-top: 16px;
    color: #c4c4c4;
}

.sponsor-sa .preview img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
}

.sponsor-sa .features {
    margin-top: 50px;
}

.sponsor-sa h4 {
    margin-bottom: 18px;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0;
}

.sponsor-sa .features ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sponsor-sa .features li {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 15px;
    line-height: 24px;
}

.sponsor-sa .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.sponsor-sa .support {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 30px;
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sponsor-sa .support p {
    flex: 1 1 320px;
    font-size: 15px;
    line-height: 24px;
}

.sponsor-sa .support img {
    width: 174px;
    height: auto;
    border-radius: 6px;
}

.sponsor-sa .credits {
    margin-top: 30px;
    font-size: 14px;
    line-height: 24px;
    color: #a9a9a9;
}

.sponsor-sa .credits a {
    color: #fff;
    text-decoration: underline;
}

/* --------------- Process --------------- */
.process-list {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.tech-stack {
    margin-top: 50px;
}

.tech-stack h3 {
    letter-spacing: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.tech-stack h4 {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    color: #9a9a9a;
}

.tech-stack ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tech-stack li {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    font-size: 14px;
}

/* --------------- FAQ help card --------------- */
.faq-help {
    padding: 30px;
    border-radius: 20px;
    background: var(--bg-color);
}

.faq-help h3 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 34px;
    letter-spacing: 0;
}

.faq-help > p {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 24px;
    color: #c4c4c4;
}

.faq-help .direct {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.faq-help .direct a {
    align-self: flex-start;
    color: #fff;
}

/* --------------- Contact and footer --------------- */
.contact-sa .info h2 {
    font-size: 36px;
    line-height: 48px;
    letter-spacing: -2px;
}

.footer-sa .contact-info .social-icon a svg {
    max-width: 18px;
}

.footer-sa .sub-footer .links {
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: flex-end !important;
}

/* --------------- Right to left --------------- */
html[dir="rtl"] .sec-head .sub-head {
    padding-left: 0;
    padding-right: 25px;
}

html[dir="rtl"] .sec-head .sub-head:after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .offset-lg-5 {
    margin-left: 0 !important;
    margin-right: 41.66666667% !important;
}

html[dir="rtl"] .header-sa .caption h1.hero-title,
html[dir="rtl"] .sec-lead,
html[dir="rtl"] .contact-sa .info h2,
html[dir="rtl"] .info-card h3,
html[dir="rtl"] .work-card .card-item h3 {
    letter-spacing: 0;
}

html[dir="rtl"] .header-sa .caption h1.hero-title {
    line-height: 1.35;
}

html[dir="rtl"] .sponsor-sa h3 {
    letter-spacing: 0;
}

html[dir="rtl"] .process-list,
html[dir="rtl"] .sponsor-sa .features ul,
html[dir="rtl"] .tech-stack ul {
    padding-right: 0;
}

/* --------------- Responsive --------------- */
@media screen and (max-width: 991.98px) {
    .faq-help {
        margin-top: 30px;
    }

    html[dir="rtl"] .offset-lg-5,
    html[dir="rtl"] .offset-lg-1 {
        margin-right: 0 !important;
    }

    .footer-sa .sub-footer .links {
        justify-content: flex-start !important;
    }
}

@media screen and (max-width: 768px) {
    .header-sa .caption h1.hero-title {
        font-size: 44px;
        line-height: 1.2;
        letter-spacing: -1.5px;
    }

    .sec-lead,
    .contact-sa .info h2 {
        font-size: 26px;
        line-height: 38px;
        letter-spacing: -1px;
    }

    .sponsor-sa .box {
        padding: 30px 20px;
    }

    .sponsor-sa h3 {
        font-size: 28px;
        line-height: 40px;
    }

    .sponsor-sa .features ul {
        grid-template-columns: 1fr;
    }

    .sponsor-sa .support p {
        flex-basis: 100%;
    }

    .about-summary {
        font-size: 20px;
        line-height: 32px;
    }

    .fact-list .fact {
        flex-direction: column;
        gap: 4px;
    }

    .fact-list dt {
        flex-basis: auto;
    }
}
