/* Tips Grid - Force 2 Columns */
.tips-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100%;
}

@media (max-width: 768px) {
    .tips-card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Updated Card Styles for Clickable Card */
.tip-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Inner Link Wrapper */
.tip-card-inner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tip-card-inner-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Favorite Button - Absolute Position */
.tip-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #eee;
    cursor: pointer;
    z-index: 20;
    /* High Z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    padding: 0;
}

.tip-favorite-btn:hover {
    transform: scale(1.1);
    background: #fdfdfd;
}

.tip-favorite-btn.favorited {
    color: #ff4757 !important;
    border-color: #ff4757 !important;
}

.tip-favorite-btn.favorited svg {
    fill: currentColor !important;
}

.tip-favorite-btn svg {
    width: 20px;
    height: 20px;
    transition: fill 0.2s ease;
}

/* Card Content Layout */
.tip-card-content {
    padding: 20px;
    flex-grow: 1;
}

.tip-card-image {
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.tip-header {
    margin-bottom: 5px;
}

.tip-header h2 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #222;
    line-height: 1.3;
}

.tip-meta {
    font-size: 13px;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tip-meta span {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.3px;
}

/* Bet Now CTA button */
.tips-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #143894;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
}

.tips-cta-button:hover {
    background: #c8e700;
    transform: translateY(-2px);
    text-decoration: none;
    color: #111 !important;
}

/* ─── Details Page – Outer Container ─── */
.single-tip-details {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
}

/* Kill any inherited box/border from pxl content wrapper when showing tips detail */
.woocommerce-account .single-tip-details,
.woocommerce-account .woocommerce-MyAccount-content>.single-tip-details~*,
.woocommerce-account .woocommerce-MyAccount-content {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.woocommerce-account .single-tip-details {
    margin-bottom: 50px !important;
}

.back-to-tips-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 30px;
    text-decoration: none;
    font-weight: 600;
    color: #111;
    font-size: 14px;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #143894;
    padding-bottom: 2px;
    transition: color 0.2s, gap 0.2s;
}

.back-to-tips-btn:hover {
    color: #888;
    text-decoration: none;
    gap: 10px;
}

.tip-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #f3f3f3;
    padding-bottom: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.tip-details-header h1 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.tip-details-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.tip-details-images img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tip-details-images img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.tip-details-description {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 40px;
    color: #444;
}

.tip-details-description h3,
.single-tip-details h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #143894;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.tip-races-list {
    border-top: 2px solid #f3f3f3;
    padding-top: 10px;
    margin-top: 10px;
}

/* ─── Tip Service Race Cards ─── */

/* Animate-in: items start invisible and slide up */
.tip-service-item {
    opacity: 0;
    transform: translateY(24px);
    animation: tipFadeUp 0.55s ease forwards;
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid #143894;
    border-radius: 8px;
    padding: 28px 28px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: box-shadow 0.25s;
}

.tip-service-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
}

.tip-service-item:last-child {
    margin-bottom: 0;
}

/* Stagger siblings */
.tip-service-item:nth-child(1) {
    animation-delay: 0.05s;
}

.tip-service-item:nth-child(2) {
    animation-delay: 0.15s;
}

.tip-service-item:nth-child(3) {
    animation-delay: 0.25s;
}

.tip-service-item:nth-child(4) {
    animation-delay: 0.35s;
}

.tip-service-item:nth-child(5) {
    animation-delay: 0.45s;
}

.tip-service-item:nth-child(6) {
    animation-delay: 0.55s;
}

.tip-service-item:nth-child(7) {
    animation-delay: 0.65s;
}

.tip-service-item:nth-child(8) {
    animation-delay: 0.75s;
}

.tip-service-item:nth-child(9) {
    animation-delay: 0.85s;
}

.tip-service-item:nth-child(10) {
    animation-delay: 0.95s;
}

@keyframes tipFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Two-column row: left meta + right content */
.tip-service-inner {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* Left: number badge + title */
.tip-service-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 0 0 280px;
    min-width: 0;
}

.tip-service-number {
    font-size: 36px;
    font-weight: 800;
    color: #143894;
    line-height: 1;
    min-width: 50px;
    letter-spacing: -1px;
    flex-shrink: 0;
    text-shadow: 0 0 20px rgba(222, 251, 2, 0.3);
}

.tip-service-heading {
    padding-top: 4px;
}

.tip-service-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.3;
}

.tip-service-title span {
    font-weight: 500;
    color: #555;
    font-size: 15px;
}

.tip-service-subtitle {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Right: all race details */
.tip-service-content {
    flex: 1;
    min-width: 0; /* Critical: prevents flex child overflow */
}

.tip-service-audio audio {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 6px;
}

.tip-service-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.tip-service-desc p {
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.tip-service-desc a {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Horse list */
.tip-horse-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tip-horse-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.tip-horse-list li i {
    color: #143894;
    font-size: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}

.tip-horse-list li a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.tip-horse-list li a:hover {
    color: #143894;
}

/* YouTube / Watch Video CTA */
.tip-service-youtube {
    margin-top: 12px;
}

.tip-btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    border-bottom: 2px solid #143894;
    padding-bottom: 2px;
    transition: color 0.25s, gap 0.25s;
}

.tip-btn-readmore:hover {
    color: #143894;
    gap: 12px;
    text-decoration: none;
}

.tip-btn-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s;
}

.tip-btn-readmore:hover .tip-btn-icon {
    transform: translateX(4px);
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
    .tip-service-inner {
        flex-direction: column;
        gap: 16px;
    }

    .tip-service-left {
        flex: none;
        width: 100%;
    }

    .tip-service-number {
        font-size: 28px;
    }

    .tip-service-title {
        font-size: 16px;
    }
}

.race-video {
    margin-top: 15px;
}

/* Tabs */
.tips-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
    gap: 30px;
}

.tips-tab {
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tips-tab:hover {
    color: #555;
}

.tips-tab.active {
    color: #222;
    border-bottom-color: #0073aa;
}

.no-favs-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Blackbook Specific Styles */
.blackbook-description {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.blackbook-description p {
    margin-bottom: 10px;
}

.read-more-toggle {
    display: inline-block;
    color: #0073aa;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    margin-top: 5px;
}

.read-more-toggle:hover {
    text-decoration: underline;
    color: #005177;
}

/* Ensure grid works for blackbook tab too if used */
.tips-content-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tips-content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Filter Styles */
.dashboard-filter-container {
    margin-bottom: 30px !important;
    background: #f8fafc !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    border: 1px solid #edf2f7 !important;
}

.dashboard-filter-form .filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    min-width: 250px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 20px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
}

.search-input-wrapper input:focus {
    border-color: #3182ce !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
    outline: none !important;
}

.search-input-wrapper button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s;
}

.search-input-wrapper button:hover {
    color: #3182ce;
}

.select-filter-wrapper {
    min-width: 180px;
}

.select-filter-wrapper select {
    width: 100%;
    padding: 10px 15px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    height: auto !important;
}

.select-filter-wrapper select:focus {
    border-color: #3182ce !important;
    outline: none !important;
}

.clear-filters-link {
    font-size: 13px;
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    transition: all 0.2s;
}

.clear-filters-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .dashboard-filter-form .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .select-filter-wrapper {
        min-width: 100%;
    }
}

/* Blackbook Specific Styles */
.blackbook-description {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.blackbook-description p {
    margin-bottom: 10px;
}

.read-more-toggle {
    display: inline-block;
    color: #0073aa;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    margin-top: 5px;
}

.read-more-toggle:hover {
    text-decoration: underline;
    color: #005177;
}

/* Ensure grid works for blackbook tab too if used */
.tips-content-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tips-content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Redesigned Tips Tab, Drawer & Horizontal Card Layout (Mobile Optimization)
   ========================================================================== */

/* Tabs Labels Visibility Toggle */
.desktop-tab-label {
    display: inline !important;
}
.mobile-tab-label {
    display: none !important;
}

/* Tab Icon/Star */
.tips-tabs-wrapper .tips-tab .star-icon {
    font-size: 14px;
    color: #718096;
    transition: color 0.2s ease;
}
.tips-tabs-wrapper .tips-tab.active .star-icon {
    color: #143894;
}

/* Default Star Icon Hidden (Used for Desktop Heart Favorite Style) */
.tip-favorite-btn .star-icon {
    display: none;
}
.tip-favorite-btn .heart-icon {
    display: block;
}
.tip-favorite-btn.favorited svg.heart-icon {
    fill: currentColor !important;
}

/* Desktop View Only Rules (Width >= 768px) */
@media (min-width: 768px) {
    .tips-tabs-wrapper {
        border-bottom: 2px solid #eee !important;
        margin-bottom: 25px !important;
        display: block !important;
    }
    .tips-tabs-wrapper .tips-tabs {
        display: flex !important;
        gap: 30px !important;
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }
    .tips-tabs-wrapper .tips-tab {
        padding: 15px 0 !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #888 !important;
        cursor: pointer !important;
        border-bottom: 3px solid transparent !important;
        margin-bottom: -2px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .tips-tabs-wrapper .tips-tab:hover {
        color: #555 !important;
    }
    .tips-tabs-wrapper .tips-tab.active {
        color: #222 !important;
        border-bottom-color: #0073aa !important;
    }
    .tips-filter-trigger-btn {
        display: none !important;
    }
    
    /* Show filters inline on desktop */
    .tips-filter-drawer-overlay {
        display: none !important;
    }
    .tips-filter-drawer {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        background: transparent !important;
        display: block !important;
        transition: none !important;
        padding: 0 !important;
    }
    .tips-filter-drawer .drawer-header {
        display: none !important;
    }
    .tips-filter-drawer .drawer-body {
        padding: 0 !important;
        overflow: visible !important;
    }
    .tips-filter-drawer .dashboard-filter-container {
        display: block !important;
        margin-bottom: 30px !important;
        background: #fff !important;
        padding: 20px !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #edf2f7 !important;
    }
    .tips-filter-drawer .dashboard-filter-form .filter-row {
        display: flex !important;
        gap: 15px !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }
    .tips-filter-drawer .search-input-wrapper {
        position: relative !important;
        flex-grow: 1 !important;
        min-width: 250px !important;
    }
    .tips-filter-drawer .select-filter-wrapper {
        min-width: 180px !important;
    }
    .tips-filter-drawer .clear-filters-link {
        font-size: 13px !important;
        color: #e53e3e !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        padding: 5px 10px !important;
    }
}

/* Mobile View Only Rules (Width < 768px) */
@media (max-width: 767px) {
    .desktop-tab-label {
        display: none !important;
    }
    .mobile-tab-label {
        display: inline-flex !important;
    }

    /* Tabs wrapper styling on mobile */
    .tips-tabs-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 2px solid #edf2f7 !important;
        margin-bottom: 25px !important;
        padding-bottom: 0 !important;
    }
    .tips-tabs-wrapper .tips-tabs {
        display: flex !important;
        gap: 20px !important;
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }
    .tips-tabs-wrapper .tips-tab {
        padding: 12px 0 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #718096 !important;
        cursor: pointer !important;
        border-bottom: 3px solid transparent !important;
        margin-bottom: -2px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .tips-tabs-wrapper .tips-tab:hover {
        color: #4a5568 !important;
    }
    .tips-tabs-wrapper .tips-tab.active {
        color: #143894 !important;
        border-bottom-color: #143894 !important;
    }

    /* Filter Trigger Button */
    .tips-filter-trigger-btn {
        background: none !important;
        border: none !important;
        padding: 8px !important;
        cursor: pointer !important;
        color: #718096 !important;
        border-radius: 6px !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    .tips-filter-trigger-btn:hover {
        background: #f7fafc !important;
        color: #143894 !important;
    }
    .tips-filter-trigger-btn.active {
        color: #143894 !important;
    }
    .tips-filter-trigger-btn .filter-badge {
        position: absolute !important;
        top: 4px !important;
        right: 4px !important;
        width: 8px !important;
        height: 8px !important;
        background: #e53e3e !important;
        border-radius: 50% !important;
        border: 1px solid #fff !important;
    }

    /* Slide-out Filter Drawer */
    .tips-filter-drawer-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.4) !important;
        z-index: 99998 !important;
        display: none;
    }
    .tips-filter-drawer {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 320px !important;
        max-width: 90% !important;
        height: 100% !important;
        background: #fff !important;
        z-index: 99999 !important;
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1) !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .tips-filter-drawer.open {
        transform: translateX(0) !important;
    }
    .tips-filter-drawer .drawer-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px 24px !important;
        border-bottom: 1px solid #edf2f7 !important;
    }
    .tips-filter-drawer .drawer-header h3 {
        margin: 0 !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #1a202c !important;
    }
    .tips-filter-drawer .close-drawer-btn {
        background: none !important;
        border: none !important;
        font-size: 24px !important;
        cursor: pointer !important;
        color: #a0aec0 !important;
        padding: 4px !important;
        transition: color 0.2s ease !important;
        line-height: 1 !important;
    }
    .tips-filter-drawer .close-drawer-btn:hover {
        color: #4a5568 !important;
    }
    .tips-filter-drawer .drawer-body {
        padding: 24px !important;
        overflow-y: auto !important;
        flex-grow: 1 !important;
    }

    /* Adjust filters inside drawer */
    .tips-filter-drawer .dashboard-filter-container {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    .tips-filter-drawer .dashboard-filter-form .filter-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }
    .tips-filter-drawer .search-input-wrapper {
        min-width: 100% !important;
    }
    .tips-filter-drawer .select-filter-wrapper {
        min-width: 100% !important;
    }
    .tips-filter-drawer .clear-filters-link {
        display: inline-block !important;
        text-align: center !important;
        margin-top: 10px !important;
        font-size: 14px !important;
    }

    /* Hide Category and Read More on Mobile Cards */
    .tips-wrapper .tip-card .item--category,
    .tips-wrapper .tip-card .pxl-information,
    .tips-wrapper .tip-card .pxl-item--readmore {
        display: none !important;
    }

    /* Redesigned Horizontal Card Styles (Mobile Mode) */
    .tips-wrapper .pxl-grid-item.tip-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 10px !important;
        margin-bottom: 20px !important;
        transition: none !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        background: #fff !important;
        border-radius: 12px !important;
        border: 1px solid #edf2f7 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
        overflow: hidden !important;
        position: relative !important;
        padding: 15px !important;
        gap: 15px !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        height: 100% !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card:hover .pxl-item--inner {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--featured {
        width: 120px !important;
        height: 90px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #f7fafc !important;
        padding: 0 !important;
        display: block !important;
        align-self: auto !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--featured a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--featured img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--right {
        flex-grow: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 0 !important;
        padding-right: 25px !important; /* space for absolute favorite star */
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--title {
        font-size: 15px !important;
        font-weight: 700 !important;
        margin: 0 0 4px 0 !important;
        text-transform: uppercase !important;
        line-height: 1.3 !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--title a {
        color: #000 !important;
        text-decoration: none !important;
        transition: opacity 0.2s !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--title a:hover {
        opacity: 0.8 !important;
    }

    /* Card Metadata */
    .tip-card-meta-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    .tip-card-meta-info .meta-info-item {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 13px !important;
        color: #718096 !important;
    }
    .tip-card-meta-info .meta-info-item svg {
        color: #a0aec0 !important;
        flex-shrink: 0 !important;
    }
    .tip-card-meta-info .meta-info-item span {
        font-weight: 500 !important;
    }

    /* Favorite Star Button Toggle */
    .tips-wrapper .tip-card .tip-favorite-btn {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: 28px !important;
        height: 28px !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        cursor: pointer !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #a0aec0 !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
    }
    .tips-wrapper .tip-card .tip-favorite-btn:hover {
        transform: scale(1.1) !important;
        color: #ecc94b !important;
        background: none !important;
    }
    .tips-wrapper .tip-card .tip-favorite-btn .star-icon {
        display: block !important;
    }
    .tips-wrapper .tip-card .tip-favorite-btn .heart-icon {
        display: none !important;
    }
    .tips-wrapper .tip-card .tip-favorite-btn.favorited {
        color: #ecc94b !important;
    }
    .tips-wrapper .tip-card .tip-favorite-btn.favorited svg.star-icon {
        fill: #ecc94b !important;
        stroke: #ecc94b !important;
    }

    /* Mobile Blackbook Card Layout */
    .tips-wrapper .pxl-grid-item.blackbook-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 10px !important;
        margin-bottom: 20px !important;
        transition: none !important;
    }
    .tips-wrapper .pxl-grid-item.blackbook-card .pxl-item--inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        background: #fff !important;
        border-radius: 12px !important;
        border: 1px solid #edf2f7 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
        overflow: hidden !important;
        position: relative !important;
        padding: 0 !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        height: auto !important;
    }
    .tips-wrapper .pxl-grid-item.blackbook-card:hover .pxl-item--inner {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    }
    .tips-wrapper .blackbook-card .pxl-item--content {
        padding: 15px !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    
    /* Hide desktop items on mobile blackbook card */
    .blackbook-card .item--category,
    .blackbook-card .pxl-information {
        display: none !important;
    }

    /* Show metadata on mobile blackbook card */
    .blackbook-card .blackbook-card-meta-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    .blackbook-card-meta-info .meta-info-item {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 13px !important;
        color: #718096 !important;
    }
    .blackbook-card-meta-info .meta-info-item svg {
        color: #a0aec0 !important;
        flex-shrink: 0 !important;
    }
    .blackbook-card-meta-info .meta-info-item span {
        font-weight: 500 !important;
    }

    .tips-wrapper .blackbook-card .pxl-item--title {
        font-size: 15px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        text-transform: uppercase !important;
        line-height: 1.3 !important;
        padding-right: 80px !important; /* space for actions + favorite star */
    }
    .tips-wrapper .blackbook-card .pxl-item--title a {
        color: #000 !important;
        text-decoration: none !important;
    }

    /* Star button styles for blackbook card on mobile */
    .tips-wrapper .blackbook-card .tip-favorite-btn {
        position: absolute !important;
        top: 15px !important;
        transform: none !important;
        right: 15px !important;
        width: 28px !important;
        height: 28px !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        cursor: pointer !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #a0aec0 !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
    }
    .tips-wrapper .blackbook-card .tip-favorite-btn:hover {
        transform: scale(1.1) !important;
        color: #ecc94b !important;
    }
    .tips-wrapper .blackbook-card .tip-favorite-btn .star-icon {
        display: block !important;
    }
    .tips-wrapper .blackbook-card .tip-favorite-btn .heart-icon {
        display: none !important;
    }
    .tips-wrapper .blackbook-card .tip-favorite-btn.favorited {
        color: #ecc94b !important;
    }
    .tips-wrapper .blackbook-card .tip-favorite-btn.favorited svg.star-icon {
        fill: #ecc94b !important;
        stroke: #ecc94b !important;
    }

    /* Personal horse actions wrapper on mobile */
    .tips-wrapper .blackbook-card .personal-horse-actions-wrapper {
        position: absolute !important;
        top: 15px !important;
        transform: none !important;
        right: 48px !important;
        z-index: 10 !important;
        display: flex !important;
        gap: 6px !important;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
    .tips-tabs-wrapper {
        margin-bottom: 20px !important;
    }
    .tips-tabs-wrapper .tips-tab {
        font-size: 14px !important;
        padding: 10px 0 !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--inner {
        padding: 12px !important;
        gap: 12px !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--featured {
        width: 100px !important;
        height: 75px !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--right {
        padding-right: 20px !important;
    }
    .tips-wrapper .pxl-grid-item.tip-card .pxl-item--title {
        font-size: 13px !important;
    }
    
    .tip-card-meta-info .meta-info-item {
        font-size: 11px !important;
    }

    /* Blackbook Card Extra Small Mobile Adjustments */
    .tips-wrapper .pxl-grid-item.blackbook-card .pxl-item--inner {
        padding: 12px !important;
    }
    .tips-wrapper .blackbook-card .pxl-item--content {
        padding: 0 !important;
    }
    .tips-wrapper .blackbook-card .pxl-item--title {
        font-size: 13px !important;
    }
    .blackbook-card-meta-info .meta-info-item {
        font-size: 11px !important;
    }
}

/* ==========================================================================
   Desktop Grid Styling & Stacked Mobile Viewports
   ========================================================================== */

/* Desktop Grid Styling (2 Columns) */
@media (min-width: 768px) {
    #tips-grid-container,
    #blackbook-grid-container {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 -10px !important;
    }
    .tips-wrapper .pxl-grid-item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
        float: none !important;
    }
    .blackbook-card .pxl-item--inner {
        box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        border: 1px solid #edf2f7 !important;
    }
    .blackbook-card .pxl-item--inner:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    }
}

/* Mobile Stacked Styling (1 Column) */
@media (max-width: 767px) {
    #tips-grid-container,
    #blackbook-grid-container {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 !important;
    }
    .tips-wrapper .pxl-grid-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
        float: none !important;
    }
}

/* ==========================================================================
   Detail Page Base, Layout & Elements Revamp Styling
   ========================================================================== */

.woocommerce-account .single-tip-details {
    max-width: 1440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-account #pxl-content-area, 
.woocommerce-account .pxl-entry-content,
.woocommerce-account #pxl-main,
.woocommerce-account .pxl-col-content,
.woocommerce-account .woocommerce-MyAccount-content { 
    border: none !important;
    box-shadow: none !important;
    background: transparent !important; 
    padding: 0 !important;
    width: 100% !important;
    max-width: 1440px !important;
    float: none !important;
    margin: 0 auto !important;
}

#pxl-wapper #pxl-main .container {
    max-width: 1255px !important;
    padding: 0 40px !important;
}

/* Detail Page Header */
.tip-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.tip-details-header h1 {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.25 !important;
}

/* Back Link styling */
.back-to-tips-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    font-weight: 700;
    color: #718096 !important;
    font-size: 14px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 4px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.back-to-tips-btn:hover {
    color: #143894 !important;
    border-bottom-color: #143894;
}

/* Metadata Pills */
.tip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset bullets/pseudo circles */
.single-tip-details::before,
.single-tip-details::after,
.tip-details-header::before,
.tip-details-header::after,
.tip-meta::before,
.tip-meta::after {
    content: none !important;
    display: none !important;
}

.tip-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #edf2f7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.tip-meta-item svg {
    color: #718096;
    flex-shrink: 0;
}

/* Races Cards */
.tip-races-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.tip-service-item {
    background: #fff !important;
    border: 1px solid #edf2f7 !important;
    border-left: 5px solid #143894 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.tip-service-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
}

.tip-service-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.tip-service-left {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex: 0 0 240px;
}

.tip-service-number {
    font-size: 32px;
    font-weight: 800;
    color: #143894;
    line-height: 1;
    min-width: 40px;
    letter-spacing: -0.5px;
}

.tip-service-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
}

.tip-service-title span {
    font-weight: 500;
    color: #718096;
    font-size: 14px;
}

.tip-service-subtitle {
    font-size: 12px !important;
    color: #718096 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tip-service-content {
    flex-grow: 1;
    min-width: 0; /* Prevent flex child from overflowing its container */
}

/* Audio Player */
.tip-service-audio audio {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 6px;
}

/* Horse list in detail page */
.tip-horse-list {
    margin: 12px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.tip-horse-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #4a5568;
}

.tip-horse-list li i {
    color: #143894;
    font-size: 8px;
}

/* CTA Buttons */
.tips-cta-button {
    background: #143894 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-transform: uppercase;
    font-size: 13px !important;
    border: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.tips-cta-button:hover {
    background: #002277 !important;
    transform: translateY(-1px);
}

/* Detail page mobile media queries */
@media (max-width: 767px) {
    #pxl-wapper #pxl-main .container {
        padding: 0 15px !important;
    }

    /* Reduce card padding on mobile so content has more room */
    .tip-service-item {
        padding: 16px 16px 14px !important;
    }

    .tip-details-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }
    .tip-details-header h1 {
        font-size: 26px !important;
    }
    .tip-service-inner {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .tip-service-left {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Ensure text content wraps and doesn't overflow */
    .tip-service-content {
        min-width: 0 !important;
        width: 100% !important;
    }
    .tip-service-desc,
    .tip-service-desc p,
    .tip-service-desc a,
    .tip-service-desc span {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* Ensure long URLs in descriptions wrap */
    .tip-service-desc a[href] {
        word-break: break-all !important;
    }

    /* Horse list items wrap correctly */
    .tip-horse-list li {
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    /* Ensure the heading section doesn't overflow */
    .tip-service-heading {
        min-width: 0 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .tip-service-title {
        font-size: 15px !important;
        word-break: break-word !important;
    }
}

/* ==========================================================================
   Global Card Titles & Desktop Metadata Styling
   ========================================================================== */

/* Card Titles Font & Color (Global) */
.tip-card .pxl-item--title a,
.blackbook-card .pxl-item--title a {
    color: #000 !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    transition: color 0.2s ease !important;
}

.tip-card .pxl-item--title a:hover,
.blackbook-card .pxl-item--title a:hover {
    color: #002277 !important;
    text-decoration: none !important;
}

/* Desktop Only Card Metadata Rules */
@media (min-width: 768px) {
    .tip-card-meta-info,
    .blackbook-card-meta-info {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        margin-bottom: 12px !important;
        margin-top: 4px !important;
    }
    
    .meta-info-item {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 13px !important;
        color: #718096 !important;
    }
    
    .meta-info-item svg {
        color: #a0aec0 !important;
        flex-shrink: 0 !important;
    }
}