/* ==========================================================================
   Rojgar Mela (Job Fair) - Home page styles
   Bootstrap 5.3 + custom design system
   ========================================================================== */

:root {
    --orange: #bf530b;
    --orange-dark: #8f3e08;
    --orange-light: rgb(207, 97, 24);
    --orange-deep: #ef7f1f;
    --navy: #123c78;
    --navy-dark: #0d2f5e;
    --cream: #fdeed9;
    --cream-soft: #fbf3e6;
    --ink: #1f2937;
    --muted: #55606e;
    --radius: 12px;
    --shadow-soft: 0 12px 30px rgba(18, 60, 120, 0.12);
}

* {
    -webkit-font-smoothing: antialiased;
}

html {
    font-size: var(--base-font-size, 16px);
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    overflow-x: hidden;
}

.container-xxl {
    max-width: 1320px;
}

a {
    text-decoration: none;
}

.text-dark-blue {
    color: var(--navy);
}

/* ============================= HEADER ============================= */
.site-header {
    background: var(--orange);
    color: #fff;
    padding: 10px 0 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    padding: 6px 0 10px;
}

.brand img {
    height: 80px;
    width: auto;
    flex: none;
}

.brand-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.brand-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.3;
}

.utility-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.utility-bar > a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 500;
}

.utility-bar > a:hover {
    text-decoration: underline;
}

.font-size-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.font-size-tools button {
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 2px 3px;
}

.font-size-tools button:hover {
    text-decoration: underline;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    height: 26px;
    width: 130px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 11px;
    padding: 0 30px 0 12px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    position: absolute;
    right: 8px;
    border: 0;
    background: none;
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    padding: 0;
}

.contrast-tools {
    display: flex;
    gap: 8px;
}

.contrast-tools .swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ffdc98;
    padding: 0;
}

.swatch-light {
    background: var(--cream);
}

.swatch-dark {
    background: #111;
}

.main-nav .navbar-nav {
    gap: 15px;
}

.main-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 0;
    position: relative;
}

.main-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    margin-bottom: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================= BANNER ============================= */
.banner-section {
    background: var(--cream-soft);
    line-height: 0;
}

/* Banner already contains all artwork/text: full width, auto height, no cropping */
.banner-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ========================== REGISTRATION ========================== */
.registration-section {
    position: relative;
    background: var(--cream);
    padding: 44px 0 52px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 34px;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}

.heading-rule {
    display: inline-block;
    width: clamp(50px, 9vw, 110px);
    height: 8px;
    position: relative;
    background: linear-gradient(to right, var(--navy) 0 65%, transparent 65%);
    clip-path: polygon(0 40%, 65% 40%, 65% 60%, 0 60%);
}

.heading-rule::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.heading-rule.flip {
    transform: rotate(180deg);
}

.reg-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-radius: var(--radius);
    color: #fff;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.reg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(18, 60, 120, 0.22);
    color: #fff;
}

.reg-card--orange {
    background: linear-gradient(
        180deg,
        rgba(255, 124, 28, 1) 0%,
        rgba(207, 89, 15, 1) 100%
    );
}

.reg-card--grey {
    background: linear-gradient(180deg, #cdcdcd, #717171);
}

.reg-card--blue {
    background: linear-gradient(
        180deg,
        rgba(54, 100, 144, 1) 0%,
        rgba(3, 42, 77, 1) 100%
    );
}

.reg-icon {
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.reg-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.reg-text {
    flex: 1 1 auto;
    min-width: 0;
}

.reg-text strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.reg-text small {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.95;
}

.reg-arrow {
    flex: none;
    padding-left: 16px;
    margin-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1.35rem;
    line-height: 1;
}

/* ============================= ABOUT ============================= */
.about-section {
    padding: 56px 0 60px;
    background: #fff;
}

.poster-frame {
    border: 1px solid #e9d19d;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(18, 60, 120, 0.08);
    overflow: hidden;
}

.poster-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.about-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 20px;
}

.about-body p {
    font-size: 14px;
    line-height: 1.3;
    color: var(--muted);
    margin-bottom: 14px;
}

.about-body strong {
    color: #111827;
}

/* ========================= FACT & FIGURES ========================= */
.facts-section {
    position: relative;
    padding: 70px 0;
    background:
        linear-gradient(rgba(150, 150, 150, 0.35), rgba(150, 150, 150, 0.35)),
        url("/assets/site/images/ff_bg.jpg") center / cover no-repeat;
}

.facts-title {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
    margin: 0;
}

.fact-card {
    background: var(--orange);
    border-radius: 8px;
    padding: 14px 10px 18px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease;
}

.fact-card:hover {
    transform: translateY(-4px);
}

.fact-label {
    display: block;
    font-size: clamp(0.95rem, 1.3vw, 1.25rem);
    font-weight: 400;
}

.fact-value {
    display: block;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* ============================ FEATURES ============================ */
.features-section {
    padding: 60px 0 66px;
    background: #fff;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    flex: none;
    width: 62px;
    height: 62px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.feature-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.feature-icon--plain {
    width: 85px;
    height: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.feature-icon--plain img {
    width: 100%;
    height: 100%;
    padding: 2px;
}

.feature-icon--orange {
    background: #fdeadb;
}

.feature-icon--blue {
    background: #e4ecfa;
}

.feature h3 {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin: 4px 0 6px;
}

.feature h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 4px 0 6px;
}

.feature p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================= FOOTER ============================= */
.site-footer {
    background: var(--orange);
    color: #fff;
    padding: 30px 0 18px;
}

.footer-top strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
}

.footer-top span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.95;
}

.footer-main {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-main h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-main p,
.footer-links a {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-contact img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-contact a {
    color: #fff;
}

.social-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.social-row img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.social-row a:hover img {
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-bottom > span {
    flex: 1 1 220px;
}

.w3c-badges {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.w3c-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 8px;
    background: #fff;
    border-radius: 3px;
    font-size: 0.72rem;
    line-height: 1;
}

.w3c-badge b {
    color: #0b2d5c;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.w3c-badge span {
    color: var(--orange);
    font-weight: 700;
}

.w3c-badge i {
    color: #d62b2b;
    font-weight: 700;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 991.98px) {
    .utility-bar {
        justify-content: flex-start;
    }

    .main-nav .navbar-collapse {
        padding-bottom: 10px;
    }

    .main-nav .navbar-nav {
        gap: 4px;
    }

    .facts-section {
        padding: 46px 0;
    }

    .facts-title {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .section-heading {
        gap: 10px;
        font-size: 1.1rem;
    }

    .reg-text strong {
        font-size: 1.15rem;
    }

    .brand img {
        height: 56px;
    }
}

/* ============================ Candidate Form ============================ */
.form-control:disabled,
.form-select:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #dfdfdf !important;
    color: #555 !important;
    opacity: 1 !important;
    cursor: not-allowed;
}
.candidate-form-section {
    padding: 30px 0;
}
.candidate-form-section {
    padding: 28px 0 55px;
}
.candidate-form-box {
    background: #f3f3f3;
    border-radius: 6px;
    padding: 20px;
}
.candidate-section-title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    color: #171717;
    text-transform: uppercase;
}
.candidate-form-box .form-group {
    margin-bottom: 12px;
}
.candidate-form-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    color: #242424;
}
.candidate-form-box .form-control,
.candidate-form-box .form-select {
    width: 100%;
    height: 34px;
    padding: 6px 9px;
    border: 1px solid #d2d5d8;
    border-radius: 4px;
    background: #fff;
    font-size: 11px;
    box-shadow: none;
}
.candidate-form-box .form-control::placeholder {
    color: #858b93;
    opacity: 1;
}
.candidate-form-box .form-control:focus,
.candidate-form-box .form-select:focus {
    border-color: #c65a08;
    box-shadow: 0 0 0 2px rgba(198, 90, 8, 0.08);
}
.required {
    color: #c65a08;
}
.candidate-radio-group {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 34px;
}
.candidate-radio {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    color: #69717b !important;
    font-size: 11px !important;
    cursor: pointer;
}
.candidate-radio input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #c65a08;
}
.candidate-divider {
    margin: 13px 0;
    border: 0;
    border-top: 1px solid #d8dadd;
    opacity: 1;
}
.candidate-table-wrap {
    overflow-x: auto;
}
.candidate-qualification-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.candidate-qualification-table th {
    padding: 9px 12px;
    background: #e7e7e7;
    border-bottom: 1px solid #d8d8d8;
    color: #242424;
    font-size: 10px;
    font-weight: 500;
    text-align: left;
}
.candidate-qualification-table td {
    padding: 5px 12px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}
.candidate-qualification-table tbody tr:last-child td {
    border-bottom: 0;
}
.candidate-qualification-check {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    color: #68707a !important;
    font-size: 10px !important;
    cursor: pointer;
}
.candidate-qualification-check input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #c65a08;
}
.candidate-qualification-table .form-control {
    height: 27px;
    padding: 4px 8px;
    font-size: 10px;
}
.candidate-qualification-table .form-control:disabled {
    background: #fff;
    opacity: 1;
}
.candidate-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}
.candidate-actions .btn {
    min-width: 110px;
    padding: 7px 18px;
    font-size: 11px;
}
.btn_theme {
    background: var(--orange);
    color: white;
    box-shadow: 0 3px 8px rgba(190, 101, 68, 0.15);
}
.btn_theme:hover {
    color: white;
    background: var(--orange-dark);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}
.btn-outline-theme {
    background: transparent;
    border: 1px solid var(--orange);
    color: var(--orange);
}
.btn-outline-theme:hover {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}
.candidate-success,
.candidate-error {
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 12px;
}
.candidate-form-box .text-danger {
    font-size: 10px;
}
@media (max-width: 991px) {
    .candidate-form-box {
        padding: 18px;
    }
}
@media (max-width: 767px) {
    .candidate-form-section {
        padding: 20px 0 40px;
    }
    .candidate-form-box {
        padding: 15px;
    }
    .candidate-radio-group {
        gap: 15px;
        flex-wrap: wrap;
    }
    .candidate-actions {
        flex-direction: column;
    }
    .candidate-actions .btn {
        width: 100%;
    }
}
.candidate-form-box small.error {
    display: block !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    color: #dc3545 !important;
    font-size: 10px !important;
    font-weight: 400 !important;
}
.candidate-form-box input.error,
.candidate-form-box select.error {
    border-color: #dc3545 !important;
}
.candidate-form-box input.valid,
.candidate-form-box select.valid {
    border-color: #ced4da;
}
.candidate-qualification-error {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 10px;
}
.candidate-qualification-group.error {
    padding: 5px 8px;
    border: 1px solid #dc3545;
    border-radius: 4px;
}

/* ============================ Industry Form ============================ */
.industry-form-section {
    padding: 30px 0 55px;
}
.industry-form-box {
    background: #f3f3f3;
    border-radius: 6px;
    padding: 20px;
}
.industry-section-title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    color: #171717;
    text-transform: uppercase;
}
.industry-form-box .form-group {
    margin-bottom: 12px;
}
.industry-form-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    color: #242424;
}
.industry-form-box .form-control,
.industry-form-box .form-select {
    width: 100%;
    height: 34px;
    padding: 6px 9px;
    border: 1px solid #d2d5d8;
    border-radius: 4px;
    background: #fff;
    color: #68707a;
    font-size: 11px;
    box-shadow: none;
}
.industry-form-box .form-control::placeholder {
    color: #858b93;
    opacity: 1;
}
.industry-form-box .form-control:focus,
.industry-form-box .form-select:focus {
    border-color: #c65a08;
    box-shadow: 0 0 0 2px rgba(198, 90, 8, 0.08);
}
.industry-form-box .text-danger {
    font-size: 10px;
}
.industry-divider {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #919191;
    opacity: 1;
}
.industry-qualification-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 30px;
}
.industry-checkbox {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    color: #68707a !important;
    font-size: 10px !important;
    cursor: pointer;
}
.industry-checkbox input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #c65a08;
}
.vacancy-item {
    position: relative;
}
.vacancy-item + .vacancy-item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d8dadd;
}
.industry-add-vacancy {
    margin-top: 2px;
    min-width: 115px;
    height: 35px;
    padding: 7px 18px;
    font-size: 11px;
}
.vacancy-remove {
    margin-top: 2px;
    height: 30px;
    padding: 5px 12px;
    font-size: 10px;
}
.industry-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}
.industry-actions .btn {
    min-width: 110px;
    height: 35px;
    padding: 7px 18px;
    font-size: 11px;
}
.industry-success,
.industry-error {
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 12px;
}
@media (max-width: 991px) {
    .industry-qualification-group {
        justify-content: flex-start;
    }
}
@media (max-width: 767px) {
    .industry-form-section {
        padding: 20px 0 40px;
    }
    .industry-actions {
        flex-direction: column;
    }
    .industry-actions .btn {
        width: 100%;
    }
    .industry-add-vacancy {
        width: 100%;
    }
}
.industry-form-box label.error {
    display: block !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    color: #dc3545 !important;
    font-size: 10px !important;
    font-weight: 400 !important;
}
.industry-form-box input.error,
.industry-form-box select.error {
    border-color: #dc3545 !important;
}
.industry-form-box input.valid,
.industry-form-box select.valid {
    border-color: #ced4da;
}
.industry-qualification-group.error {
    padding: 5px 8px;
    border: 1px solid #dc3545;
    border-radius: 4px;
}

/* ============================ Some common Style ============================ */
.an-section {
    padding: 30px 0;
}
