/* ==============================
   Root Variables (Saudi Arabia Theme)
============================== */
:root {
    /* 🇸🇦 Saudi Arabia Colors */
    --primary: #006C35;          /* Saudi Green */
    --primary-dark: #004F27;     /* Dark Saudi Green */
    --link: #006C35;             /* Link Green */
    --btn: #006C35;              /* Primary Button */
    --btn-hover: #004F27;

    --accent: #C9A24D;           /* Gold / Desert Accent */

    --light: #F8F6F2;            /* Soft Desert White */
    --dark: #1C1C1C;             /* Charcoal Black */
    --gray: #D1D5DB;             /* Light Gray */
    --muted: #4B5563;            /* Muted Gray */
    --muted-blue: #2563EB;

    /* Status Colors */
    --success: #198754;
    --danger: #dc3545;
    --warning: #f59e0b;
    --info: #0dcaf0;
    --light-info: #d1ecf1;

    --overlay: rgba(0, 0, 0, 0.35);

    /* Footer */
    --footer: #1C1C1C;

    /* ✍️ Font Families (Clean + Premium) */
    --font-base: "Poppins", sans-serif;       /* Main UI / Body */
    --font-alt: "Montserrat", sans-serif;     /* Headings */
    --font-open: "Open Sans", sans-serif;      /* Forms & paragraphs */
    --font-questrial: "Questrial", sans-serif; /* Optional sections */

    /* Typography */
    --text-size: 0.95rem;
    --text-small: 0.88rem;
    --text-large: 1.2rem;

    /* Layout */
    --max-width: 1200px;
}

/* ==============================
   Reset & Base
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    line-height: 1.6;
    font-family: var(--font-base);
    font-size: var(--text-size);
    color: var(--dark);
}


main {
    flex: 1; 
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 500;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.4rem;
}

h5,
h6 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 20px;
    font-size: var(--text-size);
    line-height: 1.8;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* ul,
ol {
    list-style: none;
} */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.main-heading {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    padding-block: 20px;
    text-transform: capitalize;
}

/* ==============================
   Container / Grid
============================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col {
    flex: 1;
    padding: 10px;
}

/* Responsive Columns */
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

/* ==============================
   Button Base
============================== */
.btn {
    display: inline-block;
    font-family: var(--font-base);
    font-size: var(--text-size);
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--light) !important;
    background-color: var(--btn);
}

.btn:hover {
    background-color: var(--btn-hover) !important;
}

/* Add Applicant (Success Theme) */
.add_applicant {
    background-color: #198754;
    color: #fff;
    font-weight: 500;
    text-transform: capitalize;
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    margin-right: 8px;
}

.add_applicant:hover {
    background-color: #157347;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* Remove Applicant (Danger Theme) */
.remove-applicant {
    background-color: #dc3545;
    color: #fff;
    font-weight: 500;
    text-transform: capitalize;
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    margin-right: 8px;
}

.remove-applicant:hover {
    background-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* Submit Button (Primary Theme) */
#submitAllApplications {
    background-color: #0d6efd; /* Bootstrap primary */
    color: #fff;
    font-weight: 500;
    text-transform: capitalize;
    border-radius: 8px;
    padding: 10px 24px;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

#submitAllApplications:hover {
    background-color: #0b5ed7; /* Darker blue */
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

#submitAllApplications:active {
    transform: scale(0.97);
}

/* Modal button styling - simple clean look */
.modal-footer .btn-secondary, .modal-footer .btn-primary {
  border-radius: 4px;
  padding: 6px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Secondary (cancel) button */
.modal-footer .btn-secondary {
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ccc;
}

.modal-footer .btn-secondary:hover {
  background-color: #e2e2e2;
}

/* Primary (confirm) button */
.modal-footer .btn-primary {
  background-color: #0d6efd;
  border: none;
  color: #fff;
}

.modal-footer .btn-primary:hover {
  background-color: #0b5ed7;
}

/* ==============================
   Loader
============================== */
.modal-loader {
    z-index: 9999 !important;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: transparent;
    padding: 20px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==============================
   Responsive Buttons
============================== */
@media (max-width: 768px) {
    .btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ==============================
   Navbar
============================== */
.navbar {
    background-color: var(--light);
    padding: 14px 0 !important;
    margin: 0 !important;
}

.nav-link {
    margin-left: 10px;
    color: var(--dark);
    font-size: var(--text-size);
    font-weight: 500;
}

.navbar-nav.center-nav {
    margin-left: auto;
}

.nav-link:hover {
    color: var(--primary);
}

.active {
    color: var(--primary) !important;
    font-weight: 600;
}

@media (max-width: 992px) {
    .navbar-nav.ms-auto {
      text-align: center !important;
    }
}

/* ==============================
   Footer
============================== */
.footer {
    background: var(--primary);
    color: var(--light);
    padding: 40px 0 0;
}

/* Footer links */
.footer a {
    display: inline-block;
    font-size: var(--text-size);
    font-weight: 500;
    color: var(--light) !important;
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: all 0.3s ease;
}

/* Modern underline effect */
.footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--light);
    transition: width 0.3s ease;
}

/* Hover state */
.footer a:hover {
    opacity: 0.85;
}

.footer a:hover::after {
    width: 100%;
}

/* Disclaimer text */
.footer p {
    font-size: var(--text-small);
    font-weight: 400;
    color: var(--light) !important;
    opacity: 0.9;
    line-height: 1.6;
}

/* Footer bottom copyright */
.footer .border-top {
    border-color: rgba(255, 255, 255, 0.2) !important;
}
.footer .copyright {
    padding: 20px 0;
    text-align: center;
    font-size: var(--text-small);
    color: var(--light) !important;
    opacity: 0.8;
}
/* ==============================
   Banner
============================== */
.banner {
    padding: 80px 20px;
    color: var(--light);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 420px;
}

/* ==============================
   Forms
============================== */
input,
select,
textarea {
    font-size: var(--text-small) !important;
    padding: 0.4rem !important;
    width: 100%;
    border: 1px solid var(--gray) !important;
    border-radius: 12!important;
}

input[type="checkbox"],
input[type="radio"] {
    border: 1px solid var(--gray) !important;
    /* border-radius: 50px !important; */
}

input:focus,
select:focus,
textarea:focus {
    border: 1px solid var(--gray) !important;
    outline: none !important;
    box-shadow: none !important;
}

label {
    font-size: var(--text-small);
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 6px;
}

::placeholder {
    color: var(--dark) !important;
    opacity: 0.5;
}

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

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

/* Optional: make number input look like normal text input */
input[type="number"] {
    appearance: textfield;
}

.err_msg {
    color: var(--danger);
    font-size: var(--text-small);
    margin-top: 5px;
}

/* ==============================
visa apply
============================== */
.heading-visa-apply {
    font-size: var(--text-size);
    color: var(--gray);
    text-transform: capitalize;
    font-weight: 600;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 6px;
    margin-bottom: 15px;
}


/* ==============================
News
============================== */

.news-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.news-paragraph {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--dark);
}

.news-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.news-link:hover {
    text-decoration: none;
}

.news-apply {
    background: var(--primary);
    padding: 12px 0;
    border-radius: 5px;
    color: var(--light);
    text-align: center;
}

.news-apply h2 {
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--light);
    line-height: 3;
    margin-top: -20px;
}

.news-apply ul {
    padding: 0;
}

.news-apply ul li {
    border-bottom: 1px solid var(--light);
    line-height: 3;
}

.news-apply a {
    background-color: var(--light);
    color: var(--dark);
    padding: 8px 15px;
    font-weight: 600;
    border-radius: 4px;
}

.news-apply a:hover {
    color: var(--primary);
}

.news-sidebar h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    margin-top: -15px;
}

.news-sidebar ul {
    list-style: outside;
    padding: 0;
    margin: 0;
}

.news-sidebar ul li {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--gray);
    margin-left: 12px;
}

.news-sidebar ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
}

.news-sidebar ul li a:hover {
    color: var(--primary);
}

/* ==============================
   FAQ
============================== */
.accordion-button::after {
    display: none !important;
    /* Remove Bootstrap chevron */
}

.accordion-button {
    background: var(--light) !important;
    color: var(--dark) !important;
    font-weight: 600;
    box-shadow: none !important;
    font-size: 1rem;
    font-family: var(--font-base);
}

.accordion-button:focus {
    box-shadow: none !important;
}

/* ==============================
   Pagination
============================== */

.wrap_pagination {
    font-size: 1em;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.pagination .page-item .page-link {
    font-size: 0.9em !important;
    color: var(--dark) !important;
}

/* ==============================
   Content & Scroll to Top Button
   ============================== */
.content {
    height: 1000px;
    font-family: "Questrial", sans-serif;
    line-height: 1.5;
    letter-spacing: 3px;
    font-size: 20px;
    text-decoration: underline;
    text-align: center;
    margin-top: 30px;
}

.go-top {
    position: fixed;
    bottom: 2%;
    left: 1%;
    padding: 20px;
    display: none;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
}

.go-top:after {
    font-family: FontAwesome;
    content: "\f106";
    background-color: var(--primary);
    padding: 5px 10px;
    color: #fff;
    position: absolute;
    bottom: 10px;
    font-size: 24px;
}

.go-top-text {
    position: absolute;
    width: 60px;
    text-align: center;
    font-family: "Questrial", sans-serif;
    line-height: 1.5;
    letter-spacing: 3px;
    font-size: 12px;
    margin: 20px 0 0 -4px;
}

.go-top:hover {
    transition: all 0.4s linear;
    transform: scale(1.1);
}

/* Floating Chat Badge */
.live-chat-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
}

.chat-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 25px;
    transition: transform 0.2s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #117c11;
}

.notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #ffe100;
    color: #fff;
    border-radius: 50%;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    font-size: 10px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Chat Popup */
.chat-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: "Segoe UI", sans-serif;
}

/* Close button */
.chat-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    z-index: 10;
}

.chat-close-btn:hover {
    background: transparent;
    transform: scale(1.1);
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--primary);
    color: #fff;
}

.chat-logo {
    font-size: 24px;
    margin-right: 10px;
}

.chat-greeting h3 {
    margin: 0;
    font-size: 18px;
}

.chat-greeting p {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
}

/* Chat Form */
.chat-form {
    padding: 15px;
}

.chat-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    margin-bottom: 8px;
}

.err_msg {
    color: var(--danger);
    font-size: 14px;
    display: block;
    margin-top: 4px;
    margin-bottom: 4px;
}

.chat-form .btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.chat-form .btn:hover {
    background: var(--primary-dark);
}

/* Chat Live Section */
.chat-section {
    display: none;
    flex-direction: column;
    height: 100%;
}

.chat-body {
    flex: 1;
    padding: 10px;
    background: #f3f4f6;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
}

/* Chat Messages */
.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.bot .message-content {
    background: #e5e7eb;
    color: #000;
    border-radius: 12px;
    padding: 8px 12px;
    max-width: 70%;
    position: relative;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    justify-content: flex-end;
    text-align: right;
}

.chat-message.user .message-content {
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    max-width: 70%;
    position: relative;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0px;
}

/* Avatars */
.chat-message .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Time */
.message-content .time {
    display: block;
    font-size: 9px;
    opacity: 0.7;
    margin-top: 2px;
}

/* Chat Footer */
.chat-footer {
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.chat-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#chatInput {
    width: 100%;
    padding: 10px 45px 10px 12px;
    /* right padding leaves space for button */
    border: 1px solid var(--gray);
    border-radius: 25px;
    resize: none;
    font-size: 14px;
    line-height: 1.4;
}

.send-btn {
    position: absolute;
    right: 10px;
    bottom: 8px;
    border: none;
    color: var(--gray);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.send-btn:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .chat-popup {
        width: 90%;
        bottom: 70px;
        right: 5%;
        max-height: 80%;
    }
}

@media (max-width: 480px) {
    .chat-popup {
        width: 95%;
        bottom: 60px;
        right: 2.5%;
        max-height: 85%;
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    #chatInput {
        font-size: 13px;
        padding: 8px 42px 8px 10px;
    }

    .send-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        right: 8px;
        bottom: 6px;
    }
}

@media (max-width: 480px) {
    #chatInput {
        font-size: 12px;
        padding: 8px 40px 8px 10px;
    }

    .send-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
        right: 6px;
        bottom: 6px;
    }
}
