.daily-free-home-section {
    width: 100%;
}

/* Count cards on the server: auxiliary grid children must not reserve a second slot. */
body.page-home .cases-section .cases-grid.daily-free-home-grid[data-daily-card-count="1"] {
    display: grid !important;
    grid-template-columns: minmax(0, 390px) !important;
    justify-content: center !important;
}
body.page-home .cases-section .cases-grid.daily-free-home-grid[data-daily-card-count="1"] > .daily-free-home-card {
    grid-column: 1 !important;
    justify-self: center !important;
}

/* The settings-driven Daily group uses the same visual treatment as the
   original standalone section, even though it is rendered in the ordered
   groups list. */
body.page-home .section-title.daily-free-home-header h2 {
    color: #fff !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.34) !important;
}
body.page-home .section-title.daily-free-home-header::after {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, .55), #fff, rgba(255, 255, 255, .55), transparent) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, .25) !important;
}
body.page-home .daily-free-home-grid {
    grid-template-columns: repeat(2, minmax(0, 390px)) !important;
    justify-content: center !important;
    width: 100% !important;
    margin-inline: auto !important;
}
body.page-home .daily-free-home-grid > .daily-free-home-card {
    justify-self: center !important;
    margin-inline: auto !important;
}

.daily-free-home-header {
    margin-top: 40px;
}

body.page-home .daily-free-home-header .section-title h2 {
    color: #fff !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.34) !important;
}

body.page-home .daily-free-home-header .section-title::after {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.55), #fff, rgba(255, 255, 255, 0.55), transparent) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25) !important;
}

body.page-home .daily-free-home-header .logo-small img {
    filter: grayscale(1) brightness(1.8) drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
}

body.page-home .cases-section .cases-grid.daily-free-home-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 390px)) !important;
    justify-content: center !important;
    justify-items: stretch !important;
    width: 100% !important;
}

body.page-home .cases-section .cases-grid.daily-free-home-grid:has(> .daily-free-home-card:only-child) {
    grid-template-columns: minmax(0, 390px) !important;
}

body.page-home .daily-free-home-card {
    width: 100% !important;
    max-width: 390px !important;
    justify-self: center !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

body.page-home .daily-free-home-card:hover {
    border-color: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.12), 0 0 20px rgba(255, 255, 255, 0.26) inset !important;
}

body.page-home .daily-free-home-card:hover .case-card-title {
    color: #fff !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.82) !important;
}

body.page-home .daily-free-home-price {
    justify-content: center !important;
}

body.page-home .daily-free-home-price .case-price-value {
    color: #22c55e !important;
    text-shadow: none !important;
}

body.page-home .daily-free-home-price::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 40%, #fff 60%, transparent 100%) !important;
    box-shadow: 0 0 9px rgba(255, 255, 255, 0.34) !important;
}

@media (min-width: 769px) {
    body.page-home .popular-custom-cases-mobile-link {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.page-home .daily-free-home-header {
        margin-top: 24px !important;
        margin-bottom: 14px !important;
    }

    body.page-home .popular-custom-cases-mobile-link {
        margin: 0 auto 18px !important;
    }
}

@media (max-width: 600px) {
    body.page-home .cases-section .cases-grid.daily-free-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.page-home .cases-section .cases-grid.daily-free-home-grid:has(> .daily-free-home-card:only-child) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    body.page-home .cases-section .cases-grid.daily-free-home-grid {
        grid-template-columns: repeat(2, minmax(0, 280px)) !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
