@font-face {
    font-family: "AktivGrotesk";
    src: url("../fonts/AktivGrotesk_Rg.ttf");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AktivGrotesk";
    src: url("../fonts/AktivGrotesk_Bd.ttf");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: AktivGrotesk, sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 67.16px;
    text-align: right;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    background: radial-gradient( 81.54% 54.56% at 50% 50%, #1C331C 0%, #000000 100% );
    color: #fff;
    margin: 0;
    padding: 0;
}

.custom-alert {
    margin: 3rem 0rem !important;
    padding: 0rem 5rem !important;
}

/* ─── Hero (banner image + nav overlay) ──────────────────────────────────── */
.hero {
    position: relative;
    background: url('/images/shaghaf-banner.jpg') center top / cover no-repeat;
    min-height: 500px;
}

/* Gradient overlay: subtle dark band at top for legibility,
   then clear so the image shines, then fades to the page dark bg. */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.10) 18%,
        rgba(0, 0, 0, 0.00) 40%,
        rgba(0, 0, 0, 0.55) 72%,
        rgba(0, 0, 0, 0.95) 90%,
        rgb(0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Nav sits above the gradient overlay */
.hero-nav {
    position: relative;
    z-index: 2;
    padding: 2.5rem 10rem;
}

/* Shaghaf programme SVG logo — transparent background, sized for the hero nav.
   viewBox is cropped to content (265 390 480 250) so the full height is artwork. */
.header-shaghaf-logo {
    height: 72px;
    width: auto;
    display: block;
}

/* The برنامج and "SHAGHAF PROGRAM" paths carry no class (SVG default fill = black).
   Make them white so they are legible against the dark hero background. */
.header-shaghaf-logo path:not([class]) {
    fill: #ffffff;
}

/* Company logo (right side in RTL = left visually) */
.logo {
    width: auto;
    height: 90px;
    object-fit: contain;
}

/* Drop shadow so the company logo reads against any banner tone */
.hero-company-logo {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

/* Username text shadow for legibility on the warm banner image */
.hero-username {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.content {
    padding: 3rem 10rem;
}

.section-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 67.16px;
    text-align: right;
}

.section-desc {
    font-size: 17px;
    font-weight: 400;
    line-height: 32px;
    text-align: right;
}

.features {
    margin: 50px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-icon {
    height: 60px;
    margin-left: 15px;
}

.feature-content {
    max-width: calc(100% - 75px);
}

.feature-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    text-align: right;
}

.feature-desc {
    font-size: 17px;
    font-weight: 400;
    line-height: 32px;
    text-align: right;
}

.arrow-icon {
    width: 18.77px;
    height: 24.14px;
    margin-left: 15px;
}

.criteria-item {
    display: flex;
    margin-bottom: 10px;
}

.criteria-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-align: right;
    color: #CE7A5B;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

    .criteria-number .number {
        font-family: "AktivGrotesk", sans-serif;
        font-weight: 700;
    }

    .criteria-number .white-point {
        color: #fff;
        font-weight: bold;
        margin-right: 8px;
    }

.criteria-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    text-align: right;
}

.goal-desc {
    font-size: 30px;
    font-weight: 400;
    line-height: 47.97px;
    text-align: right;
    margin-bottom: 20px;
}

.personal-title {
    font-size: 30px;
    font-weight: 400;
    line-height: 47.97px;
    text-align: right;
    color: #fff;
}

.goal-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.goal-item {
    display: flex;
    align-items: center;
    text-align: right;
    flex: 1 1 calc(20.33% - 20px);
    max-width: calc(20.33% - 20px);
}

.goal-title {
    font-size: 17px;
    font-weight: 400;
    line-height: 32px;
    text-align: right;
}

.points-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7rem;
    list-style: none;
    padding-top: 10px;
    margin: 0;
    justify-content: space-around;
}

.points-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 216px;
}

.points-text {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
}

.button-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 50px 0;
    text-align: right;
}

.cta-button,
.faq-button {
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    padding: 10px 30px;
    border-radius: 23px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button-disabled {
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    padding: 10px 30px;
    border-radius: 23px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(206, 122, 91, 1) !important;
    color: #fff;
}

.cta-button {
    text-decoration: none;
    text-align: center;
    background-color: rgba(206, 122, 91, 1);
    color: #fff;
}

    .cta-button:hover {
        text-decoration: none;
        text-align: center;
        color: #fff;
        background-color: rgba(206, 122, 91, 0.8);
    }

.faq-button {
    background-color: #fff;
    color: rgba(206, 122, 91, 1);
    border: 2px solid rgba(206, 122, 91, 1);
}

    .faq-button:hover {
        background-color: rgba(206, 122, 91, 0.1);
    }

/* Footer */
.footer {
    background-color: #0d0d0d;
    color: #fff;
    padding: 3rem 10rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
}

.footer-logo img {
    width: 100px;
    height: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.footer-title {
    font-size: 18px;
    font-weight: 400;
    text-align: end;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    font-size: 16px;
    text-decoration: none;
    color: #CE7A5B;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: #d9936e;
    }

.footer-links li {
    display: flex;
    align-items: center;
}

.custom-li {
    font-size: 1rem;
    color: #CE7A5B;
}

/* General Responsive Styles */
body {
    font-size: 18px;
    line-height: 1.5;
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 320px;
    }

    .hero-nav {
        padding: 1.25rem 1.5rem;
    }

    .header-shaghaf-logo {
        height: 46px;
    }

    .logo {
        width: auto;
        height: 62px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 220px;
        background-position: 35% top;
    }

    .hero-nav {
        padding: 0.85rem 1rem;
    }

    .header-shaghaf-logo {
        height: 36px;
    }

    .logo {
        width: auto;
        height: 48px;
    }
}

/* Content */
@media (max-width: 768px) {
    .content {
        padding: 1rem 2rem;
    }

    .section-title {
        font-size: 28px;
    }

    .section-desc {
        font-size: 14px;
    }

    .features {
        margin: 30px 0;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-desc {
        font-size: 14px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }
}

/* Criteria Section */
@media (max-width: 768px) {
    .criteria-content {
        margin-top: 10px;
    }

    .criteria-number {
        font-size: 20px;
    }

    .criteria-title {
        font-size: 14px;
    }
}

/* Goal List */
@media (max-width: 768px) {
    .goal-list {
        gap: 10px;
    }

    .goal-item {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .goal-title {
        font-size: 14px;
    }
}

/* Points Section */
@media (max-width: 768px) {
    .points-list {
        gap: 2rem;
        justify-content: center;
    }

    .points-layout {
        width: 150px;
    }

    .points-text {
        font-size: 18px;
    }
}

/* Buttons Section */
@media (max-width: 768px) {
    .button-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .cta-button,
    .faq-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Footer */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 2rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-title {
        text-align: center;
    }

    .footer-logo img {
        margin-bottom: 10px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 5px;
        flex-wrap: wrap;
    }

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

/* Job Application */

.form-section {
    margin-bottom: 2rem;
}

/* Apply form: 80% centered wrapper */
.form-wrapper {
    max-width: 80%;
    margin: 0 auto;
}

/* Section frame — SVG double-border injected via JS */
.apply-section {
    position: relative;
    background: transparent;
    padding: 2rem 1.75rem 1.75rem;
    margin: 1rem 0.75rem 3rem;
}

/* The absolutely-positioned SVG frame overlay */
.section-frame-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

/* Ensure section content sits above the SVG frame */
.apply-section > *:not(.section-frame-svg) {
    position: relative;
    z-index: 1;
}

.apply-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #CE7A5B;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(206, 122, 91, 0.3);
}

/* Reserve space for conditional fields without hiding them */
.field-hidden {
    visibility: hidden;
    pointer-events: none;
}

/* Ensure email and tel inputs get the same pill styling */
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 50px !important;
    background-color: #fff;
    color: #595c5f;
    font-size: 16px;
}

/* Show Bootstrap's red border on invalid inputs/selects (site.css sets border:none) */
input.is-invalid,
select.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
    border: 1.5px solid #dc3545 !important;
}

/* Form check radios/checkboxes on dark background */
.form-check-label {
    color: #fff !important;
    font-size: 0.95rem;
}

/* Brand-colored radio buttons and checkboxes (Bootstrap 5 override) */
.form-check-input:checked {
    background-color: #CE7A5B !important;
    border-color: #CE7A5B !important;
}
.form-check-input:focus {
    border-color: rgba(206, 122, 91, 0.6) !important;
    box-shadow: 0 0 0 0.2rem rgba(206, 122, 91, 0.25) !important;
}

/* Date input — keep same styling as other inputs */
input[type="date"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 50px !important;
    background-color: #fff;
    color: #595c5f;
    font-size: 16px;
    cursor: pointer;
}

.form-header {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #CE7A5B;
    margin-bottom: 1rem;
}

    .form-header .arrow-icon {
        width: 18px;
        height: 18px;
        margin-left: 10px;
    }

.form-group {
    margin-bottom: 1rem;
}

.flex-1 {
    flex: 1;
}

label {
    display: block;
    font-size: 17px;
    font-weight: 400;
    color: #CE7A5B;
    margin-bottom: 5px;
}

    label .required {
        color: red;
    }

input[type="text"],
input[type="number"],
input[type="date"],
input[type="file"],
select {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 50px !important;
    background-color: #fff;
    color: #595c5f;
    font-size: 16px;
    overflow: hidden;
}

input::placeholder {
    color: #595c5f;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .content {
        padding: 2rem 4rem;
    }

    .form-header {
        font-size: 20px;
        margin-bottom: 0.5rem;
    }

    .personal-title {
        font-size: 25px;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    label {
        font-size: 15px;
    }

    input[type="text"],
    input[type="number"],
    input[type="date"],
    input[type="file"],
    select {
        padding: 8px;
        font-size: 14px;
    }

    .cta-button {
        font-size: 14px;
        padding: 8px 25px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 2rem 1.5rem;
    }

    .form-header {
        font-size: 18px;
        margin-bottom: 0.5rem;
    }

    .personal-title {
        font-size: 22px;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    label {
        font-size: 14px;
    }

    input[type="text"],
    input[type="number"],
    input[type="date"],
    input[type="file"],
    select {
        padding: 6px;
        font-size: 13px;
    }

    .cta-button {
        font-size: 12px;
        padding: 6px 20px;
    }

    .form-row {
        flex-direction: column;
    }
}

.modal-dialog {
    color: #000;
}

.btn-close {
    margin: 0 !important;
}
