:root {
    --main-color: #004646;
    --color-default: #6396a1;
    --color-red: #ed3838;
    --color-light-red: #ffebeb;
    --color-yellow: #cfad1d;
    --color-light-yellow: #fff0c3;
    --color-cyan: #27c4b5;
    --color-blue: #457aff;
    --color-light-blue: #dbf0ff;
    --color-white: #ffffff;
    --color-grey: #f1f5f7;
    --color-black: #0f172a;
    --color-disabled: #b8d3d9;
    --color-purple: #6f42c1;
    --color-light-purple: #e5d9f7;
}

.ieltstest-actions {
    margin-top: 20px;
    text-align: right;
}

.ieltstest-actions .btn {
    margin-left: 5px;
}

.path-local-ieltstest .generaltable td {
    vertical-align: middle;
}

.path-local-ieltstest .btn {
    margin: 2px;
}

.path-local-ieltstest .alert {
    padding: 15px;
    border-radius: 4px;
}

.path-local-ieltstest .alert-info {
    color: var(--main-color);
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.path-local-ieltstest .test-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
}

.path-local-ieltstest .test-card-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.path-local-ieltstest .test-card-content {
    margin-bottom: 15px;
}

.path-local-ieltstest .test-card-footer {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    text-align: right;
}

/* General styles */
.path-local-ieltstest,
.path-local-ieltstest #page,
.path-local-ieltstest #page.drawers .main-inner,
.path-local-ieltstest #region-main {
    background-color: var(--color-white);
}

.path-local-ieltstest #page.drawers .main-inner,
.path-local-ieltstest #page.drawers div[role="main"] {
    padding-left: 0;
    padding-right: 0;
}

.path-local-ieltstest #page-header {
    display: none;
}

.path-local-ieltstest #page-footer {
    visibility: hidden;
}

.path-local-ieltstest a:not([class]):focus {
    box-shadow: none;
}

/* Custom header */
.ielts-test-header {
    padding: 0 160px;
}

.heading_animate {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.heading_content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.heading_content h1 {
    font-size: 48px;
    line-height: 1.1;
    color: var(--main-color);
}

.textSkewUp {
    perspective: 400px;
}

.word {
    display: inline-flex;
}

.char {
    display: inline-block;
    opacity: 0;
}

.heading_animate svg {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
}

#page-local-ieltstest-entrance .heading_animate svg {
    width: 350px;
}

.heading_animate svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0;
}

.heading_icon img {
    position: relative;
    z-index: 1;
    max-width: 50px;
    height: auto;
}

.heading_icon.heading_icon_02 img {
    max-width: 95px;
}

/* Navigation tabs */
.ielts-tabs {
    display: flex;
    margin-bottom: 24px;
    gap: 8px;
    flex-wrap: wrap;
}

.ielts-tabs a {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    background-color: var(--color-grey);
    color: var(--main-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ielts-tabs a:hover,
.ielts-tabs a.active {
    background-color: var(--main-color);
    color: var(--color-white);
}

/* Category selector */
.ielts-category-select-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ielts-category-selector {
    margin: 0;
    width: 100%;
    max-width: 320px;
}

.ielts-category-selector form {
    display: flex;
    align-items: center;
    gap: 12px;
}


.ielts-category-selector label {
    white-space: nowrap;
}

.ielts-category-selector .select {
    flex: 1;
}

.ielts-category-select-control {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 70, 70, 0.15);
    background-color: var(--color-grey);
    font-size: 16px;
    color: var(--main-color);
    appearance: none;
    background-image: url('pix/dropdown-icon.png');
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: right 14px center;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ielts-category-select-control:focus,
.ielts-category-select-control:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 70, 70, 0.15);
}

.ielts-category-selector .singlebutton,
.ielts-category-selector .btn,
.ielts-category-selector input[type="submit"] {
    display: none;
}

.mobile-ielts-divider {
    display: none;
}

.ielts-add-course-button {
    white-space: nowrap;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 70, 70, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ielts-add-course-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 70, 70, 0.25);
    text-decoration: none;
}

/* Search and filter */
.ielts-search-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}

.ielts-search {
    position: relative;
    width: 60%;
    max-width: 546px;
}

.ielts-search input {
    width: 100%;
    padding: 12px 44px 12px 12px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 300 !important;
    color: var(--color-black);
    background-color: var(--color-grey);
    outline: none;
}

.ielts-search input::placeholder {
    color: var(--color-black);
}

.ielts-search .search-button {
    max-height: 48px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
}

.ielts-search-loading {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--color-red);
    font-style: italic;
}

.ielts-search.loading .search-button {
    display: none;
}

.ielts-search .search-button img {
    max-width: 24px;
    opacity: 0.2;
}

.ielts-search .search-button:hover img,
.ielts-search input:focus+.search-button img {
    opacity: 1;
}

.ielts-search.loading .ielts-search-loading {
    display: block !important;
}

.ielts-filters {
    display: flex;
    gap: 8px;
}

.ielts-filters select {
    min-width: 160px;
    padding: 12px 15px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: var(--color-grey);
    color: var(--main-color);
    appearance: none;
    background-image: url('pix/dropdown-icon.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 30px;
    cursor: pointer;
    outline: none;
}

/* Divider */
.ielts-divider {
    border: none;
    border-top: 1px solid var(--color-default);
    margin: 48px 0;
}

/* Test container */
.ielts-test-content {
    position: relative;
    margin-top: 48px;
    padding: 24px 160px;
    background-color: var(--color-grey);
}

.ielts-test-content:before {
    content: "";
    position: absolute;
    top: -35px;
    left: 0;
    right: 0;
    width: 100%;
    height: 82px;
    background-image: url('pix/vector-thunder.png');
    background-repeat: no-repeat;
}

.inprogress-test-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.ielts-test-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.ielts-test-row {
    display: flex;
    gap: 24px;
    width: 100%;
}

/* Test item */
.ielts-test-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--color-white);
    border-radius: 24px;
    min-height: 212px;
    padding: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    width: calc(50% - 12px);
    box-sizing: border-box;
}

.ielts-test-item.has-in-progress {
    border: 1px solid var(--color-red);
    border-radius: 24px;
}

.inprogress-test-container .ielts-test-item {
    border: 1px solid var(--color-red);
}

.ielts-test-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.ielts-test-heading .heading-names {
    display: flex;
    flex-direction: column;
}

.ielts-test-state {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    line-height: 1;
}

.ielts-test-state .state-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.ielts-test-item.inprogress .state-icon {
    background-color: var(--color-red);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px var(--color-light-red);
}

.ielts-test-item.not_attempted .state-icon {
    background-color: var(--color-default);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px var(--color-grey);
}

.ielts-test-item.abandoned .state-icon {
    background-color: var(--color-yellow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px var(--color-light-yellow);
}

.ielts-test-item.finished .state-icon {
    background-color: var(--color-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px var(--color-light-blue);
}

.ielts-test-item.expired .state-icon {
    background-color: var(--color-purple);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px var(--color-light-purple);
}

.ielts-test-state .state-text {
    font-size: 12px;
}

.ielts-test-item.inprogress .state-text {
    color: var(--color-red);
}

.ielts-test-item.not_attempted .state-text {
    color: var(--color-default);
}

.ielts-test-item.abandoned .state-text {
    color: var(--color-yellow);
}

.ielts-test-item.finished .state-text {
    color: var(--color-blue);
}

.ielts-test-item.expired .state-text {
    color: var(--color-purple);
}

.ielts-test-tag {
    display: inline-block;
    display: flex;
    align-items: center;
    line-height: 1;
    padding: 6px 7.5px;
    border-radius: 4px;
}

.ielts-test-tag.listening {
    background-color: var(--color-light-blue);
    color: var(--color-blue);
}

.ielts-test-tag.writing {
    background-color: var(--color-light-red);
    color: var(--color-red);
}

.ielts-test-tag.reading {
    background-color: var(--color-grey);
    color: var(--color-cyan);
}

.ielts-test-tag.speaking {
    background-color: var(--color-light-yellow);
    color: var(--color-yellow);
}

.ielts-test-tag.other {
    background-color: #eaeaea;
    color: #666;
}

.ielts-test-tag span {
    font-size: 12px;
    font-weight: 500 !important;
}

.ielts-test-title-wp {
    display: flex;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    flex-wrap: wrap;
}

.ielts-test-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 24px;
    line-height: 1.25;
    margin: 0;
    color: var(--main-color);
}

/* Flower-shaped score badge */
.ielts-test-score {
    width: 72px;
    height: 68px;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('pix/score-icon-red.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ielts-test-score p {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 0;
}

.ielts-test-score span {
    font-size: 8px;
    letter-spacing: 3px;
    margin: -4px 0 0 2px;
}

.ielts-test-score.empty {
    background-image: url('pix/score-icon-grey.png');
    color: var(--color-disabled);
}

.ielts-test-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ielts-test-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-disabled);
    font-size: 16px;
    margin-right: 20px;
    flex: 1;
    line-height: 1;
}

.ielts-test-time .time-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.ielts-test-time.inprogress .time-icon {
    color: var(--color-red);
}

.ielts-test-time .time-icon i {
    font-size: 20px;
}

.ielts-test-time.inprogress .time-used {
    color: var(--color-red);
}

.ielts-test-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.ielts-test-actions a {
    text-decoration: none;
}

.ielts-test-button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
    cursor: pointer;
}

.ielts-test-button.red {
    background-color: var(--color-red);
    color: var(--color-white);
}

.ielts-test-button.red:hover {
    background-color: #e62e28;
}

.ielts-test-button.green {
    background-color: var(--main-color);
    color: var(--color-white);
}

.ielts-test-button.green:hover {
    background-color: #00352d;
}

.ielts-test-button.secondary {
    background-color: var(--color-grey);
    color: var(--color-black);
}

.ielts-test-button.secondary.not_attempted {
    color: var(--color-disabled);
    cursor: not-allowed;
    pointer-events: none;
}

.ielts-test-button.secondary:hover {
    background-color: #e8ebed;
}

/* Pagination */
.ielts-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    margin-bottom: 48px;
}

.ielts-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    color: var(--main-color);
}

.ielts-pagination a.active {
    background-color: var(--color-red);
    color: var(--color-white);
}

.ielts-pagination a.prev-page.disabled:hover,
.ielts-pagination a.next-page.disabled:hover {
    font-style: normal;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .ielts-search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .ielts-search {
        width: 100%;
        margin-bottom: 10px;
    }

    .ielts-test-row {
        flex-direction: column;
    }

    .ielts-test-item {
        width: 100%;
    }
}

@media (max-width: 1279px) {
    .ielts-test-header {
        padding: 24px 80px 0;
    }

    .ielts-test-content {
        padding: 24px 80px;
    }
}

@media (max-width: 1023px) {
    .ielts-test-header {
        padding: 24px 24px 0;
    }

    .ielts-test-content {
        padding: 24px;
    }

    .heading_content {
        gap: 2px;
        padding: 0;
    }

    .heading_content h1 {
        font-size: 30px;
    }

    .heading_animate {
        overflow: hidden;
        min-height: 50px;
        margin-bottom: 30px;
    }

    .heading_animate svg {
        width: 408px;
        height: 50px;
    }

    #page-local-ieltstest-entrance .heading_animate svg {
        width: 340px;
    }

    .heading_icon img {
        max-width: 36px;
    }

    .ielts-tabs {
        margin-bottom: 0;
    }

    .ielts-tabs a {
        min-width: 74px;
        padding: 10px 16px;
        font-size: 14px;
    }


    .ielts-category-select-wrapper {
        margin-bottom: 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .ielts-category-selector {
        max-width: 100%;
    }

    .ielts-category-selector form {
        width: 100%;
    }

    .ielts-category-selector .select {
        flex: 1;
    }

    .ielts-category-select-control {
        font-size: 14px;
        padding: 10px 40px 10px 14px;
        background-position: right 12px center;
    }

    .ielts-category-selector .singlebutton,
    .ielts-category-selector .btn,
    .ielts-category-selector input[type="submit"] {
        display: none;
    }

    .mobile-ielts-divider {
        display: block;
        border: none;
        border-top: 1px solid var(--color-default);
        margin: 10px 0;
    }

    .ielts-search {
        max-width: unset;
    }

    .ielts-test-content:before {
        background-position: 83%;
    }

    .ielts-filters select {
        font-size: 14px;
        min-width: 120px;
    }

    .ielts-test-item {
        min-height: 252px;
    }

    .ielts-test-title {
        font-size: 18px;
    }

    .ielts-test-time,
    .ielts-test-button {
        font-size: 14px;
    }

    .ielts-test-actions {
        width: 100%;
    }

    .ielts-test-button {
        width: 50%;
        padding: 13.5px 20px;
    }

    .ielts-test-info {
        gap: 16px;
    }

    .ielts-divider {
        margin: 24px 0;
    }

    .ielts-test-grid,
    .ielts-test-row,
    .inprogress-test-container {
        gap: 16px;
    }

    .ielts-pagination {
        margin-top: 24px;
        margin-bottom: 0;
    }

    .ielts-pagination a {
        font-size: 12px;
        width: 48px;
        height: 48px;
    }

    .ielts-pagination a img {
        width: 18px;
    }
}

@media (max-width: 767px) {
    .ielts-category-select-wrapper {
        margin-bottom: 12px;
        gap: 10px;
    }

    .ielts-category-select-control {
        font-size: 14px;
        padding: 10px 40px 10px 14px;
        background-position: right 12px center;
    }

    .ielts-add-course-button {
        width: 100%;
        text-align: center;
    }

    .ielts-filters select {
        min-width: unset;
        width: 50%;
        padding: 9.5px 15px;
    }
}

/* Course Management Styles */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.course-item {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 428px;
}

.course-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-item-header {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 48px;
}

.course-item-body {
    padding: 24px;
    flex-grow: 1;
}

.course-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--main-color);
    margin: 0 0 8px 0;
    line-height: 1.4;
    margin-bottom: 80px;
}

.course-shortname {
    font-size: 14px;
    color: var(--color-default);
    margin: 0 0 12px 0;
    font-weight: 500;
}

.course-summary {
    font-family: "Alexandria", arial !important;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-item-footer {
    padding: 0 24px 24px 24px;
}

.course-item-footer .ielts-test-button {
    width: 100%;
    text-align: center;
}

.ielts-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
    margin: 32px 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-grey);
}

.ielts-section-title:first-child {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .course-item-header {
        height: 160px;
    }

    .course-title {
        font-size: 18px;
    }

    .ielts-section-title {
        font-size: 20px;
        margin: 24px 0 16px 0;
    }
}

/* Entrance Test Timeline Styles - Seamless & Responsive (Pseudo-elements) */
#entrance-timeline-wrapper {
    margin: 50px 0 32px;
}

.entrance-timeline-container {
    display: flex;
    justify-content: center;
    width: 96%;
}

.entrance-timeline {
    display: flex;
    width: 100%;
    max-width: none;
    position: relative;
    padding: 0 28px;
}

.timeline-item {
    flex: 1;
    /* Default for stretching middle items */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Anchors for start and end dots precisely at the padding boundaries */
.timeline-item:first-child,
.timeline-item:last-child {
    flex: 0 0 0;
    overflow: visible;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
    /* Force minimum width to prevent distortion */
    flex-shrink: 0;
    /* Prevent squashing in narrow/anchored containers */
    border-radius: 50%;
    background-color: #f1f5f7;
    border: 2px solid #B8D3D9;
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    /* Stack on top of pseudo-element lines */
}

.timeline-label {
    font-family: 'Cal Sans', arial !important;
    font-size: 0.75rem;
    font-weight: 400;
    color: #004646;
    margin-bottom: 5px;
    text-align: center;
    white-space: nowrap;
    position: absolute;
    bottom: 25px;
    /* Position above dot wrapper */
    left: 50%;
    transform: translateX(-50%);
}

/* Pseudo-element Connectors - anchored to dot wrapper for perfect alignment */
.timeline-dot-wrapper {
    position: relative;
    width: 100%;
    /* Stretch to item width to allow responsive lines */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    /* Match dot height */
}

.timeline-dot-wrapper::before,
.timeline-dot-wrapper::after {
    content: '';
    position: absolute;
    height: 2px;
    background-color: #B8D3D9;
    /* Default gray/blue */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-dot-wrapper::before {
    left: -1px;
    /* Overlap items and middle to prevent sub-pixel gaps */
    width: calc(50% + 1px);
}

.timeline-dot-wrapper::after {
    right: -1px;
    /* Overlap items and middle to prevent sub-pixel gaps */
    width: calc(50% + 1px);
}

/* Specific Lengths for Start and End segments (Design: ~36px) 
   Since container has 36px padding, these lines will reach the container edge. */
.timeline-item:first-child .timeline-dot-wrapper::before {
    width: 36px;
    left: auto;
    right: 50%;
}

.timeline-item:last-child .timeline-dot-wrapper::after {
    width: 36px;
    right: auto;
    left: 50%;
}

/* States */
.timeline-item.active .timeline-dot {
    border-color: #ED3838;
    border-width: 2px;
}

.timeline-item.active .timeline-dot-wrapper::before {
    background-color: #ED3838;
}

.timeline-item.completed .timeline-dot-wrapper::before,
.timeline-item.completed .timeline-dot-wrapper::after {
    background-color: #ED3838;
}

.timeline-item.completed .timeline-dot {
    border-color: #ED3838;
}

/* Specific Top Alignment to match dot center regardless of label height variations? */
.timeline-item .timeline-label {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Tooltip for disabled "Thi thử" button */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-wrapper:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.tooltip-content {
    /* visibility: visible;
    opacity: 1; */
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    width: 212px;
    background: white;
    color: #374151;
    padding: 12px 16px;
    border: 1px solid #B8D3D9;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    font-size: 16px;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    font-family: 'Alexandria', arial !important;
    font-weight: 300;
}

/* Element che viền tooltip ở vị trí mũi tên */
.tooltip-border-cover {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 1px;
    background: white;
    z-index: 1001;
}

/* Mũi tên lớn (màu border) - nằm trên viền tooltip */
.tooltip-content::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid #B8D3D9;
    z-index: 1002;
}

/* Mũi tên nhỏ (màu nền trắng) để tạo hiệu ứng viền */
.tooltip-content::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    z-index: 1003;
}