/* Reset counter for casino numbering */
.casino-feed {
    counter-reset: casino;
    margin: 50px 0;
}

/* Casino Feed Sort */
.casino-feed-sort {
    margin-top: 45px;
    margin-bottom: -20px;
}

/* Casino Site Wrapper */
.casino-site-wrapper {
    /* Existing styles */
    /* border-right: 1px solid #c3c3c3; */
    padding: 24px;
    padding-left: 80px;
    background: #fff;
    border-radius: 20px 20px 20px 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: visible;
    -webkit-box-shadow: 0px 0px 35px 0px rgba(203, 210, 230, 0.5);
    -moz-box-shadow: 0px 0px 35px 0px rgba(203, 210, 230, 0.5);
    box-shadow: 0px 0px 35px 0px rgba(203, 210, 230, 0.5);
    transition: all 0.3s ease-out; /* Smooth transition for border color */
}

.casino-site-wrapper:hover {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

/* Casino Site Number */
.casino-site-number {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    box-shadow: 0 0 35px 0px rgba(203, 210, 230, 0.3);
}

.casino-site-number:before {
    content: '';
    position: absolute;
    display: block;
    top: 50%;
    left: 0;
    right: 0;
    margin-top: -10px;
    line-height: 20px;
    text-align: center;
    color: #000000;
    font-weight: 400;
    font-size: 20px;
}

.casino-site-wrapper:not(.casino-filtered-out) .casino-site-number:before {
    counter-increment: casino;
    content: counter(casino);
}

/* Casino Site Columns */
.casino-site-cols {
    display: flex;
    align-items: center;
    text-align: center;
}

.casino-site-col {
    width: 25%;
}

.casino-site-col:nth-child(2) {
    width: 30%;
}

.casino-site-col:nth-child(3) {
    width: 30%;
}

.casino-site-col:nth-child(4) {
    width: 15%;
}

.casino-site-col span {
    display: block;
    font-size: 16px;
    line-height: 1.4;
}

.casino-site-col span:first-child {
    /* color: #334155; */
    font-weight: 600;
}

.casino-site-col span:last-child {
    color: #334155;
}

.casino-site-col img {
    width: 160px;
    height: 40px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 10px;
}

.casino-site-col ul,
.casino-details ul {
    margin: 0 auto;
    padding: 0 0 0 15px;
    list-style: none;
    text-align: left;
    width: 100%;
}

.casino-site-col ul li,
.casino-details ul li {
    position: relative !important;
    margin: 0;
    padding: 5px 0 5px 26px !important;
    line-height: 1;
    font-size: 15px;
}

.casino-site-col ul li:before,
.casino-details ul li:before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    margin: -8px 0 0 0;
    width: 16px;
    height: 16px;
    background-image: url("../images/bullet-point.svg");
    background-size: 100%;
}

.casino-site-col ul li strong {
    font-weight: bold;
}

/* Clearfix */
.casino-site-cols:after,
.casino-feed-sort:after {
    clear: both;
    content: '';
    display: block;
}

/* Badge Container */
.badgecontainer {
    position: absolute;
    display: flex;
    text-align: center;
    left: 21px;
    top: -10px;
    z-index: 20;
}

@media (max-width: 767.98px) {
    .badgecontainer {
        left: unset;
        right: 20px;
    }
}

.badge {
    background: #2E8B57;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-block;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 1px 5px 0 rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.19);
    line-height: 21px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 5px;
}

.badge.addmargin {
    margin-right: 15px;
}

.badge.additional {
    background: #006400;
}

@media (max-width: 290px) {
    .badge {
        padding-left: 2px;
        padding-right: 2px;
        font-size: 9px;
    }
}

@media (max-width: 370px) {
    .badge {
        padding-left: 7px;
        padding-right: 7px;
    }
}

/* Button Styles */
.btn-casino {
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    padding: 5px 0;
    font-size: 17px;
    background: linear-gradient(90deg, #2E8B57 0%, #3D9970 100%);
    border-radius: 10px;
    line-height: 1.8;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    font-weight: bold;
    background-size: 300% 300%; /* Allows smooth animated transitions */
    animation: gradientShift 5s ease infinite; /* Animating the gradient */
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.btn-casino:hover {
    background: linear-gradient(90deg, #2E8B57, #3D9970, #66CDAA, #2E8B57);
    background-size: 400% 400%;
    transform: scale(1.03);
    animation: rotateBorder 3s linear infinite; /* Faster rotation */
    z-index: -1; /* Ensures the border appears behind the content */
}

/* Border animation keyframes */
@keyframes rotateBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Casino Feed Show More Button */
.casino-feed-show-more {
    display: block;
    color: #44ad7f;
    border: 1px solid #44ad7f;
    margin: 24px auto 0;
    font-size: 15px;
    line-height: 1;
    padding: 9px 12px;
    width: 140px;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.casino-feed-show-more:focus,
.casino-feed-show-more:hover {
    opacity: 0.8;
}

/* Hidden Casino Site */
.casino-site-hidden {
    display: none;
}

/* Star Styles */
.casino-stars {
    text-align: center;
    line-height: 1;
    color: #FFD700;
}

.casino-star,
.casino-star-half,
.casino-star-empty {
    background-repeat: no-repeat;
    background-size: 100% auto;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 1px;
}

.casino-star {
    background-image: url("../images/star.svg");
}

.casino-star-half {
    background-image: url("../images/half-star.svg");
}

.casino-star-empty {
    background-image: url("../images/empty-star.svg");
}

/* Adjust star sizes in specific sections if needed */
.casino-feed-in-content .casino-star,
.casino-feed-in-content .casino-star-half,
.casino-feed-in-content .casino-star-empty {
    width: 16px;
    height: 16px;
}

/* Casino Feed Sort Select */
.casino-feed-sort select {
    display: block;
    float: right;
    border: none;
    box-shadow: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: #444444;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    min-width: 180px;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, transparent 50%, #cccccc 50%),
        linear-gradient(135deg, #cccccc 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(1em + 2px),
        calc(100% - 15px) calc(1em + 2px),
        calc(100% - 2.5em) 0.5em;
    background-size:
        5px 5px,
        5px 5px,
        1px 1.5em;
    background-repeat: no-repeat;
    -webkit-box-shadow: 0px 0px 35px 0px rgba(203, 210, 230, 0.5) !important;
    -moz-box-shadow: 0px 0px 35px 0px rgba(203, 210, 230, 0.5) !important;
    box-shadow: 0px 0px 35px 0px rgba(203, 210, 230, 0.5) !important;
}

.casino-feed-sort select:focus {
    outline: none;
    box-shadow: none;
}

/* Casino Header Wrapper */
.casino-header-wrapper {
    padding: 30px 30px 0;
    position: relative;
}

.casino-header-container {
    margin: 0 auto;
    max-width: 1250px;
    padding: 0 40px 0;
    position: relative;
}

.casino-header-container > p {
    line-height: 24px;
}

.casino-header-container h1 {
    margin: 0 0 20px;
    font-size: 1.7rem;
    color: #2e3c56;
}

.casino-kortti-wrapper:after,
.casino-cloud:after {
    clear: both;
    content: '';
    display: block;
}

/* Featured Image */
.casino-featured-img {
    /* Styles if needed */
}

.casino-featured-img img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    object-position: top;
    border-radius: 60px 60px 0 0;
}

.casino-header-kortti .casino-header-container {
    padding-bottom: 0;
}

.casino-header-kortti .lainantarjoaja-wrapper {
    width: 64%;
    float: right;
}

.casino-arvostelu {
    display: block;
    margin: 24px 0 0;
    max-width: 50%;
    line-height: 1.5;
    font-style: italic;
    font-size: 18px;
    min-height: 54px;
}

#primary,
#secondary {
    margin-top: 2em;
}

/* Casino Cloud */
.casino-cloud {
    display: flex;
    flex-grow: 1;
    flex-wrap: wrap;
    margin: 0 -1%;
}

.casino-cloud-block {
    margin: 15px 1%;
    box-shadow: 0 0 20px #dedede;
    text-align: center;
    flex-grow: 1;
    max-width: 31.33%;
    padding: 18px 60px;
}

.casino-cloud-block p {
    margin: 0;
    font-weight: 700;
    line-height: 1;
}

.casino-cloud-block a {
    color: #3a3a3a;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.casino-cloud-block a:hover {
    opacity: 0.7;
}

.casino-cloud-block img {
    width: auto;
    height: 50px;
    width: 200px;
    margin-bottom: 7px;
    object-fit: contain;
}

.casino-cloud-block .casino-stars {
    padding-bottom: 9px;
}

.casino-header-container .entry-title {
    text-align: center;
    margin-bottom: 30px;
}

/* Casino Card Wrapper */
.casino-card-wrapper {
    background: #fff;
    border-radius: 60px;
    overflow: hidden;
}

.casino-card-content:after {
    clear: both;
    content: '';
    display: block;
}

.casino-card-content {
    padding: 30px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* Casino Logo Box */
.casino-logo-box {
    border-radius: 60px;
    box-shadow: 0 0 20px #ececec;
    width: 28%;
    padding: 60px 30px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    float: left;
}

.casino-logo-box .btn-casino {
    position: absolute;
    display: block;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    font-size: 17px;
}

.casino-logo-box img {
    max-width: 70%;
    margin-bottom: 15px;
}

/* Casino Header Card Star Styles */
.casino-header-card .casino-star,
.casino-header-card .casino-star-half,
.casino-header-card .casino-star-empty {
    background-repeat: no-repeat;
    background-size: 100% auto;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 1px;
}

.casino-header-card .casino-star {
    background-image: url('../images/star.svg');
}

.casino-header-card .casino-star-half {
    background-image: url('../images/half-star.svg');
}

.casino-header-card .casino-star-empty {
    background-image: url('../images/empty-star.svg');
}

/* Casino Details */
.casino-details {
    float: right;
    width: 66%;
    line-height: 1.5;
}

.casino-details p:last-child {
    margin: 0;
}

.casino-features {
    padding: 15px 0;
}

.casino-details ul {
    margin: 0;
}

/* Casino Info Columns */
.casino-info-cols {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: -15px;
}

.casino-info-col {
    width: 50%;
    margin-bottom: 15px;
    font-size: 16px;
}

.casino-info-col:nth-child(n+3) {
    text-align: left;
}

.casino-info-col span {
    display: block;
    line-height: 1.4;
}

.casino-info-col span:first-child {
    font-size: 16px;
    color: #717171;
    font-weight: 600;
}

.casino-info-col span:last-child:not(:first-child) {
    color: #212121;
}

/* Casino Card Bottom */
.casino-card-bottom {
    text-align: center;
    padding: 40px 40px 20px;
    display: flex;
    flex-wrap: wrap;
}

.casino-card-bottom h3,
.casino-card-game-selection h3 {
    font-weight: 500;
    color: #808285;
    font-size: 20px;
    margin: 0 0 10px;
    display: block;
}

.casino-card-bottom h4 {
    font-weight: 500;
    font-size: 16px;
    margin: 0 0 8px;
    color: #808285;
}

.casino-bottom-payment-methods,
.casino-bottom-licence {
    width: 25%;
}

.casino-bottom-ratings {
    width: 50%;
}

.casino-bottom-payment-methods img,
.casino-card-bottom img,
.casino-card-game-selection img {
    margin: 5px;
    width: 70px;
    height: 34px;
    object-fit: contain;
}

.casino-bottom-licence img {
    width: auto;
    height: 46px;
}

.casino-bottom-licence span {
    display: block;
}

.casino-bottom-rating-cols {
    display: flex;
    flex-wrap: wrap;
}

.casino-bottom-rating-cols > div {
    width: 33.33%;
}

/* Casino Card Game Selection */
.casino-card-game-selection {
    background: #fff;
    border-radius: 60px;
    margin: 30px 0;
    text-align: center;
    padding: 26px;
}

.casino-header-card + .site-content #primary {
    margin-top: 0;
}

/* Casino Feed in Content Adjustments */
.casino-feed-in-content .casino-site-col img {
    width: 140px;
    height: 30px;
}

.casino-feed-in-content .casino-site-col img.logo-portrait {
    height: 44px;
}

.casino-feed-in-content .casino-site-col:nth-child(1) {
    width: 15%;
}

.casino-feed-in-content .casino-site-col:nth-child(2) {
    width: 26%;
}

.casino-feed-in-content .casino-site-col:nth-child(3) {
    width: 35%;
}

.casino-feed-in-content .casino-site-col:nth-child(4) {
    width: 24%;
}

.casino-feed-in-content .casino-site-col span {
    font-size: 15px;
}

/* Comments Section */
#comments {
    text-align: center;
}

#comments .submit {
    border-radius: 40px;
    background: #727e98;
    padding: 10px 40px;
    margin-top: 20px;
}

.comment-reply-title {
    margin: 0 0 20px;
}

.comment-reply-title span {
    display: block;
    font-size: 18px;
}

/* Feed Terms and Conditions */
.feed-tc {
    font-size: 12px !important;
    font-style: italic;
    color: grey !important;
    margin-bottom: -10px !important;
    margin-top: 5px !important;
    display: block !important;
}

/* Remove After Content from List Items */
.casino-site-col ul li:after,
.casino-details ul li:after {
    content: none !important;
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 1030px) {
    .casino-slider {
        float: none;
        width: 100%;
    }

    .casino-slider:first-child {
        padding-bottom: 10px;
    }

    .casino-site-col:nth-child(5) {
        padding-left: 0;
    }

    .casino-header-wrapper {
        padding: 0;
        position: relative;
    }

    .casino-header-wrapper:before {
        display: none;
    }

    .casino-header-container {
        width: 100%;
        padding: 20px 20px 0;
    }

    .casino-featured-img {
        width: 100%;
        float: none;
    }

    .casino-kortti-wrapper {
        display: flex;
        flex-wrap: wrap;
    }

    .casino-featured-img {
        margin-bottom: 20px;
        order: 3;
    }

    .casino-header-kortti {
        padding-bottom: 30px;
    }

    .casino-featured-img img {
        width: 100%;
        height: auto;
    }

    .casino-cloud {
        margin: 0;
    }

    .casino-cloud .casino-stars {
        position: static;
        padding-top: 7px;
    }

    .casino-cloud-block {
        max-width: none;
    }

    .ast-right-sidebar #primary {
        margin-top: 0;
    }

    .casino-site-cols {
        display: block;
        position: relative;
        z-index: 20;
    }

    .casino-site-col,
    .casino-site-col:nth-child(2),
    .casino-site-col:nth-child(3),
    .casino-site-col:nth-child(4),
    .casino-feed-in-content .casino-site-col:nth-child(1),
    .casino-feed-in-content .casino-site-col:nth-child(2),
    .casino-feed-in-content .casino-site-col:nth-child(3),
    .casino-feed-in-content .casino-site-col:nth-child(4),
    .casino-feed-in-content .casino-site-col:nth-child(5) {
        width: 100%;
        margin-bottom: 15px;
    }

    .casino-site-col:last-child {
        margin-bottom: 0;
    }

    .casino-site-number {
        bottom: auto;
        height: 60px;
        box-shadow: none;
    }

    .casino-site-number:before {
        left: 18px;
        color: #fff;
        background: #FFA500;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        padding: 4px 0;
        font-size: 18px;
    }

    .casino-site-wrapper {
        padding: 20px;
        border: none;
        border-radius: 20px;
    }

    .casino-site-col span:first-child,
    .casino-site-col span:last-child {
        /* color: #004085; */ /* Corrected color syntax */
    }

    .casino-site-col:last-child {
        margin-bottom: 0; /* Changed from 'none' to '0' */
        padding: 2px 12px;
    }

    .casino-site-col img {
        background: #fff;
        border-radius: 23px;
        padding: 8px;
        width: 160px;
        height: 46px;
    }

    .casino-feed-in-content .casino-site-col img {
        width: 160px;
        height: 46px;
    }

    .casino-feed-in-content .casino-site-col img.logo-portrait {
        height: 64px;
    }

    .casino-logo-box,
    .casino-details {
        float: none;
        width: 100%;
    }

    .casino-logo-box {
        margin-bottom: 20px;
        padding-top: 40px;
    }

    .casino-bottom-payment-methods,
    .casino-bottom-licence {
        margin-bottom: 15px;
    }

    .casino-bottom-payment-methods,
    .casino-bottom-licence,
    .casino-bottom-ratings {
        width: 100%;
    }

    .casino-bottom-rating-cols > div {
        width: 100%;
    }
}

/* Expanded Info Section Styles */
.casino-info {
    max-height: 0;
    opacity: 0;
    padding: 0 24px; /* Adjusted padding for transition */
    border-radius: 20px 0 0 20px;
    margin-top: -5px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    transition: 
        max-height 0.3s linear, /* Smooth expand/collapse */
        opacity 0.2s linear, /* Gradual fade-in/out */
        padding 0.2s linear; /* Consistent padding adjustment */
}

/* Divider between default and expanded parts */
.casino-info {
    position: relative;
}

.casino-info::before {
    opacity: 50%;
    content: '';
    display: block;
    width: 100%; /* Shorter than the full width for visual appeal */
    margin-top: 0 auto; /* Center the divider */
    margin-bottom: 10px;
    height: 1px;
    background: linear-gradient(90deg, #ccc, #ddd); /* Add a gradient */
    border-radius: 10px; /* Rounded corners for the divider */
}

.casino-info.open {
    max-height: 1000px; /* Adjust based on your content's height */
    opacity: 1;
    padding: 24px;
}

.casino-info .info-icon-check {
    display: block;
    margin-top: 6px;
    width: 16px;
    height: 16px;
    background-size: 100%;
    background-image: url("../images/check-yes.svg");
}

.casino-info .info-icon-check.info-icon-no {
    background-image: url("../images/check-no.svg");
}

.casino-info .info-cols {
    display: flex;
    justify-content: space-between;
    align-content: flex-start;
    gap: 30px;
}

.casino-info .info-cols .info-col {
    width: 33.33%;
    
}

.casino-info .info-cols .info-col .info-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    display: block;
    color: #0C1406;
    padding: 2px 0 2px 50px;
    background-repeat: no-repeat;
    background-size: auto 32px;
    background-position: left center;
    line-height: 36px;
    background-image: url("../images/gift.svg");
}

.casino-info .info-cols .info-col .info-title.info-title-general {
    background-image: url("../images/info.svg");
}

.casino-info .info-cols .info-col .info-title.info-title-game {
    background-image: url("../images/payment-info.svg");
}


.casino-info .info-cols .info-col .info-title.info-title-info {
    background-image: url("../images/info.svg");
}

.casino-info .info-cols .info-col .info-list > div {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.casino-info .info-cols .info-col .info-list > div:not(:last-child) {
    border-bottom: 1px dashed #2e8c57;
}

.casino-info .facts-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.casino-info .facts-bottom > div:last-child {
    display: flex;
    align-items: center;
    gap: 20px;
}

.casino-info .facts-bottom > div:last-child .btn-review {
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .casino-info .info-cols {
        flex-wrap: wrap;
    }

    .casino-info .info-cols .info-col {
        width: 100%;
    }

    .casino-info .facts-bottom {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

/* Remove the existing chevron styles */
/*
.casino-more-info-toggle .chevron-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 5px; /* Space between button text and chevron */


/* Base styles for the toggle link */
.casino-more-info-toggle {
    position: relative; /* To position the pseudo-element correctly */
    background: none; /* Remove default link styles if necessary */
    border: none;
    cursor: pointer;
    padding: 10px 15px; /* Adjust padding as needed */
    font-size: 16px; /* Adjust font size as needed */
    color: #333; /* Adjust text color as needed */
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Optional: Smooth color transition on hover */
}

/* Remove the existing ::after chevron to prevent duplication */
.casino-more-info-toggle::after {
    content: none;
}

/* Create the chevron using ::before pseudo-element */
.casino-more-info-toggle::before {
    content: '';
    display: inline-block;
    width: 10px; /* Width of the chevron */
    height: 10px; /* Height of the chevron */
    border-right: 2px solid #515962;
    border-bottom: 2px solid #515962;
    transform: rotate(45deg); /* Down chevron */
    transition: transform 0.3s ease; /* Smooth rotation transition */
    margin-right: 8px; /* Space between chevron and button text */
    vertical-align: middle; /* Align with button text */
}

/* Rotate the chevron when aria-expanded is true */
.casino-more-info-toggle[aria-expanded="true"]::before {
    transform: rotate(-135deg); /* Up chevron */
}

/* Optional: Hover effects for better user experience */
.casino-more-info-toggle:hover {
    color: #515962; /* Change text color on hover */
}

a.casino-more-info-toggle:focus {
    outline: none; /* Remove default outline */
    color: #333;
}