.widget-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 261px;
    transition: transform 0.2s ease-in-out;
}

.widget-card:hover {
    transform: scale(1.05);
}

.widget-card-content {
    padding: 20px;
}

.widget-card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

.widget-card-description {
    color: #555;
}

.float-container {
    border: 0px solid #000;
    padding: 0px;
    width: 100%;
    /* Added flexbox for responsive layout */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.float-child {
    /* Replaced float with flex-basis for responsive behavior */
    flex: 1 1 calc(33.333% - 20px);
    padding: 20px;
    border: 1px solid silver;
    border-radius: 10px;
    margin: 0;
    height: 120px;
    vertical-align: middle;
    box-sizing: border-box;
}

/* Added WordPress column overrides to force proper responsive behavior */
/* Override WordPress Gutenberg column blocks */
.wp-block-columns.is-layout-flex {
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.wp-block-column.is-layout-flow {
    flex-basis: calc(33.333% - 20px) !important;
    min-width: 0 !important;
}

/* Force WordPress columns to stack on mobile */
@media (max-width: 768px) {
    .wp-block-columns.is-layout-flex {
        flex-direction: column !important;
    }

    .wp-block-column.is-layout-flow {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .float-child {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto;
        min-height: 120px;
    }

    .widget-card {
        min-height: auto;
    }

    .widget-card:hover {
        transform: scale(1.02);
    }

    .card_widget_table {
        display: table;
        width: 100%;
    }
}

/* Tablet breakpoint with WordPress column override */
@media (max-width: 1024px) and (min-width: 769px) {
    .wp-block-column.is-layout-flow {
        flex-basis: calc(50% - 20px) !important;
    }

    .float-child {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .widget-card-content {
        padding: 15px;
    }

    .float-child {
        padding: 15px;
        height: auto;
        min-height: 100px;
    }

    .card_widget_table_th,
    .card_widget_table_td {
        font-size: 12px;
        padding: 3px;
    }
}

.float-child-header {
    font-weight: bold;
    font-size: 15px;
    color: #666666;
}

.float-child-content {
    font-size: 13px;
    color: #555;
}

.card_widget_table {
    border-collapse: collapse;
    width: 100%;
    /* Added overflow handling for mobile */
}

.card_widget_table_th,
.card_widget_table_td {
    border: none !important;
    border: 0px solid #fff !important;
}

.card_widget_table_th {
    background-color: #fff;
    color: #333;
    /* Text color */
    font-weight: bold;
    font-size: 14px;
    padding: 5px;
    text-align: left;
    border: 0px solid #fff !important;
}

.card_widget_table_td a {
    text-decoration: none !important;
}

.card_widget_table_td {
    background-color: #fff;
    color: #555;
    /* Text color */
    padding: 5px;
    border: 0px solid #fff !important;
    font-size: 13px;
}

.card_widget_table_tr:hover {
    background-color: #f5f5f5;
    /* Light gray on hover */
    border: 0px solid #fff !important;
}

.td_ar {
    text-align: right;
}

.market-cap-summary-item {
    float: left;
    color: #444 !important;
    padding: 10px !important;
    width: 100% !important;
    margin-left: 20px;
}

.market-cap-summary-item h3 {
    font-size: 14px;
}

.market-cap-summary-item div {
    font-size: 13px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    margin-right: 4px;
    margin-left: 4px;
}

.dot-active {
    background-color: #ff184e;
}