:root {
    --dark: #244c5a;
    --dark-semi: #244c5acc;
    --light: #f3f6f6;
    --gold: #d3bc8d;
    --gold-semi: #d3bc8d80;
    --gold-semi-20: #d3bc8d20;
    --yellow: #eee1ce;
    --cairo: "Cairo", sans-serif;
    --grey: #97afb9;
    --gray: #ddd;
}

/* Reset */

html {
    box-sizing: border-box;
    font-family: var(--cairo);
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
    line-height: 1;
}

a {
    text-decoration: none;
    color: var(--dark);
}

a:hover {
    text-decoration: none;
    color: var(--gold);
}

ol,
ul {
    list-style: none;
}

/* Reset */

body {
    background-color: var(--light);
    color: var(--dark);
    display: flex;
    flex-direction: column;
}

nav {
    height: 90px;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0px 4px 4px 0px #eee;
    position: fixed;
    width: 100%;
    z-index: 10000;
}

main {
    margin-top: 90px;
    min-height: 100vh;
    flex: 1;
}

.container {
    width: 1280px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 200px;
}

.nav-logo a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.nav-logo img {
    width: 100%;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.hamburger-nav {
    display: none;
}

.nav-links > li {
    position: relative;
}

.nav-links li a.active {
    color: var(--gold);
}

/* Dropdown container */
.nav-links li ul {
    position: absolute;
    top: 35px;
    right: 0; /* For RTL alignment */
    opacity: 0;
    transform: translateY(-10px);
    min-width: 130px;
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out,
        visibility 0s linear 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Show dropdown when active */
.nav-links li ul.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out,
        visibility 0s linear;
}

/* Dropdown items */
.nav-links li ul li {
    padding: 12px 20px;
    transition: background-color 0.2s ease;
    width: 100%;
}

.nav-links li ul li a {
    display: block;
    width: 100%;
    white-space: nowrap;
}

.nav-links li ul li:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-links li ul li:first-child {
    border-radius: 10px 10px 0 0;
}

.nav-links li ul li:last-child {
    border-radius: 0 0 10px 10px;
}

footer {
    margin-top: auto;
}

.footer-info {
    height: 300px;
    background-color: var(--dark);
    color: var(--light);
}

.footer-info a {
    color: var(--light);
}
footer-logo .footer-info a:hover {
    color: var(--gold);
}

.footer-info .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    width: 200px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-contact .social-icons {
    margin-top: 20px;
    display: flex;
    gap: 24px;
}

.footer-menu {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-menu .separator {
    background-color: #777;
    height: 18px;
    width: 1px;
}

.footer-copyright .container {
    text-align: center;
    padding: 4px 0;
}

.contact_us {
    display: flex;
    justify-content: space-between;
    align-items: start;
    background: url("../images/icons/cube-light.svg") no-repeat center center;
    background-size: 50%;
    position: relative;
}

.contact_us_text {
    text-align: center;
    margin-top: 40px;
    width: 50%;
}

.contact_us_text h1 {
    font-size: 42px;
    font-style: normal;
    font-weight: 700;
    line-height: 60px;
}

.contact-name {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.name-input {
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--dark);
    font-family: var(--cairo);
    border: 1px solid var(--gold);
    border-radius: 5px;
    background: transparent;
    padding: 5px 10px;
    margin-top: 5px;
}

.name-input:focus-visible {
    outline: none;
}

.contact-phone {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.contact-phone-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.phone-input {
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--dark);
    font-family: var(--cairo);
    border: 1px solid var(--gold);
    border-radius: 0px 5px 5px 0px;
    background: transparent;
    padding: 5px 10px;
    margin-top: 10px;
    width: 100%;
    direction: ltr;
}

.phone-input:focus-visible {
    outline: none;
}

.input-label {
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--gold);
    font-family: var(--cairo);
}

.err-input {
    font-size: 14px;
    line-height: 20px;
    color: red;
}

.contact-interest {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-top: 20px;
}

.interest-textarea {
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--dark);
    font-family: var(--cairo);
    border: 1px solid var(--gold);
    border-radius: 5px;
    background: transparent;
    padding: 5px 10px;
    margin-top: 10px;
    height: 100px;
}

.interest-textarea:focus-visible {
    outline: none;
}

.rqst-container {
    display: block;
    margin-top: 20px;
}

.rqst-btn {
    font-family: var(--cairo);
    background-color: var(--dark);
    color: var(--light);
    border: none;
    width: 100%;
    height: 50px;
    border-radius: 6px;
    padding: 8px 30px;
    font-size: 16px;
    font-weight: 700;
    margin: 15px auto;
    cursor: pointer;
}

.thanks-page {
    display: flex;
    justify-content: space-between;
    align-items: start;
    height: 80vh;
    background: url("../images/icons/cube-light.svg") no-repeat center center;
    background-size: 50%;
    position: relative;
}

.thanks-page-text {
    text-align: right;
    margin-top: 100px;
}

.thanks-page-text h1 {
    font-size: 42px;
    font-style: normal;
    font-weight: 700;
    line-height: 60px;
}

.thanks-page-text h2 {
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 60px;
    color: var(--grey);
}

.thanks-page-text h1 span {
    color: var(--gold);
}

.thanks-page-text button {
    margin-top: 60px;
}

.login-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 40px;
    border-radius: 10px;
    background-color: #fff;
    color: var(--light);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.logo-img {
    width: 65px;
    height: 65px;
}

.logo-txt {
    width: 100%;
    max-width: 120px;
    height: 45px;
}

.lct-btn {
    font-family: var(--cairo);
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 230px;
    height: 50px;
    border-radius: 6px;
    padding: 8px 30px;
    font-size: 16px;
    font-weight: 700;
    margin: 10px auto;
    cursor: pointer;
}

.contact-gender,
.contact-specialization,
.contact-education,
.contact-description,
.contact-cv {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-top: 10px;
}

.contact-gender select,
.contact-specialization .name-input,
.contact-education .name-input,
.contact-cv input[type="file"] {
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--dark);
    font-family: var(--cairo);
    border: 1px solid var(--gold);
    border-radius: 5px;
    background: transparent;
    padding: 5px 10px;
}

.contact-gender select:focus-visible,
.contact-specialization .name-input:focus-visible,
.contact-education .name-input:focus-visible,
.contact-cv input[type="file"]:focus-visible {
    outline: none;
}

.contact-description textarea {
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--dark);
    font-family: var(--cairo);
    border: 1px solid var(--gold);
    border-radius: 5px;
    background: transparent;
    padding: 5px 10px;
    height: 100px;
    resize: vertical;
}

.contact-description textarea:focus-visible {
    outline: none;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.custom-file-input {
    position: relative;
    width: 100%;
    height: 40px;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    background: #fff;
}

.custom-file-input input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.custom-file-input .file-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-file-input .browse-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 12px;
}

.custom-file-input .file-name {
    color: #666;
}

/* media queries */
@media screen and (max-width: 1400px) {
    .container {
        width: 100%;
    }

    .footer-info {
        padding: 0 30px;
    }

    .contact_us {
        padding: 0 30px;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        width: 100%;
    }

    .footer-info {
        padding: 0 30px;
    }

    .contact_us {
        padding: 0 30px;
    }
}

@media screen and (max-width: 992px) {
    .container {
        width: 100%;
    }

    .footer-info {
        padding: 0 30px;
    }

    .footer-contact {
        align-items: center;
    }

    .contact_us {
        padding: 0 30px;
    }

    .thanks-page {
        padding: 0 30px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 100%;
    }

    .footer-info {
        height: 500px;
    }

    .footer-info .container {
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-menu {
        font-size: 14px;
    }

    .contact_us {
        flex-direction: column;
    }

    .contact_us_image {
        display: none;
    }

    .contact_us_text {
        width: 100%;
    }

    .login-card {
        margin-bottom: 30px;
    }

    .thanks-page-image {
        display: none;
    }

    .thanks-page-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .lct-btn {
        margin: 20px auto;
    }
}

@media screen and (max-width: 480px) {
    * {
        margin: 0;
        padding: 0;
    }

    body {
        margin: 0;
    }

    .footer-info {
        height: 500px;
    }

    .footer-info .container {
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-menu {
        font-size: 14px;
    }

    .lct-btn {
        margin: 20px auto;
    }
}
