/* ========================================
   1. GLOBAL VARIABLES
======================================== */

:root {
    --primary-color: #123b70;
    --secondary-color: #087f8c;
    --accent-color: #f2a900;
    --dark-color: #17212f;
    --text-color: #4b5563;
    --light-color: #f5f7fa;
    --white-color: #ffffff;
    --border-color: #e5e7eb;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: 0.3s ease;
}

/* ========================================
   2. RESET AND BASE STYLES
======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--white-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
input[type="submit"] {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-color);
    line-height: 1.3;
    margin-top: 0;
}

p {
    margin-top: 0;
}

.container {
    width: min(92%, var(--container-width));
    margin-inline: auto;
}

.site-main {
    min-height: 60vh;
    padding: 50px 0;
}

.section-title {
    margin-bottom: 25px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

/* ========================================
   3. HEADER AND NAVIGATION
======================================== */

.site-header {
    background: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.header-inner {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-logo {
    max-height: 65px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--primary-color);
}

.site-description {
    margin: 2px 0 0;
    font-size: 0.85rem;
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
    padding: 12px 0;
    color: var(--dark-color);
    font-weight: 600;
   text-transform: uppercase !important;
    font-size: 18px !important;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white-color);
    color: var(--dark-color);
}
/*==============================================================*/

/* ========================================
   BRAINMARK MAIN NAVIGATION
======================================== */

.brainmark-menubar #brainmarkMainMenu ul#menu-main-menu > li > a.nav-link {
    text-transform: uppercase !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #123b70 !important;
    letter-spacing: 0.5px;
}

/* Hover and active menu items */
.brainmark-menubar #brainmarkMainMenu ul#menu-main-menu > li > a.nav-link:hover,
.brainmark-menubar #brainmarkMainMenu ul#menu-main-menu > li.current-menu-item > a.nav-link {
    color: #007bff !important;
}

/* Desktop menu spacing */
@media (min-width: 992px) {
    .brainmark-menubar #menu-main-menu > li > a.nav-link {
        padding: 15px 12px !important;
    }
}

/* Mobile menu */
@media (max-width: 991.98px) {
    .brainmark-menubar #menu-main-menu > li > a.nav-link {
        font-size: 17px !important;
        padding: 12px 10px !important;
    }
}

/* ========================================
   4. BUTTONS
======================================== */

.btn,
.wp-block-button__link {
    display: inline-block;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: var(--white-color);
    font-weight: 700;
    text-align: center;
}

.btn:hover,
.wp-block-button__link:hover {
    background: var(--secondary-color);
    color: var(--white-color);
}

/* ========================================
   5. HOMEPAGE HERO
======================================== */

.hero-section {
    padding: 90px 0;
    color: var(--white-color);
    background: linear-gradient(120deg, #123b70, #087f8c);
}

.hero-section h1 {
    max-width: 850px;
    color: var(--white-color);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-section p {
    max-width: 750px;
    font-size: 1.1rem;
}

.hero-section .btn {
    background: var(--accent-color);
    color: var(--dark-color);
}

/* ========================================
   6. CONTENT AND POSTS
======================================== */

.entry-title {
    margin-bottom: 12px;
}

.entry-meta {
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 0.9rem;
}

.entry-content {
    overflow-wrap: anywhere;
}

.entry-content > * {
    max-width: 100%;
}

.entry-content img {
    border-radius: var(--border-radius);
}

.post-card {
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white-color);
}

.post-thumbnail {
    margin-bottom: 20px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.pagination,
.nav-links {
    margin-top: 30px;
}

.pagination a,
.pagination span,
.nav-links a {
    display: inline-block;
    margin: 4px;
    padding: 8px 13px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

/* ========================================
   7. SIDEBAR
======================================== */

.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
}

.widget {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.widget ul {
    padding-left: 20px;
}

/* ========================================
   8. FORMS AND COMMENTS
======================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: var(--white-color);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form p {
    margin-bottom: 18px;
}

.comment-list {
    padding-left: 25px;
}

.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-respond {
    margin-top: 35px;
}

/* ========================================
   9. FOOTER
======================================== */

.site-footer {
    padding: 45px 0 20px;
    background: #123b70;
    color: #d1d5db;
}

.site-footer h2,
.site-footer h3 {
    color: var(--white-color);
}

.site-footer a {
    color: var(--white-color);
}

.site-footer a:hover {
    color: var(--accent-color);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 0.9rem;
}

/* ========================================
   10. ACCESSIBILITY AND RESPONSIVENESS
======================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .main-navigation {
        display: none;
        width: 100%;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        padding: 12px;
        border-top: 1px solid var(--border-color);
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   BRAINMARK THREE-ROW HEADER
======================================== */

.brainmark-header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* ROW 1: TOP CONTACT BAR */

.brainmark-topbar {
    font-size: 13px;
}

.brainmark-contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.brainmark-contact-info a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brainmark-contact-info a:hover {
    opacity: 0.8;
}

.brainmark-social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.brainmark-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.25s ease,
                transform 0.25s ease;
}

.brainmark-social-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.brainmark-social-links i {
    font-size: 15px;
}

/* ROW 2: LOGO AND COURSE BUTTON */

.brainmark-logorow {
    border-bottom: 1px solid #e5e7eb;
}

.brainmark-branding {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brainmark-branding .custom-logo-link {
    display: inline-block;
}

.brainmark-branding img.custom-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 85px;
    object-fit: contain;
}

.brainmark-site-identity {
    min-width: 0;
}

.brainmark-site-title {
    display: inline-block;
    color: #123b70;
    font-family: 'Poppins', sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.brainmark-site-identity p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.brainmark-course-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.brainmark-course-button:hover {
    color: inherit;
    opacity: 0.85;
}

/* ROW 3: NAVIGATION */

.brainmark-menubar {
    border-bottom: 1px solid #e5e7eb;
}

.brainmark-menubar .navbar-nav {
    gap: 8px;
}

.brainmark-menubar .navbar-nav .nav-link {
    padding: 15px 16px;
    color: var(--brainmark-menu-text, #123b70);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.brainmark-menubar .navbar-nav .nav-link:hover,
.brainmark-menubar .navbar-nav .current-menu-item > a,
.brainmark-menubar .navbar-nav .current_page_item > a {
    color: #087f8c;
}

.brainmark-menubar .navbar-toggler {
    border-color: #d1d5db;
}

.brainmark-menubar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.2);
}

/* MOBILE LAYOUT */

@media (max-width: 991.98px) {

    .brainmark-topbar .row {
        row-gap: 10px;
    }

    .brainmark-contact-info {
        justify-content: center;
        gap: 8px 16px;
    }

    .brainmark-social-links {
        justify-content: center;
    }

    .brainmark-topbar .col-lg-8,
    .brainmark-topbar .col-lg-4 {
        text-align: center;
    }

    .brainmark-menubar .navbar-nav {
        gap: 0;
        padding: 8px 0;
    }

    .brainmark-menubar .navbar-nav .nav-link {
        padding: 12px 8px;
        border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    }
}
/** FOR THE HEADING SETTINGS**/
@media (max-width: 575.98px) {

    .brainmark-topbar {
        font-size: 12px;
    }

    .brainmark-contact-info {
        flex-direction: column;
        align-items: center;
    }

    .brainmark-branding img.custom-logo {
        max-height: 60px;
    }

    .brainmark-site-title {
        font-size: 18px;
    }

    .brainmark-site-identity p {
        font-size: 11px;
    }

    .brainmark-course-button {
        gap: 6px;
        padding: 10px 8px;
        font-size: 11px;
    }

    .brainmark-course-button i {
        font-size: 12px;
    }
}


/* Fix logo size in the header */
.brainmark-logorow .custom-logo-link {
    display: inline-block;
    max-width: 220px;
    line-height: 0;
}

.brainmark-logorow img.custom-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 70px !important;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 991.98px) {
    .brainmark-logorow .custom-logo-link {
        max-width: 180px;
    }

    .brainmark-logorow img.custom-logo {
        max-width: 180px !important;
        max-height: 60px !important;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .brainmark-logorow .custom-logo-link {
        max-width: 140px;
    }

    .brainmark-logorow img.custom-logo {
        max-width: 140px !important;
        max-height: 50px !important;
    }
}


/* Logo and website title in the same row */

.brainmark-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.brainmark-logo {
    flex: 0 0 auto;
}

.brainmark-logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.brainmark-logo img.custom-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 130px !important;
    max-height: 65px !important;
    object-fit: contain;
}

.brainmark-site-identity {
    min-width: 0;
}

.brainmark-site-title {
    display: block;
    color: #123b70;
    font-family: 'Poppins', sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.brainmark-site-description {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

/* Responsive sizing */

@media (max-width: 575.98px) {
    .brainmark-branding {
        gap: 8px;
    }

    .brainmark-logo img.custom-logo {
        max-width: 65px !important;
        max-height: 45px !important;
    }

    .brainmark-site-title {
        font-size: 15px;
    }

    .brainmark-site-description {
        font-size: 10px;
    }
}


.brainmark-reveal-pending {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.brainmark-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .brainmark-reveal-pending,
    .brainmark-revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================
   BRAINMARK HOMEPAGE
========================================= */

.brainmark-homepage {
    overflow: hidden;
    color: #243247;
}

.brainmark-homepage .section-padding {
    padding: 85px 0;
}

.brainmark-homepage img {
    max-width: 100%;
}

/* HERO */
.brainmark-hero {
    position: relative;
    isolation: isolate;
    padding: 90px 0;
    background: linear-gradient(125deg, #082346 0%, #123b70 60%, #087f8c 100%);
    color: #ffffff;
}

.brainmark-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.14;
    background-image: radial-gradient(#ffffff 0.7px, transparent 0.7px);
    background-size: 18px 18px;
}

.brainmark-hero-container {
    position: relative;
    z-index: 1;
}

.brainmark-eyebrow,
.brainmark-section-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #087f8c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brainmark-hero .brainmark-eyebrow {
    color: #a7f3ed;
}

.brainmark-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 1.15;
}

.brainmark-hero-description {
    max-width: 650px;
    margin-bottom: 30px;
    color: #e3edf8;
    font-size: 17px;
    line-height: 1.8;
}

.brainmark-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.brainmark-btn-primary,
.brainmark-btn-outline,
.brainmark-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 7px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.brainmark-btn-primary {
    border: 1px solid #087f8c;
    background: #087f8c;
    color: #ffffff;
}

.brainmark-btn-primary:hover,
.brainmark-btn-primary:focus {
    transform: translateY(-3px);
    border-color: #066b76;
    background: #066b76;
    color: #ffffff;
}

.brainmark-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.brainmark-btn-outline:hover,
.brainmark-btn-outline:focus {
    transform: translateY(-3px);
    background: #ffffff;
    color: #123b70;
}

.brainmark-btn-light {
    background: #ffffff;
    color: #123b70;
}

.brainmark-btn-light:hover,
.brainmark-btn-light:focus {
    transform: translateY(-3px);
    background: #e6f5f7;
    color: #123b70;
}

.brainmark-hero-image-wrap {
    position: relative;
    max-width: 500px;
    margin-left: auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
}

.brainmark-hero-image {
    display: block;
    width: 100%;
    height: 390px;
    border-radius: 15px;
    object-fit: cover;
}

.brainmark-hero-image-caption {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    padding: 13px 16px;
    border-radius: 9px;
    background: rgba(8, 35, 70, 0.92);
    color: #ffffff;
    font-size: 13px;
}

.brainmark-hero-image-caption i {
    margin-right: 7px;
    color: #a7f3ed;
}

/* SECTION HEADINGS */
.brainmark-section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
}

.brainmark-section-heading h2,
.brainmark-about-title {
    margin: 0 0 17px;
    color: #123b70;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.3;
}

.brainmark-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

/* SERVICE CARDS */
.brainmark-services {
    background: #f5f8fc;
}

.brainmark-service-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 7px 25px rgba(18, 59, 112, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brainmark-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(18, 59, 112, 0.13);
}

.brainmark-service-image-link {
    display: block;
    overflow: hidden;
}

.brainmark-service-image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.brainmark-service-card:hover .brainmark-service-image {
    transform: scale(1.06);
}

.brainmark-service-content {
    position: relative;
    padding: 27px 22px 25px;
}

.brainmark-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-top: -53px;
    margin-bottom: 20px;
    position: relative;
    border: 4px solid #ffffff;
    border-radius: 13px;
    background: #087f8c;
    color: #ffffff;
    font-size: 21px;
}

.brainmark-service-content h3 {
    margin-bottom: 13px;
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

.brainmark-service-content h3 a {
    color: #123b70;
    text-decoration: none;
}

.brainmark-service-content p {
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.brainmark-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #087f8c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.brainmark-service-link:hover {
    color: #123b70;
}

/* ABOUT US PAGE*/
.brainmark-about {
    background: #ffffff;
}

.brainmark-about-image-wrap {
    position: relative;
    padding: 0 20px 20px 0;
}

.brainmark-about-image {
    display: block;
    width: 100%;
    height: 430px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 14px 14px 0 #e1f1f4;
}

.brainmark-about-image-label {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 15px 20px;
    border-radius: 8px;
    background: #123b70;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.brainmark-about-image-label i {
    margin-right: 8px;
    color: #a7f3ed;
}

.brainmark-about-title {
    font-size: clamp(27px, 3vw, 36px);
}

.brainmark-about-description {
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
}

.brainmark-benefit-list {
    margin: 22px 0 28px;
    padding: 0;
    list-style: none;
}

.brainmark-benefit-list li {
    display: flex;
    gap: 11px;
    margin-bottom: 15px;
    color: #334155;
    font-size: 15px;
}

.brainmark-benefit-list i {
    margin-top: 4px;
    color: #087f8c;
}

/* CALL TO ACTION */
.brainmark-cta {
    padding: 20px 0;
    background: #f5f8fc;
}

.brainmark-cta-inner {
    padding: 45px;
    border-radius: 16px;
    background: linear-gradient(120deg, #123b70, #087f8c);
    color: #ffffff;
}

.brainmark-cta h2 {
    margin-bottom: 13px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 700;
}

.brainmark-cta p {
    margin: 0;
    color: #e3edf8;
    font-size: 15px;
    line-height: 1.8;
}

/* CONTACT */
.brainmark-contact {
    background: #ffffff;
}

.brainmark-contact-card {
    height: 100%;
    padding: 32px 20px;
    border: 1px solid #e7edf4;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brainmark-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(18, 59, 112, 0.09);
}

.brainmark-contact-card > i {
    margin-bottom: 17px;
    color: #087f8c;
    font-size: 30px;
}

.brainmark-contact-card h3 {
    margin-bottom: 10px;
    color: #123b70;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.brainmark-contact-card a {
    color: #64748b;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.brainmark-contact-card a:hover {
    color: #087f8c;
}

/* OPTIONAL HOMEPAGE WIDGET AREAS */
.brainmark-home-widget-section {
    padding: 35px 0;
    background: #ffffff;
}

.brainmark-home-widget-section .widget {
    margin-bottom: 20px;
}

.brainmark-home-widget-section .widget:last-child {
    margin-bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .brainmark-hero {
        padding: 65px 0;
    }

    .brainmark-hero-image-wrap {
        margin: 0 auto;
    }

    .brainmark-hero-image {
        height: 340px;
    }

    .brainmark-homepage .section-padding {
        padding: 65px 0;
    }

    .brainmark-about-image {
        height: 360px;
    }

    .brainmark-cta-inner {
        padding: 32px;
    }
}

@media (max-width: 575.98px) {
    .brainmark-hero {
        padding: 48px 0;
    }

    .brainmark-hero-description {
        font-size: 15px;
    }

    .brainmark-hero-image {
        height: 260px;
    }

    .brainmark-homepage .section-padding {
        padding: 48px 0;
    }

    .brainmark-service-image {
        height: 220px;
    }

    .brainmark-about-image {
        height: 280px;
    }

    .brainmark-cta-inner {
        padding: 25px 20px;
    }

    .brainmark-hero-actions .btn {
        width: 100%;
    }
}


/* =========================================

   BRAINMARK ABOUT US PAGE
========================================= */

.brainmark-about-page {
    color: #334155;
    overflow: hidden;
}

.brainmark-about-page h1,
.brainmark-about-page h2,
.brainmark-about-page h3 {
    font-family: 'Poppins', sans-serif;
}

.brainmark-about-page img {
    display: block;
    max-width: 100%;
}

/* HERO BANNER */
.brainmark-about-hero {
    display: flex;
    align-items: center;
    min-height: 440px;
    padding: 90px 0;
    background-color: #123b70;
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.brainmark-about-hero-content {
    max-width: 760px;
}

.brainmark-about-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: #087f8c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brainmark-about-hero .brainmark-about-kicker {
    color: #a7f3ed;
}

.brainmark-about-hero h1 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.2;
}

.brainmark-about-hero p {
    max-width: 680px;
    margin-bottom: 28px;
    color: #e3edf8;
    font-size: 17px;
    line-height: 1.9;
}

/* BUTTONS */
.brainmark-about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 23px;
    border: 1px solid #087f8c;
    border-radius: 7px;
    background: #087f8c;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.brainmark-about-btn:hover,
.brainmark-about-btn:focus {
    transform: translateY(-3px);
    border-color: #066b76;
    background: #066b76;
    color: #ffffff;
}

/* OUR STORY */
.brainmark-about-story {
    padding: 85px 0;
    background: #ffffff;
}

.brainmark-about-photo {
    padding: 0 18px 18px 0;
}

.brainmark-about-photo img {
    width: 100%;
    height: 420px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 16px 16px 0 #e1f1f4;
}

.brainmark-about-story h2 {
    margin-bottom: 22px;
    color: #123b70;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.3;
}

.brainmark-about-body {
    margin-bottom: 26px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.95;
}

/* MISSION AND VISION */
.brainmark-about-purpose {
    padding: 75px 0;
    background: #f5f8fc;
}

.brainmark-purpose-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(18, 59, 112, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brainmark-purpose-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(18, 59, 112, 0.12);
}

.brainmark-purpose-card > img {
    width: 100%;
    height: 235px;
    object-fit: cover;
}

.brainmark-purpose-content {
    position: relative;
    padding: 32px 28px;
}

.brainmark-purpose-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-top: -58px;
    margin-bottom: 20px;
    position: relative;
    border: 4px solid #ffffff;
    border-radius: 13px;
    background: #087f8c;
    color: #ffffff;
    font-size: 22px;
}

.brainmark-purpose-content h2 {
    margin-bottom: 14px;
    color: #123b70;
    font-size: 24px;
    font-weight: 700;
}

.brainmark-purpose-content p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.9;
}

/* CORE VALUES */
.brainmark-about-values {
    padding: 85px 0;
    background: #ffffff;
}

.brainmark-about-section-heading {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.brainmark-about-section-heading h2 {
    margin-bottom: 0;
    color: #123b70;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.35;
}

.brainmark-value-card {
    height: 100%;
    padding: 35px 25px;
    border: 1px solid #e7edf4;
    border-radius: 13px;
    background: #ffffff;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brainmark-value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(18, 59, 112, 0.1);
}

.brainmark-value-card > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e5f5f6;
    color: #087f8c;
    font-size: 25px;
}

.brainmark-value-card h3 {
    margin-bottom: 13px;
    color: #123b70;
    font-size: 20px;
    font-weight: 600;
}

.brainmark-value-card p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.85;
}

/* FINAL CTA */
.brainmark-about-cta {
    padding: 85px 0;
    background-color: #123b70;
    background-position: center;
    background-size: cover;
    text-align: center;
}

.brainmark-about-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.brainmark-about-cta h2 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: clamp(29px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.3;
}

.brainmark-about-cta p {
    margin-bottom: 28px;
    color: #e3edf8;
    font-size: 16px;
    line-height: 1.9;
}

.brainmark-about-btn-light {
    border-color: #ffffff;
    background: #ffffff;
    color: #123b70;
}

.brainmark-about-btn-light:hover,
.brainmark-about-btn-light:focus {
    border-color: #e5f5f6;
    background: #e5f5f6;
    color: #123b70;
}

/* RESPONSIVE */
@media (max-width: 767.98px) {
    .brainmark-about-hero {
        min-height: 360px;
        padding: 65px 0;
    }

    .brainmark-about-hero p {
        font-size: 15px;
    }

    .brainmark-about-story,
    .brainmark-about-values {
        padding: 55px 0;
    }

    .brainmark-about-purpose {
        padding: 50px 0;
    }

    .brainmark-about-photo img {
        height: 300px;
    }

    .brainmark-purpose-card > img {
        height: 210px;
    }

    .brainmark-about-cta {
        padding: 60px 0;
    }
}


/* ==========================================================
   BRAINMARK SOLUTIONS
   CONSULTATION PAGE STYLES
   Brand colours: Navy, teal, white and pale grey
   ========================================================== */

.brainmark-consultation-page {
    color: #26374a;
    font-family: inherit;
    overflow: hidden;
}

.brainmark-consultation-page *,
.brainmark-consultation-page *::before,
.brainmark-consultation-page *::after {
    box-sizing: border-box;
}

.brainmark-consultation-page .section-padding {
    padding: 76px 0;
}

/* HERO SECTION */

.brainmark-consult-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 440px;
    padding: 75px 0;
    background-color: #123b70;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.brainmark-consult-hero.has-no-image {
    background-image: linear-gradient(
        120deg,
        #092b50 0%,
        #123b70 60%,
        #087f8c 100%
    );
}

.brainmark-consult-hero-content {
    max-width: 700px;
}

.brainmark-consult-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: #087f8c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.6;
    text-transform: uppercase;
}

.brainmark-consult-hero .brainmark-consult-eyebrow,
.brainmark-consult-cta .brainmark-consult-eyebrow {
    color: #63e0df;
}

.brainmark-consult-hero h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.16;
}

.brainmark-consult-hero p {
    max-width: 620px;
    margin: 0 0 28px;
    color: #f1f6fc;
    font-size: 16px;
    line-height: 1.85;
}

/* BUTTONS */

.brainmark-consult-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 25px;
    border: 2px solid #087f8c;
    border-radius: 30px;
    background: #087f8c;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none !important;
    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.brainmark-consult-button:hover,
.brainmark-consult-button:focus-visible {
    border-color: #05646e;
    background: #05646e;
    color: #fff !important;
    transform: translateY(-2px);
}

.brainmark-consult-button:focus-visible,
.brainmark-consult-learn-link:focus-visible {
    outline: 3px solid #63e0df;
    outline-offset: 4px;
}

/* SECTION HEADINGS */

.brainmark-consult-section-heading {
    max-width: 790px;
    margin: 0 auto 43px;
    text-align: center;
}

.brainmark-consult-section-heading h2,
.brainmark-consult-why h2 {
    margin: 0 0 17px;
    color: #123b70;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.3;
}

.brainmark-consult-section-heading p,
.brainmark-consult-why p {
    color: #617184;
    font-size: 15px;
    line-height: 1.85;
}

/* SERVICES SECTION */

.brainmark-consult-services {
    background: #f5f9fc;
}

.brainmark-consult-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 26px;
    border: 1px solid #e0eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(18, 59, 112, .045);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.brainmark-consult-service-card:hover {
    border-color: #a5dedd;
    box-shadow: 0 14px 30px rgba(18, 59, 112, .11);
    transform: translateY(-5px);
}

.brainmark-consult-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border: 1px solid #bde9e8;
    border-radius: 50%;
    background: #e4f7f6;
    color: #087f8c;
    font-size: 23px;
}

.brainmark-consult-service-card h3 {
    margin: 0 0 14px;
    color: #123b70;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.45;
}

.brainmark-consult-service-card p {
    flex-grow: 1;
    margin: 0 0 22px;
    color: #617184;
    font-size: 14px;
    line-height: 1.85;
}

.brainmark-consult-learn-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 9px;
    color: #087f8c;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: color .2s ease;
}

.brainmark-consult-learn-link:hover {
    color: #123b70;
}

.brainmark-consult-learn-link i {
    transition: transform .2s ease;
}

.brainmark-consult-learn-link:hover i {
    transform: translateX(4px);
}

/* WHY CHOOSE US */

.brainmark-consult-why {
    background: #fff;
}

.brainmark-consult-why-image,
.brainmark-consult-image-placeholder {
    display: block;
    width: 100%;
    min-height: 330px;
    border-radius: 16px;
    object-fit: cover;
}

.brainmark-consult-why-image {
    box-shadow: 0 12px 35px rgba(18, 59, 112, .12);
}

.brainmark-consult-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 35px;
    border: 1px dashed #9acccc;
    background: linear-gradient(135deg, #e6f6f6, #edf2fa);
    color: #123b70;
    text-align: center;
}

.brainmark-consult-image-placeholder > i {
    color: #087f8c;
    font-size: 55px;
}

.brainmark-consult-image-placeholder p {
    max-width: 300px;
    margin: 0;
    color: #52677c;
    font-size: 14px;
    line-height: 1.7;
}

.brainmark-consult-benefits {
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
}

.brainmark-consult-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #43566b;
    font-size: 14px;
    line-height: 1.7;
}

.brainmark-consult-benefits li i {
    flex-shrink: 0;
    margin-top: 4px;
    color: #087f8c;
    font-size: 17px;
}

/* CONSULTATION PROCESS */

.brainmark-consult-process {
    background: linear-gradient(135deg, #eef9fa, #f5f9fc);
}

.brainmark-consult-step {
    height: 100%;
    padding: 29px 22px;
    border: 1px solid #dcecef;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    transition: box-shadow .25s ease, transform .25s ease;
}

.brainmark-consult-step:hover {
    box-shadow: 0 10px 25px rgba(18, 59, 112, .08);
    transform: translateY(-3px);
}

.brainmark-consult-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #123b70;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.brainmark-consult-step h3 {
    margin: 0 0 13px;
    color: #123b70;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.45;
}

.brainmark-consult-step p {
    margin: 0;
    color: #617184;
    font-size: 14px;
    line-height: 1.8;
}

/* FINAL CALL TO ACTION */

.brainmark-consult-cta {
    padding: 82px 0;
    background-color: #123b70;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.brainmark-consult-cta.has-no-image {
    background-image: linear-gradient(
        120deg,
        #092b50 0%,
        #123b70 60%,
        #087f8c 100%
    );
}

.brainmark-consult-cta-content {
    max-width: 790px;
    margin: 0 auto;
    text-align: center;
}

.brainmark-consult-cta h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(28px, 3.2vw, 41px);
    font-weight: 800;
    line-height: 1.3;
}

.brainmark-consult-cta p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: #edf6fc;
    font-size: 15px;
    line-height: 1.9;
}

/* RESPONSIVE DESIGN */

@media (max-width: 991.98px) {
    .brainmark-consultation-page .section-padding {
        padding: 60px 0;
    }

    .brainmark-consult-hero {
        min-height: 390px;
    }

    .brainmark-consult-service-card {
        padding: 26px 22px;
    }
}

@media (max-width: 767.98px) {
    .brainmark-consultation-page .section-padding {
        padding: 48px 0;
    }

    .brainmark-consult-hero {
        min-height: 360px;
        padding: 52px 0;
        background-position: center;
    }

    .brainmark-consult-hero h1 {
        font-size: 33px;
    }

    .brainmark-consult-hero p {
        font-size: 15px;
        line-height: 1.75;
    }

    .brainmark-consult-section-heading {
        margin-bottom: 30px;
    }

    .brainmark-consult-service-card {
        padding: 25px 21px;
    }

    .brainmark-consult-service-card h3 {
        font-size: 18px;
    }

    .brainmark-consult-why-image,
    .brainmark-consult-image-placeholder {
        min-height: 240px;
    }

    .brainmark-consult-cta {
        padding: 55px 0;
    }

    .brainmark-consult-cta h2 {
        font-size: 29px;
    }
}

@media (max-width: 420px) {
    .brainmark-consult-hero h1 {
        font-size: 29px;
    }

    .brainmark-consult-button {
        padding: 12px 19px;
        font-size: 13px;
    }

    .brainmark-consult-service-card {
        padding: 22px 18px;
    }
}

/* ACCESSIBILITY: RESPECT REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .brainmark-consult-service-card,
    .brainmark-consult-step,
    .brainmark-consult-button,
    .brainmark-consult-learn-link,
    .brainmark-consult-learn-link i {
        transition: none;
    }

    .brainmark-consult-service-card:hover,
    .brainmark-consult-step:hover,
    .brainmark-consult-button:hover {
        transform: none;
    }
}

/* ========================================
   BRAINMARK CONTACT FORM
======================================== */

.brainmark-contact-form {
    background: #ffffff;
    padding: 35px;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(18, 59, 112, 0.08);
    width: 100%;
    box-sizing: border-box;
}

/* Form heading */
.brainmark-contact-form .contact-form-heading {
    margin-bottom: 28px;
}

.brainmark-contact-form .contact-form-heading h3 {
    color: #123b70;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
}

.brainmark-contact-form .contact-form-heading p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Labels */
.brainmark-contact-form .form-label {
    display: block;
    color: #123b70;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 9px;
}

/* Inputs and textarea */
.brainmark-contact-form .form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    padding: 12px 15px;
    background-color: #f8fafc;
    border: 1px solid #dbe3ed;
    border-radius: 8px;
    color: #263445;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease,
                background-color 0.25s ease;
}

.brainmark-contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Placeholder */
.brainmark-contact-form .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* Focus effect */
.brainmark-contact-form .form-control:focus {
    background-color: #ffffff;
    border-color: #123b70;
    outline: none;
    box-shadow: 0 0 0 4px rgba(18, 59, 112, 0.10);
}

/* Submit button */
.brainmark-contact-form .brainmark-submit {
    display: inline-block;
    padding: 14px 30px;
    background-color: #123b70;
    color: #ffffff;
    border: 2px solid #123b70;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.brainmark-contact-form .brainmark-submit:hover {
    background-color: #0b294f;
    border-color: #0b294f;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Validation errors */
.brainmark-contact-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.brainmark-contact-form .wpcf7-not-valid-tip {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

/* Submission response */
.brainmark-contact-form .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 14px 16px !important;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* Loading indicator */
.brainmark-contact-form .wpcf7-spinner {
    vertical-align: middle;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .brainmark-contact-form {
        padding: 22px 18px;
        border-radius: 10px;
    }

    .brainmark-contact-form .contact-form-heading h3 {
        font-size: 23px;
    }

    .brainmark-contact-form .brainmark-submit {
        width: 100%;
        padding: 14px 20px;
    }
}

/* =========================================
   BRAINMARK SOLUTIONS - CONTACT PAGE
========================================= */

.bm-contact-page {
    color: #334155;
    background: #fff;
}

.bm-contact-page .container {
    position: relative;
    z-index: 1;
}

/* HERO SECTION */

.bm-contact-page .bm-contact-hero {
    position: relative;
    overflow: hidden;
    padding: 75px 0;
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(255,255,255,.10), transparent 32%),
        linear-gradient(125deg, #0b294f, #123b70 65%, #205b98);
}

.bm-contact-page .bm-contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #cfe2ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.bm-contact-page .bm-contact-hero h1 {
    max-width: 780px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
}

.bm-contact-page .bm-contact-hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #e5edf8;
    font-size: 17px;
    line-height: 1.8;
}

.bm-contact-page .bm-contact-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 23px;
    border: 2px solid #fff;
    border-radius: 7px;
    background: #fff;
    color: #123b70;
    font-weight: 700;
    text-decoration: none;
    transition: .25s ease;
}

.bm-contact-page .bm-contact-hero-btn:hover {
    background: transparent;
    color: #fff;
}

.bm-contact-page .bm-contact-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 165px;
    height: 165px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: #fff;
    font-size: 75px;
}


/* MAIN SECTION */

.bm-contact-page .bm-contact-section {
    padding: 75px 0;
    background: #f6f8fb;
}

.bm-contact-page .bm-contact-intro {
    max-width: 730px;
    margin: 0 auto 45px;
}

.bm-contact-page .bm-section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #2563a6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.bm-contact-page .bm-contact-intro h2 {
    margin: 0 0 15px;
    color: #123b70;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.3;
}

.bm-contact-page .bm-contact-intro p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}


/* CONTACT INFORMATION CARD */

.bm-contact-page .bm-contact-details {
    height: 100%;
    padding: 32px;
    border-radius: 14px;
    background: #123b70;
    color: #fff;
    box-shadow: 0 12px 35px rgba(18,59,112,.13);
}

.bm-contact-page .bm-contact-details h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
}

.bm-contact-page .bm-contact-details-intro {
    margin: 0 0 30px;
    color: #d7e5f8;
    font-size: 14px;
    line-height: 1.8;
}

.bm-contact-page .bm-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 27px;
}

.bm-contact-page .bm-contact-icon {
    display: flex;
    flex: 0 0 47px;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    border-radius: 10px;
    background: rgba(255,255,255,.13);
    color: #fff;
    font-size: 21px;
}

.bm-contact-page .bm-contact-item > div:last-child {
    min-width: 0;
    padding-top: 2px;
}

.bm-contact-page .bm-contact-item h4 {
    margin: 0 0 9px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.bm-contact-page .bm-contact-item p {
    margin: 0;
    color: #e1ebf8;
    font-size: 14px;
    line-height: 1.8;
}

.bm-contact-page .bm-contact-item a {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 7px;
    color: #e1ebf8;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.bm-contact-page .bm-contact-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.bm-contact-page .bm-contact-item .bm-directions-link {
    margin-top: 10px;
    color: #fff;
    font-weight: 700;
}

.bm-contact-page .bm-contact-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
    background: rgba(255,255,255,.07);
}

.bm-contact-page .bm-contact-note > i {
    margin-top: 3px;
    color: #cfe2ff;
    font-size: 22px;
}

.bm-contact-page .bm-contact-note p {
    margin: 0;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.8;
}

.bm-contact-page .bm-contact-note strong {
    color: #fff;
}


/* FORM PANEL */

.bm-contact-page .bm-contact-form-panel {
    height: 100%;
    padding: 34px;
    border: 1px solid #e3e9f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(18,59,112,.07);
}

.bm-contact-page .bm-form-heading {
    margin-bottom: 28px;
}

.bm-contact-page .bm-form-heading h3 {
    margin: 0 0 10px;
    color: #123b70;
    font-size: 27px;
    font-weight: 800;
}

.bm-contact-page .bm-form-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}


/* CONTACT FORM 7 FIELDS */

.bm-contact-page .brainmark-contact-form {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.bm-contact-page .brainmark-contact-form .contact-form-heading {
    display: none;
}

.bm-contact-page .brainmark-contact-form .row {
    --bs-gutter-y: 1.25rem;
}

.bm-contact-page .brainmark-contact-form .form-label {
    display: block;
    margin-bottom: 8px;
    color: #123b70;
    font-size: 14px;
    font-weight: 700;
}

.bm-contact-page .brainmark-contact-form .form-control {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #dbe3ed;
    border-radius: 7px;
    background: #f8fafc;
    color: #263445;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: .2s ease;
}

.bm-contact-page .brainmark-contact-form textarea.form-control {
    min-height: 145px;
    resize: vertical;
}

.bm-contact-page .brainmark-contact-form .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.bm-contact-page .brainmark-contact-form .form-control:focus {
    border-color: #2563a6;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,166,.12);
}

.bm-contact-page .brainmark-contact-form .brainmark-submit {
    width: 100%;
    padding: 14px 22px;
    border: 2px solid #123b70;
    border-radius: 7px;
    background: #123b70;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.bm-contact-page .brainmark-contact-form .brainmark-submit:hover {
    border-color: #205b98;
    background: #205b98;
    color: #fff;
    transform: translateY(-1px);
}

.bm-contact-page .brainmark-contact-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: #dc3545;
    font-size: 12px;
}

.bm-contact-page .brainmark-contact-form .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 13px 15px !important;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

.bm-contact-page .wpcf7-spinner {
    display: block;
    margin: 10px auto 0;
}


/* BOTTOM CALL TO ACTION */

.bm-contact-page .bm-contact-cta {
    padding: 45px 0;
    background: #fff;
}

.bm-contact-page .bm-contact-cta h2 {
    margin: 0 0 10px;
    color: #123b70;
    font-size: 27px;
    font-weight: 800;
}

.bm-contact-page .bm-contact-cta p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

.bm-contact-page .bm-contact-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 7px;
    background: #123b70;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .25s ease;
}

.bm-contact-page .bm-contact-cta-btn:hover {
    background: #205b98;
    color: #fff;
    transform: translateY(-2px);
}


/* RESPONSIVE LAYOUT */

@media (max-width: 991.98px) {
    .bm-contact-page .bm-contact-hero {
        padding: 60px 0;
    }

    .bm-contact-page .bm-contact-section {
        padding: 55px 0;
    }
}

@media (max-width: 575.98px) {
    .bm-contact-page .bm-contact-hero {
        padding: 48px 0;
    }

    .bm-contact-page .bm-contact-hero p {
        font-size: 15px;
    }

    .bm-contact-page .bm-contact-section {
        padding: 42px 0;
    }

    .bm-contact-page .bm-contact-intro {
        margin-bottom: 30px;
    }

    .bm-contact-page .bm-contact-details,
    .bm-contact-page .bm-contact-form-panel {
        padding: 23px 19px;
    }

    .bm-contact-page .bm-contact-details h3,
    .bm-contact-page .bm-form-heading h3 {
        font-size: 23px;
    }

    .bm-contact-page .bm-contact-cta {
        padding: 35px 0;
    }

    .bm-contact-page .bm-contact-cta h2 {
        font-size: 23px;
    }

    .bm-contact-page .bm-contact-cta-btn {
        width: 100%;
    }
}

/* Two-column quotation form layout */
.bm-design-shop .bm-quote-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px 18px;
    width: 100%;
}

.bm-design-shop .bm-quote-field {
    min-width: 0;
}

/* Project description and submit button use full width */
.bm-design-shop .bm-quote-field-full {
    grid-column: 1 / -1;
}

/* Responsive layout for mobile devices */
@media (max-width: 575.98px) {
    .bm-design-shop .bm-quote-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .bm-design-shop .bm-quote-field-full {
        grid-column: auto;
    }
}
