/*
 Theme Name: MarketDesk Child V2
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: MarketDesk Professional Theme - Navy & Steel Design System
 Author: MarketDesk
 Author URI: https://www.marketdesk.com
 Template: Market Desk
 Version: 2.0.0
*/

/* ==========================================================================
   DESIGN SYSTEM TOKENS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --primary-navy: #1E3A5F;
    --steel-blue: #4A90D9;
    --amber-cta: #D4920B;
    --amber-cta-hover: #B87D09;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --light-blue-tint: #E8F0FE;
    --footer-bg: #0F172A;
    --success: #22C55E;
    --danger: #EF4444;

    /* Typography */
    --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 48px 32px;
    --card-padding: 20px;
    --grid-gap: 16px;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
    font-weight: 400;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--steel-blue);
    transition: color 200ms ease;
}

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

a, input[type="submit"], button {
    cursor: pointer;
}

p {
    line-height: 1.7em;
}

/* ==========================================================================
   TYPOGRAPHY OVERRIDES (Divi)
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.et_pb_module_header,
.et_pb_slide_description .et_pb_slide_title,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3,
.et_pb_text h4, .et_pb_text h5, .et_pb_text h6 {
    font-family: var(--font-primary);
    color: var(--primary-navy);
}

/* Section label pattern */
.section-label,
.et_pb_text .section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--steel-blue);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

#main-header,
#main-header.et-fixed-header,
.et_header_style_left #et-top-navigation,
.et_header_style_left .et-fixed-header #et-top-navigation {
    background-color: var(--primary-navy);
}

#main-header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.et_header_style_left #et-top-navigation {
    padding-top: 27px;
}

@media (min-width: 981px) {
    .et_header_style_left .et-fixed-header #et-top-navigation {
        padding-top: 10px;
    }
}

/* Logo area — set white logo in Divi Theme Options > Logo */

/* Nav links */
ul#top-menu li a {
    color: #CBD5E1 !important;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    transition: color 200ms ease;
}

ul#top-menu li a:hover {
    color: #FFFFFF !important;
}

ul#top-menu > li > a {
    text-transform: uppercase;
}

/* Active/current menu item */
#top-menu li.current-menu-ancestor > a,
#top-menu li.current-menu-item > a {
    color: #FFFFFF !important;
    opacity: 1;
}

/* Mobile menu bar icon */
.mobile_menu_bar:before,
.mobile_menu_bar:after {
    color: #FFFFFF;
}

/* Dropdown arrow */
#et-top-navigation #top-menu .menu-item-has-children > a:first-child:after,
#et-top-navigation #et-secondary-nav .menu-item-has-children > a:first-child:after {
    font-size: 16px;
    right: 5px;
    top: 0px;
    color: #CBD5E1;
}

#top-menu .menu-item-has-children > a:first-child:after,
#et-secondary-nav .menu-item-has-children > a:first-child:after {
    font-family: 'ETmodules';
    content: "3";
    font-size: 24px;
    position: absolute;
    right: 0px;
    top: 0px;
    font-weight: 400;
}

/* Submenu dropdown */
.nav li ul {
    border-top: 3px solid var(--steel-blue);
    background-color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#top-menu li li a {
    padding: 6px 20px;
    color: var(--text-dark) !important;
    font-size: 13px;
}

#top-menu li li a:hover {
    background-color: var(--bg-light) !important;
    color: var(--primary-navy) !important;
}

.nav ul li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-navy) !important;
}

#top-menu li li {
    padding: 0;
    margin: 0;
    display: block;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

/* --- Primary CTA (Amber) --- */
.custom_btn,
body #page-container .et_pb_section .et_pb_button {
    color: #FFFFFF !important;
    border-width: 0px !important;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    font-size: 14px;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    background-color: var(--amber-cta) !important;
    padding: 12px 28px !important;
    display: inline-block;
    transition: background-color 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 2px 8px rgba(212, 146, 11, 0.3);
    font-family: var(--font-primary);
}

.custom_btn:hover,
body #page-container .et_pb_section .et_pb_button:hover {
    color: #FFFFFF !important;
    background-color: var(--amber-cta-hover) !important;
    box-shadow: 0 4px 12px rgba(212, 146, 11, 0.4);
}

.custom_btn:before {
    content: attr(data-icon);
    font-family: ETmodules !important;
    font-weight: 400 !important;
    line-height: inherit;
    font-size: inherit !important;
    opacity: 1;
    margin-left: -0.5em;
    right: auto;
    display: inline-block;
    margin-right: 5px;
}

/* --- Login Button (Amber) --- */
.login-btn a {
    padding: 8px 20px !important;
    border-radius: var(--radius-sm);
    color: #FFFFFF !important;
    border: 1px solid var(--amber-cta) !important;
    background: var(--amber-cta) !important;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    transition: background-color 200ms ease;
}

.login-btn a:hover {
    background: var(--amber-cta-hover) !important;
    border-color: var(--amber-cta-hover) !important;
}

.login-btn a:first-child {
    display: none !important;
}

/* --- Secondary outline button --- */
.af-btn a {
    padding: 10px 20px !important;
    border-radius: var(--radius-sm);
    color: var(--primary-navy) !important;
    border: 2px solid var(--primary-navy);
    background: transparent;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: background-color 200ms ease, color 200ms ease;
}

.af-btn a:hover {
    background: var(--primary-navy);
    color: #FFFFFF !important;
}

.af-btn {
    padding-right: 12px !important;
}

/* --- Text link style --- */
.learn-more-link,
.et_pb_blurb_content a.learn-more {
    color: var(--steel-blue);
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: color 200ms ease;
}

.learn-more-link:hover {
    color: var(--primary-navy);
}

/* ==========================================================================
   SECTIONS & LAYOUT
   ========================================================================== */

.et_pb_section {
    background-color: var(--bg-white);
}

.et_pb_section.dark-section {
    background-color: var(--primary-navy);
}

.et_pb_section.light-section {
    background-color: var(--bg-light);
}

h4.title {
    padding-bottom: 40px;
}

.video_opacity .et_pb_section_video_bg {
    opacity: 0.1;
}

.video_opacity_1 .et_pb_section_video_bg {
    opacity: 0.3;
}

/* Inline buttons */
.inline-button .et_pb_button_module_wrapper.et_pb_module {
    display: inline-flex;
    padding: 0 10px;
}

/* ==========================================================================
   CARDS & COMPONENTS
   ========================================================================== */

/* Solution cards */
.solution-card,
.et_pb_blurb {
    transition: box-shadow 200ms ease;
}

.solution-card:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}

/* Icon containers */
.icon-container {
    width: 36px;
    height: 36px;
    background: var(--light-blue-tint);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats numbers */
.stat-number {
    color: var(--amber-cta);
    font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

/* Footer background — override all Divi footer wrappers */
#main-footer,
footer#main-footer,
.et-l--footer,
#footer-widgets,
#footer-bottom,
#main-footer .container {
    background-color: var(--footer-bg) !important;
}

#footer-widgets {
    padding: 48px 0;
}

#footer-widgets .footer-widget li {
    padding-left: 0px;
    position: relative;
}

#footer-widgets .footer-widget li:before,
#footer-bottom {
    display: none;
}

.et_pb_gutters3.et_pb_footer_columns5 .footer-widget .fwidget {
    margin-bottom: 10px !important;
}

#footer-widgets .footer-widget li a {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 12px;
    display: block;
    color: var(--text-muted) !important;
    transition: color 200ms ease;
}

#footer-widgets .footer-widget li:hover a {
    color: var(--steel-blue) !important;
}

#footer-widgets .footer-widget p {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

#footer-widgets .footer-widget h4 {
    color: var(--text-light) !important;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* Footer credits */
.footer_creadits {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 7px 0;
    border-top: 1px solid #1E293B;
}

.copyright-footer {
    color: #475569;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.copyright-footer a {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 200ms ease;
}

.copyright-footer a:hover {
    color: var(--steel-blue);
}

.copyright-footer img {
    max-height: 40px;
}

/* Remove circle animation from footer */
.copyright-footer .circle-anim {
    position: relative;
    margin-left: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.copyright-footer .circle-anim:before,
.copyright-footer .circle-anim:after {
    display: none !important;
}

#menu-footer-menu a {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 200ms ease;
}

#menu-footer-menu a:hover {
    color: var(--steel-blue);
}

#footer-bottom {
    padding-bottom: 15px;
}

span.mob_block a {
    color: var(--text-muted);
}

/* Social media */
.social_media {
    position: relative;
    padding: 2px 15px 0 !important;
}

.social_media_list li img {
    max-height: 28px;
}

.social_media li img {
    max-width: 36px;
    display: block;
    transition: opacity 0.3s ease;
}

.social_media li img:hover {
    opacity: 0.8;
}

ul.social_media.d-flex.align-items-center.justify-content-end {
    display: inline-flex;
    padding: 0px !important;
    gap: 12px;
}

/* ==========================================================================
   CONTACT FORM & FLOATING BUTTON
   ========================================================================== */

.con_btn {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 11;
}

.con_btn > a {
    padding: 10px 28px;
    line-height: normal;
    background: var(--primary-navy);
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    display: inline-block;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    transition: background-color 200ms ease;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.con_btn > a:hover {
    background: var(--amber-cta);
}

.con_btn .con_form.active {
    bottom: 55px;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.con_form {
    position: fixed;
    right: 15px;
    bottom: -100%;
    background: var(--bg-white);
    padding: 28px;
    border-radius: var(--radius-md);
    z-index: 11;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--border);
    width: 100%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.con_form.active {
    bottom: 64px;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.con_form h3 {
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.con_form > p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 13px;
}

.con_form input[type="text"],
.con_form input[type="email"],
.con_form input[type="tel"],
.con_form select,
.con_forms input[type="text"],
.con_forms input[type="email"],
.con_forms input[type="tel"],
.con_forms select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 15px;
    margin-bottom: 12px;
    font-family: var(--font-primary);
    transition: border-color 200ms ease;
}

.con_form input[type="text"]:focus,
.con_form input[type="email"]:focus,
.con_form input[type="tel"]:focus,
.con_form select:focus {
    border-color: var(--steel-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.con_form textarea,
.con_forms textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    margin-bottom: 12px;
    font-family: var(--font-primary);
    transition: border-color 200ms ease;
}

.con_form textarea:focus {
    border-color: var(--steel-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.con_form input[type="submit"],
.con_form button,
.con_forms input[type="submit"],
.con_forms button {
    width: 100%;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    background: var(--amber-cta);
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background-color 200ms ease;
}

.con_form input[type="submit"]:hover,
.con_form button:hover {
    background: var(--amber-cta-hover);
}

.con_forms input[type="text"],
.con_forms input[type="email"],
.con_forms input[type="tel"],
.con_forms textarea {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
}

/* Contact form button (Divi module) */
body #page-container .et_pb_section .et_pb_contact_form_0.et_pb_contact_form_container.et_pb_module .et_pb_button {
    color: #FFFFFF !important;
    font-size: 14px;
    background-color: var(--amber-cta) !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
}

/* Form validation */
.wpcf7-not-valid-tip {
    color: #FFFFFF;
    display: inline-block;
    background: var(--danger);
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.wpcf7 form.invalid .wpcf7-response-output {
    margin: 0;
    padding: 0.6em 1em;
    border: 2px solid #FFFFFF !important;
    border-radius: var(--radius-sm);
    background: var(--danger);
    text-align: center;
    color: #FFFFFF;
    line-height: normal;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #FFFFFF !important;
    background: var(--success) !important;
    color: #FFFFFF;
    text-align: center;
    border-radius: var(--radius-sm);
    margin: 0;
}

.wpcf7-spinner {
    margin: 18px auto;
    position: absolute;
    left: 0;
    right: 0;
}

/* Newsletter form */
.newsletterform input[type="email"] {
    width: 100%;
    height: 50px;
    border: 2px solid var(--border) !important;
    padding: 0 15px;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
}

.newsletterform input[type="email"]:focus {
    border-color: var(--steel-blue) !important;
}

.newsletterform input[type="submit"] {
    width: 100%;
    height: 50px;
    border: 0 !important;
    background: var(--amber-cta);
    padding: 0 15px;
    color: #FFFFFF;
    margin-top: 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: var(--font-primary);
    transition: background-color 200ms ease;
}

.newsletterform input[type="submit"]:hover {
    background: var(--amber-cta-hover);
}

/* Newsletter popup */
.newsletter_popup {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999999999;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.closepopup {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 15px;
}

.closeicons {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-navy);
    border-radius: 0 0 0 4px;
}

.closepopup, .closeicons {
    cursor: pointer;
}

.newsletter_popup.zoomIn {
    transform: scale(1);
    transition: all 0.3s ease;
}

@media(min-width:680px) {
    .con_form {
        max-width: 400px;
    }
}

/* ==========================================================================
   CUSTOM LISTS
   ========================================================================== */

.custom_list_1,
.custom_list_2,
.custom_list_3 {
    padding: 0;
}

.custom_list_1 li,
.custom_list_2 li,
.custom_list_3 li {
    list-style: none;
    padding-left: 15px;
    margin-bottom: 10px;
}

.custom_list_1 li:before,
.custom_list_2 li:before,
.custom_list_3 li:before {
    position: absolute;
    left: 0;
    font-family: ETmodules !important;
    font-weight: 400 !important;
    color: var(--steel-blue);
    font-size: 13px;
}

.custom_list_1 li:before {
    content: '';
}

.custom_list_2 li:before {
    content: 'Z';
}

.custom_list_3 li:before {
    content: '//';
}

.icon_color_yellow .custom_list_1 li:before,
.icon_color_yellow .custom_list_2 li:before,
.icon_color_yellow .custom_list_3 li:before {
    color: var(--amber-cta);
}

.icon_color_white .custom_list_1 li:before,
.icon_color_white .custom_list_2 li:before,
.icon_color_white .custom_list_3 li:before {
    color: #FFFFFF;
}

/* ==========================================================================
   MISC COMPONENTS
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -22px;
    text-align: center;
}

.breadcrumb .et_pb_code_inner > span {
    display: inline-block;
    background: var(--bg-white);
    padding: 10px 30px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    position: relative;
    color: var(--text-dark);
}

.breadcrumb .et_pb_code_inner > span:before {
    position: absolute;
    top: 0px;
    width: 40px;
    content: "";
    border-top: solid 40px transparent;
    border-bottom: solid 0px transparent;
    left: -80px;
    border-right: solid 40px var(--bg-white);
}

.breadcrumb .et_pb_code_inner > span:after {
    position: absolute;
    top: 0px;
    width: 40px;
    content: "";
    border-top: solid 40px transparent;
    border-bottom: solid 0px transparent;
    right: -80px;
    border-left: solid 40px var(--bg-white);
}

/* Testimonials */
.testimonial_author .et_pb_blurb_content {
    display: flex;
    align-items: center;
    justify-content: start;
}

.testimonial_author .et_pb_main_blurb_image {
    margin: 0;
    width: auto;
}

/* Team details read more */
.team_details .et_pb_blurb_description {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.team_details .et_pb_blurb_description.active {
    transition: all 0.3s ease;
    -webkit-line-clamp: 100;
}

.team_details .et_pb_blurb_description p {
    padding-bottom: 0;
    margin-bottom: 15px;
}

.readmore_btn {
    font-weight: 600;
    display: block;
    margin-top: 10px;
    color: var(--steel-blue);
    cursor: pointer;
}

/* Read more toggle */
.addReadMore.showlesscontent .SecSec,
.addReadMore.showlesscontent .readLess {
    display: none;
}

.addReadMore.showmorecontent .readMore {
    display: none;
}

.addReadMore .readMore,
.addReadMore .readLess {
    font-weight: 500;
    margin-left: 0px;
    color: var(--steel-blue);
    cursor: pointer;
}

.addReadMoreWrapTxt.showmorecontent .SecSec,
.addReadMoreWrapTxt.showmorecontent .readLess {
    display: block;
}

/* Position helpers */
.position_inherit > div,
.position_inherit > div > div {
    position: inherit;
    height: 100%;
}

/* Image components */
.imgbg img {
    max-width: 100px;
}

.imgbg:after {
    position: absolute;
    right: 30px;
    bottom: -30px;
    content: '';
    font-family: ETmodules !important;
    font-weight: 400 !important;
    color: #f3f3f3;
    font-size: 40px;
    font-style: normal;
}

/* Vertical center */
.v_center .et_pb_column {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo boxes */
.logo-boxes .et_pb_image_wrap img {
    max-height: 50px;
    width: auto;
}

.logo-boxes .et_pb_main_blurb_image {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img_equal_height .et_pb_main_blurb_image img {
    min-height: 60px;
    max-height: 60px;
    width: auto;
}

.img_equal_height .et_pb_main_blurb_image {
    margin-bottom: 20px;
}

/* Large buttons */
.large_btn .et_pb_blurb_content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.large_btn .et_pb_main_blurb_image {
    margin: 0;
}

.large_btn .et_pb_module_header,
.large_btn .et_pb_blurb_container {
    padding: 0;
}

/* Data display section */
.data_dis .et_pb_module.et_pb_code.et_pb_code_2 {
    height: 100%;
}

.data_dis .et_pb_code_inner {
    height: 100%;
}

/* Block heading */
div#block-14 h4 {
    line-height: 1.6em;
}

/* Text center helper */
.text-center {
    text-align: center;
}

/* Flex helpers */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Button sub positioning */
.button-af-sub {
    position: relative;
}

.button-af-sub .et_contact_bottom_container {
    position: absolute;
    right: 0;
    top: 6px;
    bottom: 0;
}

/* ==========================================================================
   RESPONSIVE — DESKTOP (980px+)
   ========================================================================== */

@media (min-width: 980px) {
    .video_center .et_pb_section_video_bg .mejs-video {
        top: -100%;
    }
}

@media (min-width: 980px) and (max-width: 1310px) {
    .video_opacity .et_pb_text_0 h1,
    .et_pb_text_1 h1,
    .et_pb_text_2 h1 {
        font-size: 40px;
    }
}

@media (min-width: 980px) and (max-width: 1200px) {
    #main-header .container {
        width: 96%;
    }
    body #page-container .et_pb_section.video_opacity .et_pb_button {
        font-size: 13px;
        padding-top: 8px !important;
        padding-right: 15px !important;
        padding-bottom: 8px !important;
        padding-left: 15px !important;
    }
}

/* ==========================================================================
   RESPONSIVE — TABLET (768px–980px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 980px) {
    .et_mobile_menu {
        border-top: 3px solid var(--steel-blue);
        background-color: var(--primary-navy);
    }

    .et_mobile_menu li a {
        color: #CBD5E1 !important;
    }

    .flex-m {
        width: 50%;
        flex: 0 0 32%;
        margin: 6px 6px;
    }

    .af-flow {
        display: flex;
    }

    .et_pb_text_9 h4,
    .et_pb_text_10 h4,
    .et_pb_text_11 h4 {
        font-size: 16px !important;
    }

    .af-2-section {
        width: 60%;
    }

    .\32nd-section {
        width: 40%;
    }

    .af-2-section h1 {
        font-size: 30px !important;
    }

    body #page-container .et_pb_section .et_pb_button_0 {
        border-width: 1px !important;
        border-radius: var(--radius-sm);
        letter-spacing: 0px;
        font-size: 12px !important;
        font-weight: 400 !important;
        background-color: var(--amber-cta);
    }

    .et_pb_button_0_wrapper .et_pb_button_0,
    .et_pb_button_0_wrapper .et_pb_button_0:hover,
    .et_pb_button_1_wrapper .et_pb_button_1,
    .et_pb_button_1_wrapper .et_pb_button_1:hover {
        padding-top: 10px !important;
        padding-right: 15px !important;
        padding-bottom: 10px !important;
        padding-left: 15px !important;
    }

    body #page-container .et_pb_section .et_pb_button_1 {
        border-width: 1px !important;
        border-radius: var(--radius-sm);
        letter-spacing: 0px;
        font-size: 12px !important;
        font-weight: 400 !important;
    }

    .inline-button .et_pb_button_module_wrapper.et_pb_module {
        display: inline-flex;
        padding: 0 1px !important;
    }

    .mob_width_50 {
        width: 50%;
    }

    .d-flex h2 {
        font-size: 34px !important;
    }

    .af-2-section h3 {
        font-size: 24px !important;
        line-height: 1.3em !important;
    }

    .af-2-section {
        padding: 30px !important;
    }

    .et_pb_column.et_pb_column_1_3.et_pb_column_5.et_pb_css_mix_blend_mode_passthrough.et-last-child {
        width: 40%;
    }

    .et_pb_column.et_pb_column_empty {
        display: block;
    }

    .et_pb_column.et_pb_column_1_3.et_pb_column_9.position_inherit.et_pb_css_mix_blend_mode_passthrough.et-last-child {
        width: 40%;
    }

    .et_pb_row.et_pb_row_0.inline-button.banner {
        width: 91%;
    }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (320px–767px)
   ========================================================================== */

@media (min-width: 320px) and (max-width: 767px) {
    .et_mobile_menu {
        border-top: 3px solid var(--steel-blue);
        background-color: var(--primary-navy);
    }

    .et_mobile_menu li a {
        color: #CBD5E1 !important;
    }

    .af-btn a {
        padding: 12px 10px !important;
        border-radius: var(--radius-sm);
        color: var(--text-muted) !important;
        border: 1px solid var(--border);
        background: var(--bg-light);
        font-weight: 600;
    }

    .login-btn a {
        padding: 12px 10px !important;
        border-radius: var(--radius-sm);
        color: #FFFFFF !important;
        border: none;
        background: var(--amber-cta) !important;
        margin: 15px auto;
        font-weight: 600;
    }

    .d-flex {
        display: block;
    }

    h4.title {
        padding-bottom: 10px;
    }

    #footer-widgets .footer-widget li a {
        font-size: 12px;
        font-weight: 400;
        margin-bottom: 7px;
        display: block;
    }

    ul#mobile_menu {
        max-height: 400px;
        overflow-y: auto;
    }

    .inline-button .et_pb_button_module_wrapper.et_pb_module {
        display: block;
        padding: 0px;
    }

    div#block-14 h4 {
        font-size: 12px !important;
    }

    .wp-block-image img {
        height: auto;
        max-width: 60% !important;
    }

    #footer-widgets .footer-widget:nth-child(n),
    #footer-widgets .footer-widget .fwidget {
        margin-bottom: 3.5% !important;
    }

    .button-af-sub .et_contact_bottom_container {
        position: absolute;
        right: 0;
        top: 4px;
        bottom: 0;
    }

    .et_pb_column.et_pb_column_3_5.et_pb_column_0.et_pb_css_mix_blend_mode_passthrough {
        order: 2;
    }

    .banner {
        display: grid;
    }

    .flex-m {
        width: 50%;
        flex: 0 0 46%;
        margin: 6px 6px;
    }

    .af-flow {
        display: flex;
        flex-wrap: wrap;
        margin: 0 auto;
        padding: 0;
        width: 90%;
    }

    .flex-m .et_pb_module a.et_pb_button {
        font-size: 13px !important;
    }

    .con_form {
        right: 0px;
    }

    .hide_mobile {
        display: none !important;
    }

    .copyright-footer .mob_block {
        display: block;
    }
}

/* ==========================================================================
   RESPONSIVE — SCROLL TABLE
   ========================================================================== */

@media (max-width: 980px) {
    .scroll_table .et_pb_text_inner {
        overflow-x: auto;
        position: relative;
    }

    .scroll_table table {
        min-width: 970px;
    }

    .scroll_table:before,
    .scroll_table:after {
        position: relative;
        margin: 10px 0;
        color: var(--amber-cta);
        font-weight: 600;
        font-size: 12px;
    }

    .scroll_table:before {
        content: 'Scroll right to left to view full details';
    }

    .scroll_table:after {
        content: 'Scroll right to left to view full details';
    }
}

/* ==========================================================================
   RESPONSIVE — LARGE DESKTOP
   ========================================================================== */

@media (min-width: 1600px) {
    .data_transfer {
        max-width: 1366px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   HOMEPAGE — FRONT-PAGE.PHP STYLES
   ========================================================================== */

/* --- Container --- */
.md-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- Section base --- */
.md-section {
    padding: 56px 0;
}

.md-section--white {
    background: var(--bg-white);
}

.md-section--light {
    background: var(--bg-light);
}

.md-section--navy {
    background: var(--primary-navy);
}

.md-section--navy h2,
.md-section--navy p {
    color: #FFFFFF;
}

.md-section--navy p {
    color: var(--text-light);
}

.md-section__header {
    text-align: center;
    margin-bottom: 36px;
}

.md-section__header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 4px;
}

/* --- Label --- */
.md-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--steel-blue);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
}

.md-label--amber {
    color: var(--amber-cta);
}

/* --- Buttons --- */
.md-btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
}

.md-btn--primary {
    background: var(--amber-cta);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(212, 146, 11, 0.3);
}

.md-btn--primary:hover {
    background: var(--amber-cta-hover);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(212, 146, 11, 0.4);
}

.md-btn--outline {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.md-btn--outline:hover {
    background: var(--primary-navy);
    color: #FFFFFF;
}

.md-btn--outline-white {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.md-btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.5);
}

.md-btn--steel {
    background: var(--steel-blue);
    color: #FFFFFF;
}

.md-btn--steel:hover {
    background: #3A7BC8;
    color: #FFFFFF;
}

/* --- Grid --- */
.md-grid {
    display: grid;
    gap: var(--grid-gap);
}

.md-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.md-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

/* --- Split layout --- */
.md-split {
    display: flex;
    gap: 40px;
    align-items: center;
}

.md-split__left,
.md-split__right {
    flex: 1;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.md-hero {
    padding: 48px 0 40px;
    background: linear-gradient(135deg, var(--bg-light) 50%, var(--light-blue-tint) 100%);
}

.md-hero__grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.md-hero__content {
    flex: 1;
}

.md-hero__content h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-navy);
    margin-bottom: 16px;
    margin-top: 4px;
}

.md-hero__content > p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.md-hero__cta {
    display: flex;
    gap: 12px;
}

.md-hero__product {
    flex: 1.2;
}

/* ==========================================================================
   TERMINAL / DATA DISPLAY
   ========================================================================== */

.md-terminal {
    background: #0F172A;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.25);
}

.md-terminal__dots {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot--red { background: #EF4444; }
.dot--yellow { background: #F59E0B; }
.dot--green { background: #22C55E; }

.md-terminal__title {
    font-size: 10px;
    color: #475569;
    margin-left: 8px;
    font-family: var(--font-primary);
}

/* Quotelist table */
.md-quotelist {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    font-family: var(--font-primary);
    margin-bottom: 10px;
}

.md-quotelist thead th {
    background: #1E3A5F;
    color: var(--text-light);
    font-weight: 600;
    padding: 6px 8px;
    font-size: 10px;
    text-align: right;
}

.md-quotelist thead th.text-left {
    text-align: left;
}

.md-quotelist tbody tr:nth-child(odd) {
    background: #0F172A;
}

.md-quotelist tbody tr:nth-child(even) {
    background: #111827;
}

.md-quotelist td {
    padding: 5px 8px;
    text-align: right;
}

.md-quotelist td.text-left {
    text-align: left;
}

.up { color: #22C55E; }
.down { color: #EF4444; }
.sym { color: #CBD5E1; }

/* Terminal widgets */
.md-terminal__widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.md-widget {
    background: #1E293B;
    border-radius: 6px;
    padding: 10px;
}

.md-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.md-widget__label {
    font-size: 9px;
    color: var(--steel-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.md-widget__value {
    font-size: 13px;
    font-weight: 600;
}

.md-sparkline {
    width: 100%;
    height: 32px;
    display: block;
}

.md-indices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.md-index {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 9px;
    color: var(--text-light);
}

/* Ticker bar */
.md-ticker {
    margin-top: 8px;
    background: #0F172A;
    border: 1px solid #1E293B;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 9px;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-primary);
}

/* ==========================================================================
   SOLUTION CARDS
   ========================================================================== */

.md-card {
    display: block;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--card-padding);
    text-decoration: none;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.md-card:hover {
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
    transform: translateY(-2px);
}

.md-card__icon {
    width: 36px;
    height: 36px;
    background: var(--light-blue-tint);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--steel-blue);
}

.md-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 6px;
    margin-top: 0;
}

.md-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 10px;
}

.md-card__link {
    font-size: 13px;
    color: var(--steel-blue);
    font-weight: 500;
}

/* ==========================================================================
   BLUESKY SECTION
   ========================================================================== */

.md-capabilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.md-capability {
    font-size: 13px;
    color: #CBD5E1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.md-dot {
    width: 6px;
    height: 6px;
    background: var(--amber-cta);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Architecture diagram */
.md-arch-diagram {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.md-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.md-flow__node {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 10px;
    color: var(--text-light);
    text-align: center;
    font-family: var(--font-primary);
}

.md-flow__node--highlight {
    background: rgba(212, 146, 11, 0.15);
    border: 2px solid var(--amber-cta);
    color: var(--amber-cta);
    font-weight: 700;
    font-size: 11px;
}

.md-flow__arrow {
    color: var(--steel-blue);
    font-size: 18px;
}

.md-stats-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.md-stat {
    text-align: center;
}

.md-stat__number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--amber-cta);
    font-family: var(--font-primary);
}

.md-stat__label {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.md-stat__divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    align-self: stretch;
}

/* ==========================================================================
   HOW IT WORKS — STEPS
   ========================================================================== */

.md-steps {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.md-step {
    flex: 1;
    text-align: center;
}

.md-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 0;
}

.md-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

.md-step__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 18px;
    font-family: var(--font-primary);
}

.md-step__number--navy { background: var(--primary-navy); }
.md-step__number--steel { background: var(--steel-blue); }
.md-step__number--amber { background: var(--amber-cta); }

.md-step__arrow {
    color: var(--border);
    font-size: 24px;
    display: flex;
    align-items: center;
    padding-top: 12px;
}

/* ==========================================================================
   PLATFORM SHOWCASE — TABS
   ========================================================================== */

.md-tabs__nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0;
}

.md-tabs__btn {
    background: var(--border);
    color: var(--text-muted);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: 13px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

.md-tabs__btn--active {
    background: var(--primary-navy);
    color: #FFFFFF;
    font-weight: 600;
}

.md-tabs__btn:hover:not(.md-tabs__btn--active) {
    background: #CBD5E1;
}

.md-tabs__panel {
    display: none;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.md-tabs__panel--active {
    display: block;
}

.md-showcase {
    display: flex;
    gap: 0;
}

.md-showcase__screen {
    flex: 2;
    padding: 16px;
    background: #0F172A;
}

.md-showcase__screen .md-terminal {
    box-shadow: none;
}

.md-showcase__info {
    flex: 1;
    padding: 24px;
}

.md-showcase__info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
}

.md-showcase__info > p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.md-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.md-checklist li {
    font-size: 12px;
    color: var(--text-muted);
    padding: 3px 0 3px 18px;
    position: relative;
    line-height: 1.6;
}

.md-checklist li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Dashboard grid in showcase */
.md-dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 8px;
    margin-bottom: 0;
}

.md-panel {
    background: #1E293B;
    border-radius: var(--radius-sm);
    padding: 10px;
}

.md-panel__title {
    font-size: 10px;
    color: var(--steel-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.md-panel__header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.md-panel__value {
    font-size: 11px;
    font-weight: 600;
}

.md-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.md-chart {
    width: 100%;
    height: 40px;
    display: block;
}

/* Mini table (inside panels) */
.md-mini-table {
    font-size: 9px;
}

.md-mini-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    gap: 2px;
    padding: 2px 0;
}

.md-mini-row--header {
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid #334155;
    padding-bottom: 4px;
    margin-bottom: 2px;
}

.md-mini-row span {
    text-align: right;
}

.md-mini-row span:first-child {
    text-align: left;
}

/* Mini list */
.md-mini-list {
    font-size: 9px;
}

.md-mini-list__item {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    padding: 2px 0;
}

/* Placeholder for missing screenshots */
.md-placeholder {
    background: #1E293B;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* ==========================================================================
   WHY MARKETDESK — FEATURES
   ========================================================================== */

.md-feature {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: box-shadow 200ms ease;
}

.md-feature:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}

.md-feature .md-card__icon {
    flex-shrink: 0;
}

.md-feature__text h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 0;
}

.md-feature__text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.md-cta {
    background: var(--primary-navy);
    padding: 48px 0;
}

.md-cta h2 {
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.md-cta p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

.md-cta__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ==========================================================================
   HOMEPAGE RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 980px) {
    .md-hero__grid {
        flex-direction: column;
    }

    .md-hero__content h1 {
        font-size: 30px;
    }

    .md-hero__product {
        width: 100%;
    }

    .md-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-split {
        flex-direction: column;
    }

    .md-showcase {
        flex-direction: column;
    }

    .md-showcase__screen {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .md-steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .md-step__arrow {
        transform: rotate(90deg);
        padding: 0;
    }
}

/* ==========================================================================
   HOMEPAGE RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 767px) {
    .md-container {
        padding: 0 16px;
    }

    .md-section {
        padding: 36px 0;
    }

    .md-hero {
        padding: 32px 0;
    }

    .md-hero__content h1 {
        font-size: 26px;
    }

    .md-hero__cta {
        flex-direction: column;
    }

    .md-hero__cta .md-btn {
        text-align: center;
    }

    .md-grid--3col {
        grid-template-columns: 1fr;
    }

    .md-grid--2col {
        grid-template-columns: 1fr;
    }

    .md-capabilities {
        grid-template-columns: 1fr;
    }

    .md-stats-bar {
        gap: 16px;
        flex-wrap: wrap;
    }

    .md-tabs__nav {
        flex-wrap: wrap;
    }

    .md-tabs__btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    .md-showcase {
        flex-direction: column;
    }

    .md-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .md-cta h2 {
        font-size: 22px;
    }

    .md-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .md-section__header h2 {
        font-size: 22px;
    }

    .md-terminal__widgets {
        grid-template-columns: 1fr;
    }
}
