/* Footer Styles */
.layout-fullview__footer-wrapper {
    background-color: #000; /* Pure black background */
    color: #a6acb2;
    font-family: 'Poppins', sans-serif;
    padding: 40px 0 80px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-fullview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Links Section */
.footer-links {
    margin-bottom: 40px;
}

.footer-links__ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-item__head {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links-item__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-item-content__item {
    color: #a6acb2;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-links-item-content__item:hover {
    color: #fff;
}

.link-item__icon {
    width: 14px;
    height: 14px;
    background-color: currentColor; /* Matches text color */
    display: inline-block;
    vertical-align: middle;
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    /* Ensure mask image is set inline or via specific class */
}

/* Sponsorships & Ambassadors */
.ambassador-lists {
    margin-bottom: 32px;
    /* Removed duplicate top border for mobile flow, handled by margin */
    border-top: 1px solid #303232; 
    padding-top: 24px;
}

@media (max-width: 768px) {
    /* Target the first ambassador-lists (Sponsorships) specifically */
    .footer-links + .ambassador-lists {
        border-top: 1px solid #303232; /* Single divider line above Sponsorships */
        padding-top: 24px;
        margin-top: 0;
    }
    
    /* Reduce the gap between Help (footer-collapses__ul) and Sponsorships */
    .footer-collapses__ul {
        margin-bottom: 24px; /* Reduced from 32px */
    }
}

.ambassador-lists__title {
    color: #00e998; /* Green title */
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.ambassador-lists__wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.ambassador-lists__item a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.ambassador-lists__item .item__icon img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.ambassador-lists__item .item__content .txt {
    color: #fff;
    font-weight: 500;
}

.ambassador-lists__item .item__content .sub-txt {
    font-size: 12px;
    color: #6e7479;
}

/* Icon Lists (Partners, License, Responsible) */
.footer-fullview__row-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 32px;
    border-top: 1px solid #303232; /* Lighter border for visibility */
    padding-top: 24px;
}

.icon-lists {
    flex: 1;
}

.icon-lists__title, .gaming-license__title {
    color: #00e998;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.icon-lists__wrap, .gaming-license__wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.icon-lists__item img, .gaming-license__item img {
    height: 32px;
    width: auto;
}

/* Social Media */
.social-media-list {
    margin-bottom: 32px;
    border-top: 1px solid #303232;
    padding-top: 24px;
}

.social-media-list__wrap {
    display: flex;
    gap: 12px;
}

.social-media-list__item img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.social-media-list__item:hover img {
    transform: translateY(-2px);
}

/* Description & Show More */
.footer-fullview-description {
    margin-bottom: 32px;
    border-top: 1px solid #303232;
    padding-top: 24px;
}

.footer-fullview-description__title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
}

.showmore {
    position: relative;
}

.collapse-alpha {
    overflow: hidden;
    transition: height 0.3s ease;
}

.collapse-alpha__inner {
    height: 100px; /* Default collapsed height */
    overflow: hidden;
    position: relative;
    transition: height 0.5s ease-in-out;
}

.showmore--expanded .collapse-alpha__inner {
    /* Height will be handled by JS for smooth animation */
}

/* Global Button Loader (Triple Dot) - Same as header */
.btn-loading {
    color: transparent !important;
    position: relative;
    pointer-events: none;
}
.btn-loading::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-top: -3px;
    margin-left: -18px; /* Offset to center the group */
    background-color: #fff;
    box-shadow: 12px 0 0 rgba(255,255,255,0.2), 24px 0 0 rgba(255,255,255,0.2);
    animation: dots-pulse 1.4s infinite ease-in-out both;
}
@keyframes dots-pulse {
    0%, 80%, 100% {
      background-color: #fff;
      box-shadow: 12px 0 0 rgba(255,255,255,0.2), 24px 0 0 rgba(255,255,255,0.2);
    }
    40% {
      background-color: rgba(255,255,255,0.2);
      box-shadow: 12px 0 0 #fff, 24px 0 0 rgba(255,255,255,0.2);
    }
    50% {
      background-color: rgba(255,255,255,0.2);
      box-shadow: 12px 0 0 rgba(255,255,255,0.2), 24px 0 0 #fff;
    }
}

.showmore-control__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #303232;
    color: #e2e6e9; /* Updated text color */
    font-weight: 500;
    width: 108px;
    height: 40px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s, box-shadow 0.3s;
    /* Removed padding as we use fixed width/height with flex centering */
}

.showmore-control__btn:hover {
    background: #232525; /* Slightly darker shade of #303232 */
    box-shadow: none;
}

.showmore-control {
    text-align: center;
    margin-top: 16px;
    cursor: pointer;
}

.showmore-control__mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Increased height for better fade */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 100%); /* Fade to pure black */
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.showmore--expanded .showmore-control__mask {
    opacity: 0;
    /* Do not use display: none to allow transition */
}

/* Brand & License */
.footer-fullview__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-top: 1px solid #303232;
    padding-top: 24px;
}

.footer-fullview__license {
    border-top: 1px solid #303232;
    padding-top: 24px;
}

.brand__logo {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.brand__subtitle {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
}

.brand__txt {
    font-size: 12px;
}

.license__content {
    font-size: 12px;
    color: #6e7479;
}

.license__content a {
    color: #fff;
    text-decoration: none;
}

/* Mobile Collapsible Footer */
.mobile-only { display: none; }
.desktop-only { display: block; }

.footer-collapses__ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-collapses__li {
    border-bottom: none; /* Removed bottom border */
}

.footer-collapses__li:first-child {
    border-top: none; /* Removed top border */
}

/* Add a specific divider below the Help section (last item) */
.footer-collapses__ul {
    border-bottom: 1px solid #303232;
    margin-bottom: 32px; /* Space between Help and Sponsorships */
}

.footer-collapses-item__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    color: #a6acb2;
    font-weight: 500;
}

.footer-collapses-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 0;
}

.footer-collapses-item__content .footer-links-item-content__item {
    padding: 8px 0;
}

.collapse-arrow {
    width: 24px;
    height: 24px;
    background-color: #a6acb2;
    mask-image: url('https://img.b112j.com/bj/h5/assets/v3/images/icon-set/utility-type/arrow-down.svg?v=1772686523703');
    -webkit-mask-image: url('https://img.b112j.com/bj/h5/assets/v3/images/icon-set/utility-type/arrow-down.svg?v=1772686523703');
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    transition: transform 0.3s;
}

.footer-collapses-item.expanded .collapse-arrow {
    transform: rotate(-180deg);
}

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }
    
    .footer-links__ul {
        display: none; /* Hide grid layout on mobile */
    }
    
    .footer-fullview__row-wrap {
        flex-direction: column;
        gap: 24px;
    }
    
    .ambassador-lists__wrap, .icon-lists__wrap {
        justify-content: flex-start;
    }
}
