/* Generic Page Layout Styles */

/* Hero Section */
.wz-detail-page-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--theme-bg, #00257E);
}

.wz-detail-page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wz-detail-page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wz-detail-page-hero-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to right, #0D497C, #4850ac, transparent); */
    background: linear-gradient(to right, #0D497C 0%, #0D497C 40%, transparent);
    z-index: 2;
}

.wz-detail-page-hero-content {
    position: relative;
    z-index: 3;
    padding: 120px 0 80px;
    max-width: 700px;
}

.wz-detail-page-hero-content h1 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--color-white);
    font-weight: 300;
    animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.wz-detail-page-hero-content .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

/*
 * Breadcrumb inside hero — style.css scopes all .breadcrumb-menu styles
 * under .site-breadcrumb, which doesn't exist in the hero layout.
 * These rules are required to style the breadcrumb within the hero context.
 */
.wz-detail-page-hero-content .breadcrumb-menu {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.wz-detail-page-hero-content .breadcrumb-menu li {
    position: relative;
    display: inline-block;
    margin-left: 25px;
    color: var(--color-white);
    font-weight: 500;
    text-transform: capitalize;
}

.wz-detail-page-hero-content .breadcrumb-menu li:first-child {
    margin-left: 0;
}

.wz-detail-page-hero-content .breadcrumb-menu li a {
    color: var(--color-white);
    transition: var(--transition);
}

.wz-detail-page-hero-content .breadcrumb-menu li a:hover {
    color: var(--theme-color2);
}

.wz-detail-page-hero-content .breadcrumb-menu li::before {
    position: absolute;
    content: '\f101';
    font-family: 'Font Awesome 6 Pro';
    right: -21px;
    top: 1px;
    text-align: center;
    font-size: 16px;
    color: var(--color-white);
}

.wz-detail-page-hero-content .breadcrumb-menu li:last-child::before {
    display: none;
}

/* ===== Description - Full Width ===== */
.wz-detail-page-description {
    padding: 40px 0 80px;
    border-top: 1px solid var(--border-info-color);
}

.wz-detail-page-description-title {
    margin-bottom: 20px;
}

.wz-detail-page-description .desc-content {
    line-height: 1.9;
    color: var(--color-dark);
}

.wz-detail-page-description .desc-content p {
    margin-bottom: 18px;
}

.wz-detail-page-description .desc-content ul,
.wz-detail-page-description .desc-content ol {
    margin-bottom: 18px;
    padding-left: 20px;
}

.wz-detail-page-description .desc-content li {
    margin-bottom: 8px;
}

/* ===== Tabbed Content Sections ===== */
.wz-detail-page-tabs {
    padding: 20px 0;
}

.wz-detail-page-tabs-heading {
    font-size: 36px;
    margin-bottom: 40px;
}

/* Tab Bar Wrapper */
.wz-detail-page-tab-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
}

.wz-tab-scroll-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-info-color);
    background: #f4f4f4;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.wz-tab-scroll-btn:hover {
    background: #B4B8F1;
    color: #fff;
    border-color: var(--color-primary);
}

/* Tab Bar */
.wz-detail-page-tab-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    flex: 1;
}

.wz-detail-page-tab-bar::-webkit-scrollbar {
    display: none;
}

.wz-detail-page-tab-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-info-color);
    border-radius: 30px;
    background: #f4f4f4;
    color: var(--color-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.wz-detail-page-tab-btn:hover {
    border-color: var(--theme-bg);
    color: var(--theme-bg);
}

.wz-detail-page-tab-btn.active {
    background: var(--CTA-background);
    border-color: var(--CTA-background);
    color: var(--color-white);
    font-weight: 600;
}

/* Tab Panel */
.wz-detail-page-tab-panel {
    padding-top: 10px;
}

.wz-detail-page-tab-panel-inner {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.wz-detail-page-tab-text {
    flex: 1;
    min-width: 0;
}

.wz-detail-page-tab-text .section-heading-title {
    margin-bottom: 20px;
}

.wz-detail-page-tab-text .section-desc {
    line-height: 1.8;
    margin-bottom: 24px;
}

.wz-detail-page-tab-text .section-desc p {
    margin-bottom: 14px;
}

.wz-detail-page-tab-media {
    flex: 0 0 45%;
    max-width: 45%;
}

.wz-detail-page-tab-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* ===== Sidebar + Content Layout (used by other detail pages) ===== */
.wz-detail-page-body-inner {
    display: flex;
    gap: 0;
    align-items: stretch;
}

/* Sticky Left Sidebar */
.wz-detail-page-sidebar {
    flex: 0 0 350px;
    width: 240px;
    position: relative;
}

.wz-detail-page-sidebar-sticky {
    position: sticky;
    top: 100px;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 6px solid var(--border-info-color);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.wz-detail-page-sidebar-link {
    display: block;
    padding: 10px 20px;
    font-weight: 500;
    color: var(--body-text-color);
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition2);
    border-left: 3px solid transparent;
    margin-left: -3px;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
}

.wz-detail-page-sidebar-link:hover {
    color: var(--color-dark);
}

.wz-detail-page-sidebar-link.active {
    color: var(--theme-color);
    font-weight: 600;
    border-left-color: var(--theme-color);
}

/* Right Content Area */
.wz-detail-page-content {
    flex: 1;
    min-width: 0;
    padding-left: 60px;
}

/* Content Sections */
.wz-detail-page-section {
    padding: 20px 0;
    border-top: 1px solid var(--border-info-color);
}

.wz-detail-page-section:first-child {
    border-top: none;
    padding-top: 0;
}

.wz-detail-page-section.alt {
    background: var(--theme-bg-light);
    margin: 0 -60px;
    padding: 50px 60px;
}

.wz-detail-page-section-inner {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.wz-detail-page-section-text {
    flex: 1;
}

.wz-detail-page-section-text .section-desc {
    line-height: 1.8;
    color: var(--body-text-color);
    margin-bottom: 24px;
}

.wz-detail-page-section-text .section-desc p {
    margin-bottom: 14px;
}

/* ===== Unified Accordion — base + .sm modifier ===== */

/* Wrapper for highlights section in description area */
.wz-accordion-wrap {
    margin-top: 40px;
}

.wz-accordion-wrap-title {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
}

/* Base accordion item */
.wz-accordion-item {
    border-bottom: 2px dotted #e0e0e0;
}

.wz-accordion-item:last-child {
    border-bottom: none;
}

/* Base accordion header */
.wz-accordion-header {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wz-accordion-header h5,
.wz-accordion-header span {
    margin: 0;
    font-weight: 600;
    flex: 1;
    color: var(--color-dark);
    transition: var(--transition);
}

.wz-accordion-header i {
    font-size: 18px;
    margin-left: 15px;
    color: var(--body-text-color);
    transition: var(--transition);
}

.wz-accordion-header.active span,
.wz-accordion-header.active h5,
.wz-accordion-header.active i {
    color: var(--theme-color);
}

.wz-accordion-header.active span,
.wz-accordion-header.active h5 {
    font-weight: 700;
}

/* Base accordion body */
.wz-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.wz-accordion-body.open {
    max-height: 500px;
    padding: 0 0 25px 0;
}

.wz-accordion-body-content {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-dark);
}

/* Small variant (.sm) — for sidebar accordions */
.wz-accordion-item.sm {
    border-bottom: 1px solid var(--border-info-color);
}

.wz-accordion-header.sm {
    padding: 15px 0;
}

.wz-accordion-header.sm span {
    font-size: inherit;
    font-weight: 500;
}

.wz-accordion-header.sm i {
    font-size: 14px;
    margin-left: 10px;
}

.wz-accordion-body.sm.open {
    padding: 0 0 15px 0;
}

.wz-accordion-body.sm p,
.wz-accordion-body.sm .wz-accordion-body-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body-text-color);
}

/* Download / Attachment */
.wz-detail-page-download {
    margin-top: 40px;
}

/* Error State */
.wz-detail-page-error-icon {
    font-size: 80px;
    color: #dc3545;
}

/* ===== Two-Column Section Cards (Industry) ===== */
.wz-section-cards {
    padding: 80px 0;
}

.wz-section-cards .site-heading {
    margin-bottom: 40px;
}

.wz-section-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.wz-section-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.wz-section-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.wz-section-card .section-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--body-text-color);
}

.wz-section-card .section-desc p {
    margin-bottom: 10px;
}

.wz-section-card .section-desc p:last-child {
    margin-bottom: 0;
}

.wz-section-card .theme-btn {
    margin-top: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .wz-detail-page-hero {
        min-height: 400px;
    }

    .wz-detail-page-hero-content {
        padding: 100px 0 60px;
    }

    /* Sidebar becomes horizontal top nav on tablet */
    .wz-detail-page-body-inner {
        flex-direction: column;
    }

    .wz-detail-page-sidebar {
        flex: none;
        width: 100%;
        position: sticky;
        top: 70px;
        z-index: 10;
        background: var(--body-bg);
        border-bottom: 1px solid var(--border-info-color);
    }

    .wz-detail-page-sidebar-sticky {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
        border-left: none;
        gap: 0;
        max-height: none;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .wz-detail-page-sidebar-sticky::-webkit-scrollbar {
        display: none;
    }

    .wz-detail-page-sidebar-link {
        white-space: nowrap;
        padding: 16px 20px;
        font-size: 14px;
        border-left: none;
        margin-left: 0;
        border-bottom: 3px solid transparent;
    }

    .wz-detail-page-sidebar-link.active {
        border-left: none;
        border-bottom-color: var(--theme-color);
    }

    .wz-detail-page-content {
        padding-left: 0;
        border-left: none;
    }

    .wz-detail-page-section.alt {
        margin: 0 -15px;
        padding: 50px 15px;
    }

    .wz-detail-page-tabs {
        padding: 60px 0;
    }

    .wz-detail-page-tabs-heading {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .wz-detail-page-tab-bar-wrapper {
        margin-bottom: 35px;
    }

    .wz-tab-scroll-btn {
        width: 30px;
        height: 30px;
    }

    .wz-detail-page-tab-panel-inner {
        flex-direction: column;
        gap: 30px;
    }

    .wz-detail-page-tab-media {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .wz-detail-page-section-inner {
        flex-direction: column;
        gap: 16px;
    }

    .wz-detail-page-description {
        padding: 20px 0;
    }

    .wz-detail-page-section {
        padding: 40px 0;
    }

    .wz-detail-page-tabs {
        padding: 40px 0;
    }

    .wz-detail-page-tab-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .wz-detail-page-tab-text .section-heading-title {
        font-size: 22px;
    }
}


/*====================
CKEditor Table — Mobile Responsive
======================*/
/*
 * The CKEditor content CSS sets .table as display:table which disables overflow scrolling.
 * Override it so wide tables scroll horizontally on small screens instead of overflowing.
 */
.ck-content .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.ck-content .table table {
    min-width: 500px; /* prevent columns collapsing too narrow */
}

/*====================
CKEditor Table — Column-by-Column Snap (Mobile Only)
======================*/
/*
 * On mobile, each <td>/<th> snaps into full-width view as the user swipes,
 * creating a card-slider / carousel feel.
 * The container uses scroll-snap-type; each cell is a snap target.
 *
 * How it works:
 *  1. .ck-content .table becomes the scroll container with snap enabled.
 *  2. The <table> is laid out with table-layout:fixed so every column is
 *     equal-width and we can set each cell to 100vw.
 *  3. Every td/th is a snap point (scroll-snap-align: start).
 *  4. The table is wide enough (n-cols × 100vw) automatically because each
 *     cell is 100vw wide — no JS needed.
 */
@media (max-width: 768px) {
    .ck-content .table {
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Remove padding so cells sit flush with viewport edges */
        padding: 0;
    }

    .ck-content .table table {
        /* Reset the desktop min-width; width is now driven by cell sizes */
        min-width: unset;
        width: max-content;
        table-layout: fixed;
        border-collapse: collapse;
    }

    .ck-content .table table td,
    .ck-content .table table th {
        /* Each cell = one full viewport width → one "slide" */
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        scroll-snap-align: start;
        scroll-snap-stop: always;   /* force stop on every column, not skip */
        box-sizing: border-box;
        padding: 16px 20px;
        vertical-align: top;
        word-break: break-word;
        white-space: normal;
    }

    /* Keep header cells visually distinct */
    .ck-content .table table th {
        font-weight: 600;
        background-color: #f5f5f5;
    }

    /* Subtle column separator so the user knows more content exists */
    .ck-content .table table td + td,
    .ck-content .table table th + th {
        border-left: 4px solid var(--color-primary);
    }

    .ck-content .image {
        display: block;
    }

    .ck-content .image-style-side,
    .ck-content .image-style-align-right,
    .ck-content .image-style-align-left {
        float: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
}

/*====================
Service Group Page Card Design
======================*/
.wz-simple-card {
    background: var(--color-white);
    border-radius: 0;
    padding: 30px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition2);
    border: 1px solid var(--border-info-color);
}

.wz-simple-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.wz-simple-card-title {
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: var(--heading-font);
}

.wz-simple-card-text {
    font-size: 15px;
    color: var(--body-text-color);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.wz-simple-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--theme-color);
    text-decoration: none;
    transition: var(--transition2);
    margin-top: auto;
}

.wz-simple-card-link:hover {
    color: var(--theme-color2);
    gap: 12px;
}

.wz-simple-card-link i {
    font-size: 14px;
    transition: var(--transition2);
}

@media (max-width: 991px) {
    .wz-simple-card {
        padding: 25px 20px;
    }

    .wz-simple-card-title {
        font-size: 18px;
    }

    .wz-simple-card-text {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .wz-simple-card {
        padding: 20px 18px;
    }
}

/*====================
Service Single Page - Mobile Column Ordering
======================*/
.wz-service-single-row {
    display: flex;
    flex-wrap: wrap;
}

/* On mobile, reorder columns so description appears before highlights */
@media (max-width: 991px) {
    .wz-service-description-col {
        order: 1;
    }

    .wz-service-highlights-col {
        order: 2;
    }
}

/*====================
  Captcha Modal
======================*/
.captcha-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.captcha-modal {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

.captcha-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.captcha-modal-close:hover {
    color: #333;
}

.captcha-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.captcha-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f0f4ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.captcha-modal-icon i {
    font-size: 22px;
    color: #4a6cf7;
}

.captcha-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
}

.captcha-modal-header p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #666;
}

.captcha-question-box {
    background: #f7f8fc;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.captcha-question-box span {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 2px;
}

.captcha-answer-input {
    margin-bottom: 8px;
    text-align: center;
    font-size: 16px;
}

.captcha-error {
    color: #e74c3c;
    font-size: 13px;
    text-align: center;
    margin: 0 0 10px;
}

.captcha-error i {
    margin-right: 5px;
}

.captcha-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.captcha-cancel-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.captcha-cancel-btn:hover {
    background: #f5f5f5;
}

.captcha-submit-btn {
    flex: 2;
    padding: 10px;
    font-size: 14px;
}

.content-row {
    margin: 60px 0;
}

.content-row-inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.content-row-inner.reverse {
    flex-direction: row-reverse;
}

.content-image,
.content-text {
    flex: 1;
}

.content-image {
    margin: 0;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.wizen-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.wizen-table td {
    border: 1px solid ;
    padding: 16px;
    vertical-align: top;
}

@media (max-width: 992px) {
    .content-row-inner {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .content-row-inner,
    .content-row-inner.reverse {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .content-image,
    .content-text {
        width: 100%;
    }
}