@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&display=swap');

/* =========================
   FONTS
========================= */
@font-face {
    font-family: "Archivo";
    src: url("../fonts/Archivo-VariableFont_wdth,wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* =========================
   VARIABLES
========================= */
:root {
    --text-white: #ffffff;
    --hero-red: #df1f25;
    --hero-black: #000000;
    --bg-white: #ffffff;
    --bg-section: #d32027;
    --footer-red: #ff1319;
    --bg-input: #1c1f1f;
    --placeholder: #999;
}

/* =========================
   RESET
========================= */
*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    outline: 0;
    border: none;
    text-decoration: none !important;
    list-style: none;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--hero-black);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-section);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

body {
    font-family: "Montserrat", sans-serif;
}


.font-archivo {
    font-family: "Archivo", sans-serif;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.img_blog {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
}

.img_blog input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    cursor: pointer;
}

.img_blog input[type="file"] {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
}


.img_blog img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 5px;
    border-radius: 50%;
}

.img_blog .upload {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 30px;
    height: 30px;
    background: var(--text-color);
    color: var(--bg-white);
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img_blog .upload:hover {
    opacity: 0.7;
}


/* =========================
   UTILITIES
========================= */
.fs-7 {
    font-size: clamp(11.2px, 10.4px + 0.2vw, 13.6px);
}

.fs-hero-title {
    font-size: clamp(30px, 5.5vw, 65px);
}

.fs-hero-copy {
    font-size: clamp(15.04px, 1.3vw, 18px);
}

.fs-badge-text {
    font-size: clamp(8.8px, .75vw, 13.6px);
}

.fs-badge-symbol {
    font-size: clamp(19.2px, 3vw, 32px);
}

.fs-why-title {
    font-size: clamp(32px, 3vw, 40px);
}

.fs-why-list {
    font-size: clamp(13px, 1.3vw, 18px);
    line-height: 1.7;
}

.text-custom {
    color: var(--text-white) !important;
}

/* Backgrounds */
.bg-custom {
    background-color: var(--hero-red) !important;
}

.bg-black {
    background-color: var(--hero-black) !important;
}

.bg-section {
    background-color: var(--bg-section) !important;
}

/* =========================
   HERO
========================= */
.hero-shell {
    min-height: 100vh;
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/frontend/images/hero-background.webp') center center / cover no-repeat;
    filter: grayscale(100%) brightness(0.4);
}

.hero-main {
    min-height: 0;
}

.hero-pill {
    white-space: nowrap;
}

.hero-pill-title,
.hero-pill-bottom {
    display: inline-flex;
    max-width: 100%;
}

.hero-desc {
    max-width: 720px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: linear-gradient(274deg, var(--footer-red) -122%, var(--hero-black) 80%, var(--hero-black) 94%);
}

.text-justify {
    text-align: justify;
}

/* =========================
   SECTIONS / COMPONENTS
========================= */
/* Red line */
.red-line {
    height: 2px;
    background: var(--hero-red);
    max-width: 20%;
}

.red-line::after {
    content: "";
    position: absolute;
    right: 0;
    top: -9px;
    width: 20px;
    height: 20px;
    background: var(--hero-red);
}

/* Red square */
.red-square {
    width: 15px;
    height: 15px;
}

/* Section title */
.section-title {
    font-size: clamp(20px, 2.5vw, 40px);
    letter-spacing: 1px;
}

/* Number badge */
.number-badge {
    font-size: clamp(16px, 1.2vw, 19.2px);
}

/* Button */
.star-container {
    margin-top: -15px;
}

.star-image {
    max-width: clamp(40px, 6vw, 90px);
    height: auto;
}

/* =========================
   STATS
========================= */
.stats-box {
    border: 1px solid var(--hero-black);
    border-radius: 100px;
}

#recruitment .line {
    width: 1px;
    height: 60px;
    background: var(--hero-black);
}

#myForm ::placeholder,
#myForm ::-webkit-input-placeholder,
#myForm textarea::placeholder {
    color: var(--placeholder) !important;
    opacity: 1 !important;
}

#myForm input,
#myForm textarea {
    background-color: var(--bg-input) !important;
}

.faq-title {
    font-size: clamp(32px, 4vw, 64px);
}

.faq-number {
    font-size: clamp(32px, 5vw, 72px);
    line-height: 1;
    margin-bottom: 10px;
}

.faq-question {
    font-size: clamp(16px, 1.4vw, 22px);
}

.faq-answer {
    font-size: clamp(14px, 1.2vw, 18px);
}

.faq-line {
    border-top: 1px solid var(--text-white);
    width: 300vw;
    min-width: 5000px;
}


.navbar-shrink {
    background-color: var(--hero-black);
    z-index: 9999;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991.98px) {

    .hero-row-mid,
    .hero-row-bottom {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start !important;
    }

    .hero-row-bottom .col-md-7 {
        width: 100% !important;
    }

    .hero-row-bottom .col-md-5 {
        width: 100% !important;
    }

    .stats-box {
        border: none;
    }

    #recruitment .custom-min-width {
        min-width: 45%;
        margin-bottom: 5%;
    }

    #recruitment .line {
        display: none;
    }

    .offcanvas-body {
        background: var(--hero-black);
    }
}


@media (max-width: 991.98px) {
    .hero-shell {
        height: auto !important;
        min-height: 100svh;
    }
}

@media (max-width: 768px) {
    .register-section {
        padding: 0 15px !important;
    }

    .order-md--1 {
        order: -1;
        margin-bottom: 5%;
    }

    .star-container {
        margin-top: 0 !important;
    }
}

@media (max-width: 575.98px) {
    #recruitment .w-75 {
        width: 100% !important;
    }

    #recruitment .red-line {
        max-width: 75% !important;
        margin-bottom: 20px;
    }

    .hero-shell::before {
        background-position-x: 7.5%;
    }

    .fs-sm-10 {
        font-size: 10px !important;
    }

    .fs-sm-12 {
        font-size: 12px !important;
    }
}

/* =========================
   RTL OVERRIDES
========================= */

/* img_blog (admin) */
body[dir="rtl"] .img_blog input,
body[dir="rtl"] .img_blog img {
    left: auto;
    right: 0;
}

body[dir="rtl"] .hero-shell::before {
    transform: rotateY(180deg);
}

body[dir="rtl"] .img_blog .upload {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Red line decorator dot */
body[dir="rtl"] .red-line::after {
    right: auto;
    left: 0;
}

body[dir="rtl"] .unicode-bidi-embed {
    direction: ltr;
    unicode-bidi: embed;
    width: fit-content;
}

body[dir="rtl"] .site-footer {
    background: linear-gradient(86deg,
            var(--footer-red) -122%,
            var(--hero-black) 80%,
            var(--hero-black) 94%);
}

body[dir="rtl"] .offcanvas-header .btn-close {
    margin: calc(-.5 * var(--bs-offcanvas-padding-y)) auto calc(-.5 * var(--bs-offcanvas-padding-x)) calc(-.5 * var(--bs-offcanvas-padding-y));
}

body[dir="rtl"] {
    font-family: "Alexandria", sans-serif;
}