.packagesGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
    padding-right: 8px;
}

.packagesCard {
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.packagesGrid h3 {
    font-size: 18px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: center;
    color: #e6e6e6;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 24px;
    margin-bottom: 0;
    min-height: 59px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0px 0px;
}

.packagesCardInnerDiv {
    padding: 30px 24px;
}

.packagesCardLeftContainer {
    width: calc(100% - 125px);
}

.packagesGrid h2 {
    font-size: 20px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.35;
    letter-spacing: normal;
    text-align: center;
    color: #e6e6e6;
    margin-bottom: 10px;
}

.packagesGrid p {
    font-size: 16px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.38;
    letter-spacing: normal;
    text-align: center;
    color: #b3b3b3;
    margin-bottom: 0;
}

.packagesGrid p:hover {
    cursor: pointer;
    color: #009fd9;
}


.packagesGrid .addToCartBtn {
    border-radius: 4px;
    background-color: #333;
    font-size: 14px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: #ccc;
    padding: 8px 8px;
    margin-bottom: 4px;
    height: 40px;
    width: 100%;
}

.packagesGrid .removePackageBtn {
    border-radius: 4px;
    border: solid 1px #bf4d4c;
    font-size: 14px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: #bf4d4c;
    padding: 8px 8px;
    margin-bottom: 4px;
    height: 40px;
    width: 100%;
}

.packagesGrid .viewDetailsBtn {
    background-color: transparent;
    font-size: 13px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: #ccc;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    width: 125px;
}

.packagesCard:hover .viewDetailsBtn,
.packagesCard:hover .viewDetailsBtn svg path{
    box-shadow: none;
    color: #009fd9;
    fill: #009fd9;
}
.packagesCard:hover{
    box-shadow: 0 0 10px 0 rgba(0, 186, 255, 0.23);
}
.packagesCard .viewDetailsBtn svg{
margin-left:5px;
}
.packagesGrid .addToCartBtn:hover {
    background-color: #009fd9;
    color: #e6e6e6;
}

.packagesGrid .removePackageBtn:hover {
    background-color: #bf4d4c;
    color: #fff;
}

#detailsModal .modal-content {
    background-color: #1b2226;
}

#detailsModal .modal-header,
#detailsModalOne .modal-header {
    margin: 16px 24px;
    padding: 0px;
    padding-bottom: 15.5px;
    border-bottom: 1px solid #707070;
}

#detailsModal .modal-header h5 {
    font-size: 20px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: normal;
    text-align: left;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#detailsModal .btn-close {
    filter: invert(1);
    opacity: 1;
}

#detailsModal .modal-body {
    border-bottom: none;
    max-height: calc(100vh - 225px);
    overflow-y: auto;
    height: 100%;
    /* min-height: calc(100vh - 225px); */
    padding: 24px;
    margin: 0;
    min-height:320px;
}

.availabilitypills {
    right: 32px;
    z-index: 1;
    background-color: #363636;
    border-radius: 3px;
}

.availabilitypills .nav-item .nav-link.active {
    border-radius: 3px;
    background-color: #41a1e8 !important;
    color: #fff;
    height: 40px;
}

.availabilitypills svg {
    fill: #929292;
}

.searchChannels {
    width: clamp(160px, 30vw, 250px);
    background-color: rgba(255, 255, 255, 0.05);
    border: solid 1px rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
    height: 40px;
    color: #b3b3b3;
    font-size: 16px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: left;
    border-radius: 5px;
}

#detailsModal .modal-footer h2,
#detailsModal .modal-footer .price {
    font-size: 20px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: normal;
    text-align: left;
    color: #fff;
}

#detailsModal .modal-footer h2 span {
    font-size: 16px;
}

#detailsModal .modal-footer h2 span {
    font-size: 16px;
}

.modalChannelsGrid {
    position: relative;
}

#detailsModal .modal-body .modalChannelsGrid {
    display: grid;
    gap: 35px;

}

#detailsModal .modal-dialog.modal-md .modal-body .modalChannelsGrid {
    grid-template-columns: repeat(4, 1fr);
}

.modalChannelCard .cardContainer,
.modalChannelsGrid .gridContainer {
    position: relative;
}

#detailsModal .modal-body .modalChannelsGrid img {
    border-radius: 6px;
    width: 100%;
}

#detailsModal .modal-body .modalChannelsGrid span {
    line-height: 1.26;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

#detailsModal .modal-footer {
    border-radius: 8px;
    background-color: #272d31;
    display: flex;
    align-items: center;
    justify-content: start;
    border-top: none;
    padding: 16px 16px 15.5px 24px;
}

.channelCount,
.channel-count {
    font-size: 14px;
    color: #fff;
}

.searchChannels::placeholder {
    color: #b3b3b3;
}

.searchChannels[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white'><path d='M12.348 3.652a.5.5 0 0 0-.707 0L8 7.293 4.36 3.652a.5.5 0 1 0-.707.707L7.293 8l-3.64 3.64a.5.5 0 0 0 .707.707L8 8.707l3.64 3.64a.5.5 0 0 0 .707-.707L8.707 8l3.64-3.64a.5.5 0 0 0 0-.708z'/></svg>") no-repeat center;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.availabilitypills .nav-item .nav-link.active {
    border-radius: 3px;
    background-color: #41a1e8 !important;
    color: #fff;
    height: 40px;
}

.availabilitypills button {
    width: 40px;
    display: flex;
    justify-content: center;
    background-color: transparent !important;
    padding: 0 !important;
    height: 40px;
    align-items: center;
}

.availabilitypills .nav-item .nav-link.active svg {
    fill: #fff;
}

.availabilitypills svg {
    fill: #929292;
}

.searchChannels:focus {
    box-shadow: none !important;
    background-color: rgba(255, 255, 255, 0.05);
    border: solid 1px rgba(255, 255, 255, 0.05);
    color: #b3b3b3;
}

#detailsModal .modal-dialog.modal-xl .modal-body .modalChannelsGrid {
    grid-template-columns: repeat(10, 1fr);
}
#detailsModal .modal-dialog.modal-md .modal-body .modalChannelsGrid {
    grid-template-columns: repeat(4, 1fr);
}
#detailsModal .modal-dialog.modal-lg .modal-body .modalChannelsGrid {
    grid-template-columns: repeat(8, 1fr);
}

.modalChannelCard .cardContainer,
.modalChannelsGrid .gridContainer {
    position: relative;
}

#detailsModal .modal-body .modalChannelsGrid img {
    border-radius: 6px;
    width: 100%;
}

#detailsModal .modal-body .modalChannelsGrid span {
    line-height: 1.26;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    letter-spacing: normal;
    text-align: center;
    color: #fff;
    margin-top: 8px;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

.modalChannelCard {
    display: grid;
    gap: 15px;
}

.modalChannelCard .cardContainer {
    display: flex;
    align-items: center;
    border: 1px solid #262B2E;
    position: relative;
    padding: 6px;
    border-radius: 5px;
}

.modalChannelCard img {
    display: inline-flex;
    width: 60px;
    background-position: center;
    background-size: contain;
    height: 60px;
    background-repeat: no-repeat;
    object-fit: contain;
}

.modalChannelCard .channelContent {
    padding: 10px;
    display: inline-flex;
    flex-direction: column;
    width: calc(100% - 60px);
    height: calc(60px - 0px);
    transition: all 0.3s ease-in;
    justify-content: center;
}
.modalChannelCard .channelContent h3 {
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.26;
    letter-spacing: normal;
    text-align: left;
    color: #fff;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
#detailsModal .modal-dialog.modal-xl .modal-body .modalChannelCard {
    grid-template-columns: repeat(4, 1fr);
}

#detailsModal .modal-dialog.modal-md .modal-body .modalChannelCard {
    grid-template-columns: repeat(2, 1fr);
}
#detailsModal .modal-dialog.modal-lg .modal-body .modalChannelCard {
    grid-template-columns: repeat(3, 1fr);
}


.modalChannelCard .cardContainer ,
.modalChannelsGrid .gridContainer {
  position: relative;
}

/* Tooltip styling */
.modalChannelCard .cardContainer[data-tooltip]::after,
.modalChannelsGrid .gridContainer[data-tooltip]::after {
  content: attr(data-tooltip); /* Use custom attribute for tooltip text */
  position: absolute;
  bottom: 110%; /* show above element */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  font-size: 14px;
  z-index: 1000;
  width: calc(100% + 30px);
  font-size: 12px;
  word-break: break-word;
  text-align: center;
}


/* Show on hover */
.modalChannelCard .cardContainer:hover::after,
.modalChannelCard .cardContainer:hover::before ,
.modalChannelsGrid .gridContainer:hover::after,
.modalChannelsGrid .gridContainer:hover::before{
  opacity: 1;
}
.pkgLoader, .channelCardPkgLoader, .noChannelsAvailable, .modalChannelCard .no-data, .modalChannelsGrid .no-data {
    font-size: 16px;
    text-align: center;
    color: #b3b3b3;
}

@media screen and (max-width: 1199.98px) {
    .packagesGrid {
        grid-template-columns: repeat(3, 1fr);
    }
    #detailsModal .modal-dialog.modal-xl .modal-body .modalChannelsGrid {
        grid-template-columns: repeat(8, 1fr);
    }
  
        #detailsModal .modal-dialog.modal-xl .modal-body .modalChannelCard {
            grid-template-columns: repeat(3, 1fr) !important;
        }
       .packagesGrid .packagesCard:nth-child(8), .packagesGrid .packagesCard:nth-child(7) {
        display: none;
    }
    .hero-section {
        height: 500px;
    }
}
@media screen and (max-width: 991.98px) {
    .hero-section {
        height: 400px;
    }
     .packagesGrid {
        grid-template-columns: repeat(2, 1fr);
    }
    #detailsModal .modal-dialog.modal-xl .modal-body .modalChannelsGrid {
        grid-template-columns: repeat(6, 1fr);
    }
    #detailsModal .modal-dialog.modal-xl .modal-body .modalChannelCard {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    #detailsModal .modal-dialog.modal-lg .modal-body .modalChannelsGrid {
        grid-template-columns: repeat(6, 1fr);
    }
    #detailsModal .modal-dialog.modal-lg .modal-body .modalChannelCard {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .packagesGrid .packagesCard:nth-child(8), .packagesGrid .packagesCard:nth-child(7), .packagesGrid .packagesCard:nth-child(6), .packagesGrid .packagesCard:nth-child(5) {
        display: none;
    }
}

@media(max-width:767.98px) {
    .pricing-section .container {
        max-width: 100%;
    }
    #detailsModal .modal-dialog.modal-xl .modal-body .modalChannelsGrid {
        grid-template-columns: repeat(4, 1fr);
    }
    #detailsModal .modal-dialog.modal-xl .modal-body .modalChannelCard {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    #detailsModal .modal-dialog.modal-lg .modal-body .modalChannelsGrid {
        grid-template-columns: repeat(4, 1fr);
    }
    .packagesGrid .packagesCard:nth-child(8), .packagesGrid .packagesCard:nth-child(7), .packagesGrid .packagesCard:nth-child(6), .packagesGrid .packagesCard:nth-child(5), .packagesGrid .packagesCard:nth-child(4), .packagesGrid .packagesCard:nth-child(3) {
        display: none;
    }
}

@media screen and (max-width: 575px) {
    .packagesGrid {
        grid-template-columns: repeat(1, 1fr);
    }

    .packagesGrid .packagesCard:nth-child(8), .packagesGrid .packagesCard:nth-child(7), .packagesGrid .packagesCard:nth-child(6), .packagesGrid .packagesCard:nth-child(5), .packagesGrid .packagesCard:nth-child(4), .packagesGrid .packagesCard:nth-child(3) {
        display: none;
    }
    #detailsModal .modal-dialog.modal-xl .modal-body .modalChannelsGrid {
        grid-template-columns: repeat(3, 1fr);
    }
    #detailsModal .modal-dialog.modal-md .modal-body .modalChannelsGrid {
        grid-template-columns: repeat(3, 1fr);
    }
    #detailsModal .modal-dialog.modal-xl .modal-body .modalChannelCard {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    #detailsModal .modal-dialog.modal-md .modal-body .modalChannelCard {
        grid-template-columns: repeat(1, 1fr);
    }
    #detailsModal .modal-dialog.modal-lg .modal-body .modalChannelsGrid {
        grid-template-columns: repeat(3, 1fr);
    }
    #detailsModal .modal-dialog.modal-lg .modal-body .modalChannelCard {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}