/*
 * HCB shared frontend foundation
 * Loaded after each language theme so the core design system remains aligned.
 */

:root {
    --hcb-navy-950: #171d28;
    --hcb-navy-900: #232a38;
    --hcb-navy-800: #2f3849;
    --hcb-gold-700: #9b7428;
    --hcb-gold-600: #b1852e;
    --hcb-gold-500: #d4aa52;
    --hcb-gold-300: #ead39c;
    --hcb-blue-100: #eef4f8;
    --hcb-blue-50: #f6f9fb;
    --hcb-white: #ffffff;
    --hcb-neutral-900: #202631;
    --hcb-neutral-700: #4b5563;
    --hcb-neutral-500: #6b7280;
    --hcb-neutral-300: #d1d5db;
    --hcb-neutral-200: #e5e7eb;
    --hcb-neutral-100: #f3f4f6;
    --hcb-success: #237a45;
    --hcb-error: #b42318;

    --hcb-bg: var(--hcb-white);
    --hcb-bg-soft: var(--hcb-blue-50);
    --hcb-text: var(--hcb-neutral-900);
    --hcb-text-muted: var(--hcb-neutral-700);
    --hcb-border: var(--hcb-neutral-200);
    --hcb-focus: #2f6da1;

    --hcb-font-ltr: "Segoe UI", Arial, Helvetica, sans-serif;
    --hcb-font-rtl: "PNU", Tahoma, Arial, sans-serif;
    --hcb-font-size-xs: 12px;
    --hcb-font-size-sm: 14px;
    --hcb-font-size-base: 16px;
    --hcb-font-size-lg: 18px;
    --hcb-font-size-xl: 20px;
    --hcb-font-size-2xl: 24px;
    --hcb-font-size-3xl: 30px;
    --hcb-font-size-4xl: 36px;
    --hcb-line-tight: 1.2;
    --hcb-line-heading: 1.3;
    --hcb-line-body: 1.7;

    --hcb-space-1: 0.25rem;
    --hcb-space-2: 0.5rem;
    --hcb-space-3: 0.75rem;
    --hcb-space-4: 1rem;
    --hcb-space-5: 1.25rem;
    --hcb-space-6: 1.5rem;
    --hcb-space-8: 2rem;
    --hcb-space-10: 2.5rem;
    --hcb-space-12: 3rem;
    --hcb-space-16: 4rem;
    --hcb-space-20: 5rem;

    --hcb-container: 75rem;
    --hcb-container-wide: 90rem;
    --hcb-content: 48rem;
    --hcb-gutter: clamp(1rem, 3vw, 2rem);
    --hcb-section-space: clamp(3rem, 6vw, 6rem);

    --hcb-radius-sm: 0.375rem;
    --hcb-radius-md: 0.625rem;
    --hcb-radius-lg: 1rem;
    --hcb-shadow-sm: 0 1px 2px rgba(23, 29, 40, 0.08);
    --hcb-shadow-md: 0 0.75rem 2rem rgba(23, 29, 40, 0.1);
    --hcb-shadow-lg: 0 1.25rem 3rem rgba(23, 29, 40, 0.14);
    --hcb-transition-fast: 200ms ease;
    --hcb-transition: 240ms ease;
}

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

html {
    color-scheme: light;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--hcb-bg);
    color: var(--hcb-text);
    font-family: var(--hcb-font-ltr);
    font-size: var(--hcb-font-size-base);
    line-height: var(--hcb-line-body);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html[dir="rtl"] body,
body.rtl {
    font-family: var(--hcb-font-rtl);
    text-align: start;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-block: 0 0.65em;
    color: var(--hcb-navy-900);
    font-weight: 700;
    line-height: var(--hcb-line-heading);
    text-wrap: balance;
}

h1 { font-size: var(--hcb-font-size-4xl); }
h2 { font-size: var(--hcb-font-size-3xl); }
h3 { font-size: var(--hcb-font-size-2xl); }
h4 { font-size: var(--hcb-font-size-xl); }
h5 { font-size: var(--hcb-font-size-lg); }
h6 { font-size: var(--hcb-font-size-base); }

p,
ul,
ol,
dl,
blockquote {
    margin-block: 0 1em;
}

p:last-child,
ul:last-child,
ol:last-child {
    margin-block-end: 0;
}

a {
    color: var(--hcb-gold-700);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transition: color var(--hcb-transition-fast), text-decoration-color var(--hcb-transition-fast);
}

a:hover {
    color: var(--hcb-navy-900);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--hcb-focus);
    outline-offset: 3px;
}

img,
svg,
video,
canvas,
iframe {
    max-inline-size: 100%;
}

img,
video {
    block-size: auto;
}

iframe {
    border: 0;
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: min(100% - (2 * var(--hcb-gutter)), var(--hcb-container));
    max-width: var(--hcb-container);
    margin-inline: auto;
    padding-inline: 0;
}

.hcb-container-wide {
    width: min(100% - (2 * var(--hcb-gutter)), var(--hcb-container-wide));
    margin-inline: auto;
}

.hcb-reading-width {
    max-inline-size: var(--hcb-content);
}

.hcb-section {
    padding-block: var(--hcb-section-space);
}

.hcb-section--soft {
    background: var(--hcb-bg-soft);
}

.hcb-flow > * + * {
    margin-block-start: var(--hcb-space-6);
}

.hcb-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(var(--hcb-space-4), 2vw, var(--hcb-space-8));
}

.btn,
.custom_btn,
button,
input[type="button"],
input[type="submit"] {
    min-block-size: 2.75rem;
    border: 1px solid transparent;
    border-radius: var(--hcb-radius-sm);
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    transition: color var(--hcb-transition-fast), background-color var(--hcb-transition-fast), border-color var(--hcb-transition-fast), box-shadow var(--hcb-transition-fast), transform var(--hcb-transition-fast);
}

.btn,
.custom_btn,
input[type="button"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--hcb-space-2);
    padding: 0.7rem 1.25rem;
    background: var(--hcb-gold-500);
    color: var(--hcb-navy-950);
    text-decoration: none;
}

.btn:hover,
.custom_btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: var(--hcb-gold-300);
    color: var(--hcb-navy-950);
    box-shadow: var(--hcb-shadow-sm);
    transform: translateY(-1px);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.58;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
select,
textarea,
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    min-block-size: 2.875rem;
    padding: 0.7rem 0.875rem;
    border: 1px solid var(--hcb-neutral-300);
    border-radius: var(--hcb-radius-sm);
    background: var(--hcb-white);
    color: var(--hcb-text);
    font: inherit;
    line-height: 1.5;
    transition: border-color var(--hcb-transition-fast), box-shadow var(--hcb-transition-fast);
}

textarea,
textarea.wpcf7-form-control {
    min-block-size: 8rem;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--hcb-neutral-500);
    opacity: 1;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: var(--hcb-focus);
    box-shadow: 0 0 0 0.2rem rgba(47, 109, 161, 0.16);
}

label {
    display: inline-block;
    margin-block-end: var(--hcb-space-2);
    color: var(--hcb-navy-900);
    font-weight: 700;
}

.wpcf7-not-valid-tip,
.hcb-error {
    display: block;
    margin-block-start: var(--hcb-space-2);
    color: var(--hcb-error);
    font-size: var(--hcb-font-size-sm);
    font-weight: 700;
}

.wpcf7 form .wpcf7-response-output {
    margin-inline: 0;
    padding: var(--hcb-space-4);
    border-radius: var(--hcb-radius-sm);
    color: var(--hcb-text);
}

.card {
    border-color: var(--hcb-border);
    background: var(--hcb-white);
    box-shadow: var(--hcb-shadow-sm);
}

.card-body {
    padding: clamp(var(--hcb-space-5), 2vw, var(--hcb-space-8));
}

.card-title {
    margin-block-end: var(--hcb-space-3);
    color: var(--hcb-navy-900);
    line-height: var(--hcb-line-heading);
}

.text-muted {
    color: var(--hcb-text-muted) !important;
}

.hcb-icon,
.fa-solid,
.fa-regular,
.fa-brands {
    line-height: 1;
}

.hcb-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Shared header and navigation foundation. */
#header {
    position: sticky;
    inset-block-start: 0;
    z-index: 1030;
    padding-block: 0.75rem;
    border-block-end: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(35, 42, 56, 0.98);
    background-position: center;
    background-size: cover;
    box-shadow: 0 0 0 rgba(23, 29, 40, 0);
    transition: padding var(--hcb-transition), background-color var(--hcb-transition), box-shadow var(--hcb-transition);
}

#header.hcb-header--scrolled {
    padding-block: 0.4rem;
    background-color: rgba(23, 29, 40, 0.98);
    box-shadow: 0 0.5rem 1.5rem rgba(23, 29, 40, 0.2);
}

body.admin-bar #header {
    inset-block-start: 32px;
}

#header .navbar {
    min-block-size: 4rem;
    padding-block: 0;
}

#header .navbar-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-inline: 0 var(--hcb-space-8);
    padding: 0;
    border-radius: var(--hcb-radius-sm);
}

#header .navbar-brand img {
    display: block;
    inline-size: clamp(8.5rem, 11vw, 11.125rem);
    block-size: auto;
    max-block-size: 3.25rem;
    object-fit: contain;
}

#header .navbar-nav {
    align-items: center;
    gap: clamp(0.15rem, 0.6vw, 0.55rem);
    padding-inline: 0 !important;
}

#header .nav-link {
    position: relative;
    padding: 0.75rem 0.65rem;
    border-radius: var(--hcb-radius-sm);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--hcb-transition-fast), background-color var(--hcb-transition-fast);
}

#header .nav-link:hover,
#header .nav-link:focus-visible,
#header .nav-link.show,
#header .nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--hcb-gold-300);
}

#header .nav-link::before {
    position: absolute;
    inset-inline: 0.65rem;
    inset-block-end: 0.35rem;
    block-size: 2px;
    background: var(--hcb-gold-500);
    content: "";
    opacity: 0;
    transition: opacity var(--hcb-transition-fast);
}

#header .nav-link.active::before,
#header .nav-link.show::before {
    opacity: 1;
}

#header .dropdown-menu {
    min-inline-size: 15rem;
    margin-block-start: 0.35rem;
    padding: var(--hcb-space-2);
    border: 1px solid rgba(35, 42, 56, 0.1);
    border-radius: var(--hcb-radius-md);
    background: var(--hcb-white);
    box-shadow: var(--hcb-shadow-lg);
}

#header .dropdown-item {
    padding: 0.7rem 0.8rem;
    border-radius: var(--hcb-radius-sm);
    color: var(--hcb-navy-900);
    font-size: var(--hcb-font-size-sm);
    font-weight: 600;
    line-height: 1.45;
    white-space: normal;
    text-decoration: none;
    transition: color var(--hcb-transition-fast), background-color var(--hcb-transition-fast);
}

#header .dropdown-item:hover,
#header .dropdown-item:focus,
#header .dropdown-item.active,
#header .dropdown-item:active {
    background: var(--hcb-blue-100);
    color: var(--hcb-gold-700);
}

#header .navbar-toggler {
    inline-size: 2.875rem;
    min-block-size: 2.875rem;
    padding: 0.55rem;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

#header .navbar-toggler:hover {
    border-color: var(--hcb-gold-500);
    background: rgba(255, 255, 255, 0.14);
    transform: none;
}

#header .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}

#header .offcanvas-title {
    margin: 0;
    color: var(--hcb-white);
}

#header .btn-close {
    min-block-size: 2.75rem;
    margin: 0;
    opacity: 0.9;
}

html[dir="rtl"] #header .dropdown-menu {
    text-align: start;
}

html[dir="rtl"] #header .dropdown-toggle::after {
    margin-inline: 0.35em 0;
}

/* Homepage composition: uses the existing CMS fields and post queries. */
body.home .main_box {
    isolation: isolate;
    display: grid;
    min-block-size: clamp(30rem, 67vh, 46rem);
    background-position: center;
    background-size: cover;
}

body.home .main_box::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(23, 29, 40, 0.92) 0%, rgba(23, 29, 40, 0.62) 48%, rgba(23, 29, 40, 0.12) 100%);
    content: "";
}

html[dir="rtl"] body.home .main_box::before {
    background: linear-gradient(270deg, rgba(23, 29, 40, 0.92) 0%, rgba(23, 29, 40, 0.62) 48%, rgba(23, 29, 40, 0.12) 100%);
}

body.home .main_box .the_details {
    align-self: center;
    width: min(100%, 48rem);
    padding: clamp(3rem, 8vw, 7rem) max(var(--hcb-gutter), calc((100vw - var(--hcb-container)) / 2));
}

body.home .main_box .the_details h2 {
    max-inline-size: 18ch;
    margin-block-end: var(--hcb-space-4);
    color: var(--hcb-gold-500);
    font-size: var(--hcb-font-size-4xl);
    line-height: var(--hcb-line-tight);
    text-shadow: 0 2px 1rem rgba(0, 0, 0, 0.4);
}

body.home .main_box .the_details h3 {
    display: inline-block;
    max-inline-size: 34ch;
    margin-block-end: var(--hcb-space-5);
    padding: 0.55rem 0.85rem;
    border-radius: var(--hcb-radius-sm);
    background: var(--hcb-gold-500);
    color: var(--hcb-navy-950);
    font-size: var(--hcb-font-size-xl);
}

body.home .main_box .the_details p {
    max-inline-size: 42rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 16.8px;
    line-height: 1.7;
}

body.home .page_header_title:empty {
    display: none;
}

body.home > .container,
body.home > #the_pillars {
    padding-block: var(--hcb-section-space) !important;
    padding-inline: 0 !important;
}

body.home .background-box {
    display: grid;
    place-content: center;
    min-block-size: 100%;
    padding: clamp(1.5rem, 4vw, 3rem) !important;
    border: 1px solid rgba(212, 170, 82, 0.6);
    border-radius: var(--hcb-radius-lg);
    background: var(--hcb-navy-900);
    color: var(--hcb-white);
    box-shadow: var(--hcb-shadow-md);
}

body.home .background-box::after {
    display: none;
}

body.home .background-box h2 {
    margin-block: var(--hcb-space-4) 0;
    color: var(--hcb-gold-300);
}

body.home .background-border {
    max-inline-size: 42rem;
    margin-inline: auto;
    text-align: center;
}

body.home .background-border::after {
    inset-inline: 10%;
    inset-block: auto -0.25rem;
    z-index: -1;
    width: 80%;
    height: 0.35rem;
    border-radius: 999px;
    background: var(--hcb-gold-500);
}

body.home #the_pillars .row {
    row-gap: var(--hcb-space-5);
}

body.home #the_pillars .row > [class*="col-"] {
    flex: 1 1 15rem;
    width: auto;
    margin-block-end: 0 !important;
}

body.home .pillars {
    min-block-size: 100%;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--hcb-border);
    border-block-start: 4px solid var(--hcb-gold-500);
    border-radius: var(--hcb-radius-md);
    background: var(--hcb-white);
    box-shadow: var(--hcb-shadow-sm);
    transition: transform var(--hcb-transition), box-shadow var(--hcb-transition);
}

body.home .pillars:hover {
    box-shadow: var(--hcb-shadow-md);
    transform: translateY(-3px);
}

body.home .pillars h2 {
    margin-block-end: var(--hcb-space-4);
    padding: 0;
    background: transparent;
    color: var(--hcb-navy-900);
    font-size: var(--hcb-font-size-xl);
}

body.home .pillars h3.count_box {
    inset-block-start: auto;
    inset-inline: auto -0.25rem;
    inset-block-end: -2.25rem;
    z-index: 0;
    color: var(--hcb-gold-500);
    font-size: 144px;
    line-height: 1;
    opacity: 0.12;
}

body.home .header_style_2,
body.home .header_style_1 h2 {
    margin-block-end: var(--hcb-space-8);
    color: var(--hcb-navy-900);
    font-size: var(--hcb-font-size-3xl);
    font-weight: 700;
    text-align: center;
}

body.home .header_style_2 {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

body.home .header_style_1 {
    margin-block-end: var(--hcb-space-8);
}

body.home .header_style_1 .col-4:first-child,
body.home .header_style_1 .col-4:last-child {
    opacity: 0.35;
}

.hcb-service-tile {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--hcb-border);
    border-radius: var(--hcb-radius-md);
    background: var(--hcb-white);
    color: var(--hcb-navy-900);
    box-shadow: var(--hcb-shadow-sm);
    text-decoration: none;
    transition: border-color var(--hcb-transition), box-shadow var(--hcb-transition), transform var(--hcb-transition);
}

.hcb-service-tile img,
body.home .services_images .hcb-service-tile img,
body.home .corporate_images .hcb-service-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--hcb-transition);
}

.hcb-service-tile span {
    display: grid;
    place-content: center;
    min-block-size: 4.5rem;
    padding: var(--hcb-space-4);
    font-size: var(--hcb-font-size-base);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.hcb-service-tile:hover {
    border-color: var(--hcb-gold-500);
    color: var(--hcb-navy-900);
    box-shadow: var(--hcb-shadow-md);
    transform: translateY(-3px);
}

.hcb-service-tile:hover img {
    transform: scale(1.025);
}

body.home .infographic {
    display: grid;
    min-block-size: 0;
    padding: clamp(2rem, 5vw, 4rem);
    background-position: center;
}

body.home .infographic img {
    width: min(100%, var(--hcb-container));
    margin-inline: auto;
    padding: 0 !important;
}

body.home .visa_continer {
    width: min(100% - (2 * var(--hcb-gutter)), var(--hcb-container));
    margin: var(--hcb-section-space) auto;
}

body.home .visa_content {
    border-radius: var(--hcb-radius-md);
    background: var(--hcb-neutral-100);
}

body.home .visa_content p {
    color: var(--hcb-text-muted);
    font-size: var(--hcb-font-size-lg);
}

/* Inner-page hero and title bar. */
body:not(.home) .main_box {
    isolation: isolate;
    display: grid;
    min-block-size: clamp(16rem, 35vw, 27rem);
    background-position: center;
    background-size: cover;
}

body:not(.home) .main_box::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(23, 29, 40, 0.82), rgba(23, 29, 40, 0.18));
    content: "";
}

html[dir="rtl"] body:not(.home) .main_box::before {
    background: linear-gradient(270deg, rgba(23, 29, 40, 0.82), rgba(23, 29, 40, 0.18));
}

body:not(.home) .main_box .the_details {
    align-self: center;
    width: min(100%, 48rem);
    padding: clamp(2.5rem, 6vw, 5rem) max(var(--hcb-gutter), calc((100vw - var(--hcb-container)) / 2));
}

body:not(.home) .main_box .the_details h2,
body:not(.home) .main_box .the_details h3,
body:not(.home) .main_box .the_details p {
    color: var(--hcb-white);
    text-shadow: 0 2px 1rem rgba(0, 0, 0, 0.35);
}

.page_header_title {
    margin: 0;
    padding-block: clamp(1.25rem, 2.5vw, 2rem) !important;
    border-block-start: 4px solid var(--hcb-gold-500);
    background: var(--hcb-navy-900);
}

.page_header_title h1,
.page_header_title h2 {
    margin: 0;
    color: var(--hcb-gold-300);
    font-size: var(--hcb-font-size-2xl);
}

/* Service and flexible CMS card layouts. */
#services {
    padding-block: var(--hcb-section-space) !important;
}

#services.page {
    width: 100%;
}

#services .section,
#services .section.container {
    width: min(100% - (2 * var(--hcb-gutter)), var(--hcb-container));
    max-width: var(--hcb-container);
    margin-inline: auto;
    padding-block: clamp(1rem, 2vw, 2rem);
}

#services .row {
    row-gap: clamp(var(--hcb-space-4), 2vw, var(--hcb-space-6));
}

#services .card,
#services.page .card.just_border,
#services.page .card.just_border_no_margin,
#services.page .card.blank {
    height: 100%;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--hcb-border);
    border-radius: var(--hcb-radius-md);
    background: var(--hcb-white);
    box-shadow: var(--hcb-shadow-sm);
}

#services .card .card-body,
#services.page .card.blank .card-body {
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-inline-start: 4px solid var(--hcb-gold-500);
    border-radius: 0;
    background: var(--hcb-white);
    color: var(--hcb-text);
    transition: border-color var(--hcb-transition), box-shadow var(--hcb-transition), transform var(--hcb-transition);
}

#services .card .content,
#services .card-body.with_image .content,
#services.page .card .card-body.with_image .content {
    position: relative;
    z-index: 1;
    width: auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) !important;
    border-radius: 0;
}

#services .card .card-body.with_image {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.8fr);
    min-block-size: 20rem;
}

#services .card .card-body.with_image.left {
    grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr);
    border: 0;
    border-inline-end: 4px solid var(--hcb-gold-500);
}

#services .card .card-body.with_image.left .image_cover {
    order: -1;
}

#services .card .card-body.with_image .image_cover,
#services.page .card .card-body.with_image.no_border .image_cover {
    position: relative;
    inset: auto;
    width: 100%;
    min-block-size: 17rem;
    border-radius: 0;
    background-position: center;
    background-size: cover;
}

#services .card .card-body.with_image .image_cover::before {
    display: none;
}

#services .card .card-body:hover {
    background: var(--hcb-white);
    color: var(--hcb-text);
    box-shadow: var(--hcb-shadow-md);
}

#services .card h3.main_title {
    color: var(--hcb-gold-700);
    font-size: var(--hcb-font-size-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[dir="rtl"] #services .card h3.main_title {
    letter-spacing: 0;
    text-transform: none;
}

#services .card h5,
#services.page .card-title {
    color: var(--hcb-navy-900);
    font-size: var(--hcb-font-size-xl);
}

#services .card p,
#services.page .card-text {
    color: var(--hcb-text-muted);
    font-size: var(--hcb-font-size-base);
    line-height: var(--hcb-line-body);
}

#services .card .card-body.dark,
#services .card .card-body.dark .content,
.card .card-body.dark {
    border-color: var(--hcb-navy-800);
    border-radius: 0;
    background: var(--hcb-navy-900) !important;
    color: var(--hcb-white) !important;
}

#services .card .card-body.dark h3,
#services .card .card-body.dark h5,
#services .card .card-body.dark p {
    color: var(--hcb-white);
}

.visions-h3 {
    width: min(100%, 42rem) !important;
    margin: 0 auto var(--hcb-space-8);
    padding: var(--hcb-space-5) !important;
    border-inline-start: 4px solid var(--hcb-gold-500);
    background: var(--hcb-blue-50) !important;
    color: var(--hcb-navy-900);
    text-align: center;
}

/* Institutional documents, board members, and data. */
.downloads_files {
    height: 100%;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid var(--hcb-border);
    border-block-start: 4px solid var(--hcb-gold-500);
    border-radius: var(--hcb-radius-md);
    background: var(--hcb-white);
    box-shadow: var(--hcb-shadow-sm);
}

.downloads_files h4,
.downloads_files h5 {
    color: var(--hcb-navy-900);
}

.downloads_files a {
    display: inline-flex;
    align-items: center;
    gap: var(--hcb-space-2);
    min-block-size: 2.75rem;
    margin-block-start: var(--hcb-space-3);
    color: var(--hcb-gold-700);
    font-weight: 700;
}

.carousel-container {
    width: 100%;
    padding: var(--hcb-space-4) 0;
    overflow: hidden;
}

.team-member {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--hcb-border);
    border-radius: var(--hcb-radius-md);
    background: var(--hcb-white);
    box-shadow: var(--hcb-shadow-sm);
}

.team-member img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.team-member-name {
    min-block-size: 4rem;
    padding: var(--hcb-space-4);
    background: var(--hcb-navy-900);
    color: var(--hcb-white);
    font-size: var(--hcb-font-size-base);
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.entry-content table,
#services table,
.article-content table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.entry-content th,
.entry-content td,
#services th,
#services td,
.article-content th,
.article-content td {
    padding: 0.75rem;
    border: 1px solid var(--hcb-border);
    text-align: start;
    vertical-align: top;
}

.entry-content th,
#services th,
.article-content th {
    background: var(--hcb-navy-900);
    color: var(--hcb-white);
}

/* News listing and article reading experience. */
#news {
    padding-block: var(--hcb-section-space) !important;
}

#news .row {
    row-gap: var(--hcb-space-6);
}

#news .card {
    overflow: hidden;
    border: 1px solid var(--hcb-border);
    border-radius: var(--hcb-radius-md);
    box-shadow: var(--hcb-shadow-sm);
    transition: border-color var(--hcb-transition), box-shadow var(--hcb-transition), transform var(--hcb-transition);
}

#news .card:hover {
    border-color: var(--hcb-gold-300);
    box-shadow: var(--hcb-shadow-md);
    transform: translateY(-3px);
}

.hcb-news-card__image {
    display: block;
    overflow: hidden;
}

#news .card-img-top {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform var(--hcb-transition);
}

#news .card:hover .card-img-top {
    transform: scale(1.025);
}

#news .card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

#news .card-title {
    color: var(--hcb-navy-900);
    font-size: var(--hcb-font-size-xl);
}

#news .card-text {
    flex: 1 1 auto;
    color: var(--hcb-text-muted);
}

#single_page {
    width: min(100% - (2 * var(--hcb-gutter)), var(--hcb-content));
    max-width: var(--hcb-content);
    padding: var(--hcb-section-space) 0 !important;
}

#single_page > h2 {
    margin-block-end: var(--hcb-space-3);
}

#single_page > .text-center img {
    width: 100%;
    max-block-size: 32rem;
    border-radius: var(--hcb-radius-md);
    object-fit: cover;
}

.article-content {
    color: var(--hcb-text);
    font-size: var(--hcb-font-size-lg);
    line-height: 1.85;
}

.article-content :where(h2, h3, h4) {
    margin-block-start: 1.6em;
}

.article-content :where(img, iframe, video) {
    height: auto;
    margin-block: var(--hcb-space-6);
    border-radius: var(--hcb-radius-sm);
}

/* Contact and branch cards. */
.locations {
    padding: var(--hcb-space-3);
}

.locations > h4,
.locations > div {
    margin: 0 !important;
}

.locations > h4 {
    padding: var(--hcb-space-4) var(--hcb-space-5);
    border-radius: var(--hcb-radius-md) var(--hcb-radius-md) 0 0;
    background: var(--hcb-navy-900);
    color: var(--hcb-white);
}

.locations > div {
    height: calc(100% - 3.5rem);
    padding: var(--hcb-space-5);
    border: 1px solid var(--hcb-border);
    border-block-start: 0;
    border-radius: 0 0 var(--hcb-radius-md) var(--hcb-radius-md);
    background: var(--hcb-white);
    box-shadow: var(--hcb-shadow-sm);
}

.locations p {
    display: flex;
    align-items: flex-start;
    gap: var(--hcb-space-3);
}

.locations p i {
    flex: 0 0 1.25rem;
    margin-block-start: 0.35em;
    color: var(--hcb-gold-700);
    text-align: center;
}

.locations iframe {
    width: 100%;
    min-block-size: 16rem;
    border-radius: var(--hcb-radius-sm);
}

/* Institutional footer using the existing content and destinations. */
footer {
    margin-block-start: var(--hcb-section-space);
    padding-block: clamp(3rem, 6vw, 5rem) 2rem;
    border-block-start: 4px solid var(--hcb-gold-500);
    background: var(--hcb-navy-950);
    color: rgba(255, 255, 255, 0.84);
}

body.home footer {
    margin-block-start: 0;
}

footer .container {
    max-width: var(--hcb-container);
}

footer .row {
    row-gap: var(--hcb-space-8);
}

footer h2,
footer h3,
footer h4 {
    color: var(--hcb-white);
    font-size: var(--hcb-font-size-lg);
}

footer p {
    color: rgba(255, 255, 255, 0.76);
    font-size: var(--hcb-font-size-sm);
    line-height: 1.7;
}

footer a {
    color: rgba(255, 255, 255, 0.86);
    text-underline-offset: 0.2em;
}

footer a:hover,
footer a:focus-visible {
    color: var(--hcb-gold-300);
}

footer .hours {
    padding-inline-end: var(--hcb-space-8);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.16);
}

footer .hours h2 {
    color: var(--hcb-gold-300);
    font-size: var(--hcb-font-size-xl);
}

footer .hours p {
    margin-block-end: var(--hcb-space-2);
}

footer .footer-logo {
    display: block;
    width: min(100%, 15rem) !important;
    height: auto;
}

footer .social_media_website {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--hcb-space-5);
    margin-block: var(--hcb-space-6);
}

footer .social_media {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--hcb-space-2);
}

footer .social_media a {
    display: grid;
    place-content: center;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    transition: border-color var(--hcb-transition-fast), background-color var(--hcb-transition-fast), transform var(--hcb-transition-fast);
}

footer .social_media a:hover {
    border-color: var(--hcb-gold-500);
    background: rgba(212, 170, 82, 0.1);
    transform: translateY(-2px);
}

footer .social_media img,
footer .website img,
footer .callbox img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

footer .website {
    display: inline-flex;
    align-items: center;
    gap: var(--hcb-space-2);
    color: var(--hcb-white);
}

footer .callbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hcb-space-4);
    margin: var(--hcb-space-5) auto;
    padding: var(--hcb-space-4);
    border: 1px solid rgba(212, 170, 82, 0.5);
    border-radius: var(--hcb-radius-md);
    background: rgba(255, 255, 255, 0.04);
    color: var(--hcb-white);
}

footer .call {
    display: inline-flex;
    align-items: center;
    gap: var(--hcb-space-2);
}

footer .visa_icons {
    display: flex;
    justify-content: center;
    gap: var(--hcb-space-3);
}

footer .visa_icons img {
    width: auto;
    height: 2rem;
    object-fit: contain;
}

footer .footerboxes {
    row-gap: var(--hcb-space-4);
}

footer .footerboxes .box {
    height: 100%;
    padding: var(--hcb-space-5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--hcb-radius-md);
    background: rgba(255, 255, 255, 0.04);
}

footer .footerboxes .box h2 {
    color: var(--hcb-gold-300);
    font-size: var(--hcb-font-size-base);
}

footer .footerboxes .box a {
    display: block;
    min-block-size: 2rem;
    padding-block: 0.2rem;
    font-size: var(--hcb-font-size-sm);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    :root {
        --hcb-gutter: 1rem;
        --hcb-section-space: 3rem;
    }

    .hcb-grid {
        grid-template-columns: 1fr;
    }

    .btn,
    .custom_btn,
    button,
    input[type="button"],
    input[type="submit"] {
        min-block-size: 2.875rem;
    }

    body.home .main_box {
        min-block-size: 30rem;
        background-position: 62% center;
    }

    body.home .main_box .the_details {
        padding: 3.5rem var(--hcb-gutter);
    }

    body.home > .container,
    body.home > #the_pillars {
        padding-block: 3rem !important;
    }

    body.home .container > .row > .p-5 {
        padding: var(--hcb-space-6) 0 0 !important;
    }

    body.home .header_style_1 .row {
        display: block;
    }

    body.home .header_style_1 .col-4 {
        width: 100%;
    }

    body.home .header_style_1 .col-4:first-child,
    body.home .header_style_1 .col-4:last-child {
        display: none;
    }

    body.home .visa,
    body.home .gray-bg {
        width: 100%;
        margin-inline: 0;
    }

    body.home .visa {
        padding: var(--hcb-space-6) 0;
        font-size: var(--hcb-font-size-2xl);
    }

    body.home .visa_continer .visa_img {
        position: relative;
        inset: auto;
        display: block;
        width: min(80%, 22rem);
        max-width: none;
        height: auto;
        margin-inline: auto;
    }

    body.home .visa_content {
        padding: var(--hcb-space-6);
    }

    body:not(.home) .main_box {
        min-block-size: 14rem;
    }

    body:not(.home) .main_box .the_details {
        padding: 2.5rem var(--hcb-gutter);
    }

    #services .card .card-body.with_image,
    #services .card .card-body.with_image.left {
        display: flex;
        flex-direction: column;
        min-block-size: 0;
        border-inline: 0;
        border-block-start: 4px solid var(--hcb-gold-500);
    }

    #services .card .card-body.with_image .image_cover,
    #services.page .card .card-body.with_image.no_border .image_cover,
    #services .card .card-body.with_image.left .image_cover {
        position: relative !important;
        order: -1;
        min-block-size: 13rem;
    }

    .entry-content,
    #services,
    .article-content {
        overflow-wrap: anywhere;
    }

    .entry-content table,
    #services table,
    .article-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    footer {
        text-align: center;
    }

    footer .hours {
        padding-inline-end: calc(var(--bs-gutter-x) * 0.5);
        border-inline-end: 0;
    }

    footer .callbox {
        flex-direction: column;
    }

    body.admin-bar #header {
        inset-block-start: 46px;
    }
}

@media (max-width: 991.98px) {
    #header,
    #header.hcb-header--scrolled {
        padding-block: 0.4rem;
    }

    #header .navbar {
        display: flex;
        justify-content: space-between;
        min-block-size: 3.75rem;
    }

    #header .navbar-brand {
        margin: 0 !important;
    }

    html[dir="rtl"] #header .navbar-brand {
        margin: 0 !important;
    }

    #header .offcanvas-fullscreen {
        width: min(100%, 25rem);
        height: 100%;
        background: var(--hcb-navy-900);
        color: var(--hcb-white);
    }

    #header .offcanvas-header {
        min-block-size: 4.5rem;
        padding: var(--hcb-space-4) var(--hcb-space-5);
        border-block-end: 1px solid rgba(255, 255, 255, 0.12);
    }

    #header .offcanvas-body {
        padding: var(--hcb-space-5);
    }

    #header .navbar-nav {
        align-items: stretch;
        gap: var(--hcb-space-2);
    }

    #header .nav-link {
        min-block-size: 2.75rem;
        padding: 0.75rem;
        font-size: 16px;
        white-space: normal;
    }

    #header .nav-link.active::before {
        inset-inline: 0.75rem auto;
        inline-size: 2rem;
    }

    #header .dropdown-menu {
        margin: 0.25rem 0 0;
        border: 0;
        box-shadow: none;
    }

    html[dir="rtl"] body.home .main_box .the_details {
        inset: auto !important;
        width: 100% !important;
        max-width: 100%;
        margin: 0 !important;
        padding-inline: var(--hcb-gutter) !important;
        transform: none !important;
    }

    html[dir="rtl"] body.home .main_box .the_details > * {
        max-width: 100%;
        margin-inline: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    :root {
        --hcb-section-space: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    :where(a, button, input, select, textarea, [tabindex]):focus-visible {
        outline-color: Highlight;
    }
}
