
/* ===================================================================
   Main
   =================================================================== */
body.elementor-page #main,
body.category-case-studies #main,
body.tax-category #main {
    padding: 0 0 !important;
}

/* ===================================================================
   Case Studies – Hero Banner
   =================================================================== */
.cs-hero {
    background-color: #EBF2FF;
    overflow: hidden;
    --gap: 6px;
}

.cs-hero__inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 300px;
    position: relative;
}

.cs-hero__text {
    gap: var(--gap);
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-inline-start: 0;
    padding-inline-end: 0;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.cs-hero__title {
    font-size: 32px;
    font-weight: 700;
    color: #0A5CFF;
    line-height: 1.2;
}

.cs-hero__subtitle {
    font-size: 16px;
    color: #142859;
    margin-bottom: 34px;
}

.cs-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #2D5BE3;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s;
    box-shadow: 0px 12px 40px 0px #00367329;
}

.cs-hero__btn:hover {
    background-color: #1C4699;
    color: #fff !important;
}

.cs-hero__image {
    flex: 0 0 50%;
    max-width: 50%;
    align-self: stretch;
    overflow: hidden;
    margin-left: auto;
}

.cs-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* ===================================================================
   Case Studies – Grid Section
   =================================================================== */
.cs-grid-wrap {
    padding: 48px 20px 0;
}

.cs-grid-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------
   Filter Bar
   ------------------------------------------------------------------- */
.cs-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    border-radius: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(45, 91, 227, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

.filter-case-study .select__field {
    margin-bottom: 0 !important;
}

.filter-case-study .cs-filter-bar__search {
    background: #fff !important;
    margin-bottom: 0 !important;
}

.cs-filter-bar__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1; /* thêm */
}

.cs-filter-bar__label {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.cs-filter-bar__select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 1; /* thêm */
}

.cs-filter-bar__select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 8px 40px 8px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    /* min-width: 180px; */
    width: 100%; /* thay min-width: 180px thành width: 100% */
    outline: none;
    transition: border-color 0.2s;
}

.cs-filter-bar__select-wrap .select__field select {
	font-weight: 500 !important;
        padding: 8px 36px 6px 20px !important;
}

.cs-filter-bar__select:focus {
    border-color: #2D5BE3;
}

.cs-filter-bar__caret {
    position: absolute;
    right: 12px;
    pointer-events: none;
    flex-shrink: 0;
}

.cs-filter-bar__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    /* max-width: 500px;     */
    border-radius: 8px;
    overflow: hidden;
    padding-right: 8px;
}

.cs-filter-bar__submit {
    background: #2D5BE3;
    border: none;
    border-radius: 8px;
    padding: 0;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.cs-filter-bar__submit:hover {
    background: #1C4699;
}

.cs-filter-bar__search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    background: #fff;
}

.cs-filter-bar__search {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 40px 10px 14px; /* padding-right chừa chỗ cho icon */
    font-size: 14px;
    color: #333;
}

.cs-filter-bar__search-icon {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* -------------------------------------------------------------------
   Card Grid
   ------------------------------------------------------------------- */
.cs-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 370px);
    gap: 28px;
    margin-bottom: 40px;
    justify-content: center;
}

.cs-card {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 370px;
    height: 403px;
    transition: box-shadow 0.25s, transform 0.25s;
}

.cs-card:hover {
    box-shadow: 0 8px 28px rgba(44, 91, 227, 0.12);
    transform: translateY(-3px);
}

.cs-card__img-link {
    position: relative;
    display: block;
    overflow: hidden;
    height: 220px;
}

.cs-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.cs-card:hover .cs-card__img {
    transform: scale(1.04);
}

.cs-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b5de7 0%, #6b8efc 100%);
}

/* Category badge – outlined style in card body */
.cs-card__badge {
    display: inline-block;
    background: transparent;
    color: #435582;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #435582;
    white-space: nowrap;
    max-width: 100%;
    width: fit-content;
    border-radius: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.cs-card-grid .cs-card__title {
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}

.cs-card-grid .cs-card__title a {
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.45;
}

.cs-card__title a {
    color: #142859;
    text-decoration: none;
    transition: color 0.2s;
}

.cs-card__title a:hover {
    color: #2D5BE3;
}

.cs-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0A5CFF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}

.cs-card__readmore:hover {
    gap: 10px;
    color: #0A5CFF;
}

/* -------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------- */
.cs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 8px 0 36px;
    flex-wrap: wrap;
}

.cs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s;
    line-height: 1;
}

.cs-pagination .page-numbers:hover {
    background: #EBF2FF;
    color: #1C4699;
}

.cs-pagination .page-numbers.current {
    background: #435582;
    color: #fff;
    border-color: #435582;
}

.cs-pagination .page-numbers.prev,
.cs-pagination .page-numbers.next {
    font-size: 18px;
    color: #555;
}

/* -------------------------------------------------------------------
   Explore Button
   ------------------------------------------------------------------- */
.cs-explore-wrap {
    text-align: center;
    padding: 12px 0 56px;
}

.cs-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #0A5CFF;
    color: #0A5CFF !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cs-explore-btn:hover {
    background: #0A5CFF;
    color: #fff !important;
}

/* No posts */
.cs-no-posts {
    padding: 60px 0;
    text-align: center;
    color: #777;
    font-size: 16px;
}

/* ===================================================================
   Case Studies - HubSpot Contact Form
   =================================================================== */
.cs-contact-form-section {
    background: #1659f3;
    padding: 72px 20px;
}

.cs-contact-form-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(520px, 1.3fr);
    gap: 54px;
    align-items: center;
}

.cs-contact-form-copy h2 {
    color: #fff;
    margin: 0 0 14px;
    font-size: 32px !important;
    font-weight: 600 !important;
    line-height: 1.2;
}

.cs-contact-form-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px !important;
    line-height: 1.65;
}

.cs-contact-form-widget {
    width: 100%;
}

.cs-hubspot-form .hbspt-form {
    margin: 0;
}

.cs-hubspot-form .hbspt-form form {
    max-width: 100%;
}

.cs-hubspot-form .hbspt-form .hs-form-field {
    margin-bottom: 10px;
}

.cs-hubspot-form .hbspt-form fieldset {
    max-width: 100%;
}

.cs-hubspot-form .hbspt-form label {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.cs-hubspot-form .hbspt-form .input {
    margin-right: 0;
}

.cs-hubspot-form .hbspt-form input[type="text"],
.cs-hubspot-form .hbspt-form input[type="email"],
.cs-hubspot-form .hbspt-form input[type="number"],
.cs-hubspot-form .hbspt-form input[type="tel"],
.cs-hubspot-form .hbspt-form select,
.cs-hubspot-form .hbspt-form textarea {
    width: 100% !important;
    min-height: 40px;
    border: 1px solid #dbe4f5;
    border-radius: 3px;
    background: #fff;
    color: #12244f;
    font-size: 14px;
    line-height: 1.25;
    padding: 9px 12px;
    box-shadow: none;
}

.cs-hubspot-form .hbspt-form input::placeholder,
.cs-hubspot-form .hbspt-form textarea::placeholder {
    color: #95a4c2;
}

.cs-hubspot-form .hbspt-form input:focus,
.cs-hubspot-form .hbspt-form select:focus,
.cs-hubspot-form .hbspt-form textarea:focus {
    border-color: #90b8ff;
    outline: none;
}

.cs-hubspot-form .hbspt-form .hs-richtext,
.cs-hubspot-form .hbspt-form .hs-richtext p,
.cs-hubspot-form .hbspt-form .hs-form-booleancheckbox-display > span {
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
}

.cs-hubspot-form .hbspt-form .hs-form-booleancheckbox-display {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cs-hubspot-form .hbspt-form input[type="checkbox"] {
    width: 14px;
    min-height: 14px;
    height: 14px;
    margin-top: 3px;
    border: 1px solid #fff;
}

.cs-hubspot-form .hbspt-form .actions {
    margin-top: 16px;
    padding: 0;
}

.cs-hubspot-form .hbspt-form .actions input[type="submit"],
.cs-hubspot-form .hbspt-form .hs-button,
.cs-hubspot-form .hbspt-form .hs-button:hover,
.cs-hubspot-form .hbspt-form .hs-button:hover:not(.inactive),
.cs-hubspot-form .hbspt-form .hs-button:focus,
.cs-hubspot-form .hbspt-form .hs-button:active,
.cs-hubspot-form .hbspt-form .hs-button:active:not(.inactive):not(.link) {
    min-height: 42px;
    border: 1px solid #F67404 !important;
    border-radius: 10px;
    background: #F67404 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    transition: filter 0.2s ease;
    white-space: pre-wrap;
    box-shadow: none;
}

.cs-hubspot-form .hbspt-form .actions input[type="submit"]:hover,
.cs-hubspot-form .hbspt-form .actions input[type="submit"]:focus,
.cs-hubspot-form .hbspt-form .actions input[type="submit"]:active,
.cs-hubspot-form .hbspt-form .hs-button:hover,
.cs-hubspot-form .hbspt-form .hs-button:focus,
.cs-hubspot-form .hbspt-form .hs-button:active {
    filter: brightness(0.96);
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px) {
    .cs-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-contact-form-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cs-contact-form-copy h2 {
        font-size: 34px;
    }

    .cs-contact-form-copy p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* --- Hero --- */
    .cs-hero {
        overflow: hidden;
        position: relative;
    }

    .cs-hero__inner {
        flex-direction: row;
        align-items: flex-start;
        min-height: 220px;
        position: relative;
        background: #E5F4FF;
    }

    /* .cs-hero__text {
        flex: 0 0 60%;
        max-width: 60%;
        padding: 28px 12px 28px 16px;
        text-align: left;
        position: relative;
        z-index: 1;
    } */

    /* Text đè lên trên */
    .cs-hero__text {
        position: relative;
        z-index: 2;
        flex: unset;
        width: auto;
        max-width: 55%;
        margin: 0;
        height: auto;
        padding: 28px 12px 28px 16px;
        text-align: left;
    }

    .cs-hero__title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .cs-hero__subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .cs-hero__btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    /* .cs-hero__image {
        flex: 0 0 55%;
        max-width: 55%;
        position: absolute;
        right: -5%;
        top: 0;
        bottom: 0;
        height: 100%;
    } */

    .cs-hero__image {
        position: absolute;
        top: 0;
        right: 0;          /* bên phải */
        width: 70%;
        height: 100%;
        flex: unset;
        max-width: unset;
        left: unset;       /* bỏ left */
    }

    .cs-hero__image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 40%;
        height: 100%;
        background: linear-gradient(to right, #E5F4FF 0%, transparent 100%);
        z-index: 1;
        pointer-events: none;
    }

    .cs-hero__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* --- Grid wrap --- */
    .cs-grid-wrap {
        padding: 24px 16px 0;
    }

    /* --- Filter bar --- */
    .cs-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
    }

    .cs-filter-bar__left {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cs-filter-bar__label {
        font-size: 14px;
    }

    .cs-filter-bar__select-wrap {
        width: 100%;
    }

    .cs-filter-bar__select {
        width: 100%;
        height: 42px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .cs-filter-bar__right {
        max-width: 100%;
        height: 42px;
        flex-direction: row;
    }

    .cs-filter-bar__search-wrap {
        flex: 1;
        height: 100%;
    }

    .cs-filter-bar__search {
        height: 100%;
        width: 100%;
    }

    .cs-filter-bar__submit {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    /* --- Card grid --- */
    .cs-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cs-card {
        width: 100%;
        height: auto;
    }

    .cs-card__img-link {
        height: 200px;
    }

    /* --- Explore button --- */
    .cs-explore-btn {
        width: 100%;
        justify-content: center;
    }

    .cs-contact-form-section {
        padding: 44px 14px;
    }

    .cs-contact-form-copy h2 {
        font-size: 30px;
    }

    .cs-contact-form-copy p {
        font-size: 15px;
    }

    .cs-hubspot-form .hbspt-form fieldset.form-columns-2 .hs-form-field {
        width: 100% !important;
        float: none !important;
    }
}

@media (min-width: 1024px) {
    .cs-hero__inner {
    min-height: 445px;
}

    .cs-hero__text {
        padding-inline-start: 0;
        padding-inline-end: 0;
    }

    .cs-filter-bar__select {
        height: 42px;
    }

    .cs-filter-bar__search-wrap {
        height: 42px;
    }

    .filter-case-study .cs-filter-bar__search {
        height: 42px !important;
    }

}

.elementor-element-9f3ad01 .e-con>.e-con-inner {
    padding-block-start: 0px !important;
    padding-block-end: 0px !important;
}
