.ad-container {
  display: none;             /* keep it flex always, but hidden initially */
}

.promoted-wrapper {
    display: flex;
    gap: 5px;
}

.promoted-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    border-radius: 8px;
    cursor: pointer;
}

.promoted-action.navigate-prev-btn{
  margin-right: 2px;
}

.promoted-action.navigate-next-btn{
  margin-left: 2px;
}

#promoted-container {
    display: flex;
    position: relative;
    flex: 1;
    width: 300px !important;
}

.promoted-item {
    display: flex;
    width: 100%;
}


.hideElement {
    display: none;
}




.promoted-btns {
    display: flex;
    align-items: center;
}

.promoted-btns a{
  text-decoration: none !important;
}

.promoted-icon {
    width: 19px;
    height: 19px;
    background-size: 11px;
}

.promoted-prev {
    background: url(/img/pt/prev_grey.svg) no-repeat center;
}

.promoted-next {
    background: url(/img/pt/next_grey.svg) no-repeat center;
}




        .footer-ads-container {
            width: 100%;
            gap: 1.5rem;
            border: 1px solid #746E6E;
            border-radius: 10px;
        }

       

        .ext-ad-item {
            padding: 4px; /* p-6 */
            display: flex;
            align-items: center; /* items-center */
            gap: 5px; /* space-x-4 (converted to gap) */
        }

        .ext-ad-item .image-placeholder {
            flex-shrink: 0; 
            width: 3rem; 
            height: 3rem; 
            border-radius: 9999px; 
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff; 
            font-size: 1.25rem;
            font-weight: 700; 
        }

        .ext-ad-item .image-placeholder img {
            border-radius: 0px; /* rounded-full */
            object-fit: cover; /* object-cover */
            width: 100%;
            height: 100%;
        }

        .ext-ad-item .ad-content {
            flex-grow: 1; /* flex-grow */
             overflow: hidden; /* Important for scroll-container */
            min-width: 0; /* Allows the flex item to shrink below its content size */
        }

        .ext-ad-item .ad-content h3 {
            font-weight: 600; /* font-semibold */
            font-size: 0.875rem; /* text-sm */
            margin-bottom: 0.25rem; /* mb-1 */
            color: #1E1D21; /* text-blue-700 */
         
            float: left;
            
        }

        .ext-ad-item .ad-content p {
            color:#1E1D21; /* text-gray-800 */
            font-size: 0.9rem; /* text-base */
            font-weight: 400; /* font-medium */
            line-height: 1.25; /* leading-tight */
        }

          /* CSS for Scrolling Text (Updated from user's provided CSS) */
        .scroll-container {
            display: inline-block;
            position: relative;
            max-width: 97%;
            overflow: hidden;
            vertical-align: middle;
            text-decoration: none;
            height: 2rem; /* Retained from previous for fixed height */
        }

        .scroll-text {
            display: inline-block;
            white-space: nowrap;
            padding-left: 100%;
            animation: scroll-left 25s linear infinite; /* Animation duration from user's provided CSS */
            color: inherit; /* Inherit color from parent */
            font-weight: inherit; /* Inherit font-weight from parent */
            font-size: inherit; /* Inherit font-size from parent */
        }
          /* Keyframe animation for horizontal scrolling */
        @keyframes scroll-left {
            0% {
                transform: translateX(0%);
            }
            100% {
                transform: translateX(-100%);
            }
        }

        .ext-ad-item .register-button {
           
            background-color: #2563eb; /* bg-blue-600 */
            color: #ffffff; /* text-white */
            font-weight: 500; /* font-medium */
            border-radius: 0.4rem; /* rounded-lg */
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* shadow-md */
            transition: background-color 200ms ease-in-out; /* transition duration-200 ease-in-out */
            border: none; /* Remove default button border */
            cursor: pointer; /* Indicate it's clickable */
            font-size: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3px 7px 3px 7px;
        }


       .ext-ad-item .register-button img {
         
            background: black;
            border-radius: 40px;
            margin-left: 5px;
            padding: 2px 2px 2px 2px;
            height: 17px;
            width: 17px;
        }

        .ext-ad-item .register-button:hover {
            background-color: #1d4ed8; /* hover:bg-blue-700 */
        }

        /* Specific colors for different ad types (optional, based on your Figma) */
        .ad-item-1 .image-placeholder { background-color: #f97316; } /* bg-orange-500 */
        .ad-item-1 .ad-content h3 { color: #1d4ed8; } /* text-blue-700 */

        .ad-item-2 .image-placeholder { background-color: #22c55e; } /* bg-green-500 */
        .ad-item-2 .ad-content h3 { color: #8b5cf6; } /* text-purple-700 */

        .ad-item-3 .image-placeholder { background-color: #ef4444; } /* bg-red-500 */
        .ad-item-3 .ad-content h3 { color: #0d9488; } /* text-teal-700 */

        .image-placeholder img{
            width: 64px;
            width: 64px;
        }


    
.ad-container {
    position: relative;
    /* width: 100%; */
    margin-bottom: 5px;
}

/* Hide navigation buttons initially */
.ad-container .promoted-action {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Position previous and next buttons */
.ad-container .navigate-prev-btn {
    left: 0px;
}
.ad-container .navigate-next-btn {
    right: 0px;
}

/* Show buttons on hover */
.ad-container:hover .promoted-action {
    display: flex;
}

/* Footer container default width */

.ad-container .footer-ads-container  {
    margin-left: 1px;
    margin-right: 1px;
    width: calc(100% - 2px);
}

.ad-container .footer-ads-container {
    width: calc(100% - 2px);
    margin-left: 1px;
        transition: width 0.3s ease, margin-left 0.3s ease;
}

/* Reduce width to 80% on hover */
.ad-container:hover .footer-ads-container {
    width: 85%;
    margin-left: 26px;
}

/* Styles for the modal overlay */
#upgrade-popup {
    /* Position fixed to cover the entire viewport */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Semi-transparent black background for the overlay */
    background-color: rgba(0, 0, 0, 0.7);
    /* Flexbox to center the modal content */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ensure it's on top of other content */
    z-index: 1000;
    /* Initially hidden, can be shown with JavaScript */
    /* display: none; */
}

/* Styles for the modal content box */
.upgrade__popup__content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px; /* Rounded corners for a modern look */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    max-width: 500px; /* Limit content width */
    width: 90%; /* Responsive width */
    text-align: center;
    font-family: 'Inter', sans-serif; /* Using Inter font */
    color: #333;
}

/* Styles for the message text */
.upgrade__popup__message {
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 10px;
    color: #555;
}

/* Styles for the button container */
.upgrade__popup__btns {
    display: flex;
    justify-content: center; /* Center the buttons */
    gap: 15px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Styles for the common button appearance */
.upgrade__popup__btn {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 8px; /* Rounded corners for buttons */
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.upgrade__confirm {
    background-color: #ffe0a6;
    color: black;
    text-decoration: none;
    font-size: 15px;
}

.upgrade__confirm:hover {
    color: #ffe0a6;
    background-color: black;
    text-decoration: none;
     font-size: 15px;
}

.upgrade__cancel {
    background-color: #cfcfcf;
    color: black;
    text-decoration: none;
     font-size: 15px;
}

.upgrade__cancel:hover {
    color: #ffe0a6;
    background-color: black;
    text-decoration: none;
     font-size: 15px;
}



.keep_actions_container {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 5px;
}



span.keep-ads-btn {
     cursor: pointer;
    color: white;
    padding: 4px 10px 3px 10px;
    border-radius: 28px;
    font-size: 13px;
    font-weight: 500;
    text-align: center !important;
    vertical-align: -webkit-baseline-middle;
    margin: 0 !important;
    background-color: grey;

    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

span.keep-ads-btn:hover{
     background:black;
     color: red;
}

span.keep-ads-link {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    width: fit-content;
    background: blue;
    color: white;
    cursor: pointer;
    padding: 4px 10px 3px 10px;
    border-radius: 28px;
    font-size: 13px;
    font-weight: 500;
    text-align: center !important;
    vertical-align: -webkit-baseline-middle;
    margin: 0 !important;
}

.hideElement{
    display: none !important;
}


.hidden {
    display: none !important;
}