    :root {
        --primary-color: #4361ee;
        --accent-color: #00ff88;
        --white: #ffffff;
        --dark-overlay: rgba(0, 0, 0, 0.7);  /* Changed from 0.9 */
        --glass-bg: rgba(255, 255, 255, 0.1); /* Modified */
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Inter', sans-serif;
    }


    #ads {
        position: relative;
        display: grid;
        gap: 2rem;
        padding: 4rem 1rem;
        background: url('../assets/images/ads/background1.jpg') no-repeat center center/cover fixed;
        border-bottom: 5px solid var(--primary-color);
    }

    #ads::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--dark-overlay);
        z-index: 1;
    }

    .ad-container {
        position: relative;
        z-index: 2;
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
        background: var(--glass-bg);
        border-radius: 20px;
        backdrop-filter: blur(8px); /* Reduced from 12px */
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .ad-container:hover {
        transform: translateY(-5px);
    }

    .course-badges {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .badge {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: rgba(0, 255, 136, 0.1);
        border-radius: 30px;
        border: 1px solid var(--accent-color);
        font-size: 0.9rem;
        color: #fff;
    }

    .badge i {
        color: var(--accent-color);
    }

    .ad-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
    }

    .ad-content img {
        width: 100%;
        height: auto; /* Changed from fixed height */
        object-fit: contain; /* Changed from cover */
        border-radius: 12px;
        margin: 1rem 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .course-info {
        text-align: center;
    }

    .course-highlights {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }

    .highlight-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .button-78 {
        width: 100%;
        max-width: 300px;
        margin-top: 1.5rem;
        position: relative;
        overflow: hidden;
    }

    .button-78:before {
        border-radius: 50px;
    }

    .button-78 span {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
    }

    @media (min-width: 768px) {
        .ad-container {
            padding: 3rem;
        }

        .ad-content {
            grid-template-columns: 1fr 1fr;
        }

        .course-info {
            text-align: left;
        }

        .course-badges {
            justify-content: flex-start;
        }

        .button-78 {
            margin-top: 2rem;
        }
    }

    /* New Price Tag Styling */
    .price-tag {
        position: absolute;
        top: -15px;
        right: -15px;
        background: var(--accent-color);
        color: #000;
        padding: 0.8rem 1.5rem;
        border-radius: 30px;
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    }

    /* Rating Stars */
    .rating {
        display: flex;
        gap: 0.3rem;
        justify-content: center;
        margin: 1rem 0;
    }

    .rating i {
        color: #ffd700;
        font-size: 1.2rem;
    }

    /* Enrollment Counter */
    .enrollment {
        display: inline-block;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }


        /* New image container for better control */
    .image-container {
        position: relative;
        overflow: visible;
        max-width: 600px;
        margin: 0 auto;
        transition: transform 0.3s ease;
    }

    /* Enhanced contrast for text */
    .course-info {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Brighter highlights */
    .highlight-item {
        background: rgba(255, 255, 255, 0.03);
    }

    /* Better badge visibility */
    .badge {
        background: rgba(0, 255, 136, 0.15);
        border: 1px solid rgba(0, 255, 136, 0.3);
    }

    @media (min-width: 768px) {
        .ad-content img {
            max-height: 400px;
            width: auto;
        }
        
        .ad-content {
            gap: 3rem;
            align-items: flex-start;
        }
    }


    /* Fancy Button  */
        .button-78 {
    align-items: center;
    appearance: none;
    background-clip: padding-box;
    background-color: initial;
    background-image: none;
    border-style: none;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    flex-direction: row;
    flex-shrink: 0;
    font-family: Eina01,sans-serif;
    font-size: 16px;
    font-weight: 800;
    justify-content: center;
    line-height: 24px;
    margin: 0;
    min-height: 64px;
    outline: none;
    overflow: visible;
    padding: 19px 26px;
    pointer-events: auto;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    width: auto;
    word-break: keep-all;
    z-index: 0;
    }

    @media (min-width: 768px) {
    .button-78 {
        padding: 19px 32px;
    }
    }

    .button-78:before,
    .button-78:after {
    border-radius: 80px;
    }

    .button-78:before {
    background-image: linear-gradient(92.83deg, #ff7426 0, #f93a13 100%);
    content: "";
    display: block;
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -2;
    }

    .button-78:after {
    background-color: initial;
    background-image: linear-gradient(#541a0f 0, #0c0d0d 100%);
    bottom: 4px;
    content: "";
    display: block;
    left: 4px;
    overflow: hidden;
    position: absolute;
    right: 4px;
    top: 4px;
    transition: all 100ms ease-out;
    z-index: -1;
    }

    .button-78:hover:not(:disabled):before {
    background: linear-gradient(92.83deg, rgb(255, 116, 38) 0%, rgb(249, 58, 19) 100%);
    }

    .button-78:hover:not(:disabled):after {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    transition-timing-function: ease-in;
    opacity: 0;
    }

    .button-78:active:not(:disabled) {
    color: #ccc;
    }

    .button-78:active:not(:disabled):before {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), linear-gradient(92.83deg, #ff7426 0, #f93a13 100%);
    }

    .button-78:active:not(:disabled):after {
    background-image: linear-gradient(#541a0f 0, #0c0d0d 100%);
    bottom: 4px;
    left: 4px;
    right: 4px;
    top: 4px;
    }

    .button-78:disabled {
    cursor: default;
    opacity: .24;
    }


    /*These styles are for the modal to expand the ad images*/
.image-container:hover .expand-button {
    opacity: 1;
}

.expand-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-color);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    z-index: 2;
}

.expand-button:hover {
    background: #00e676;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

@keyframes zoomIn {
    from {transform: scale(0.9);}
    to {transform: scale(1);}
}

/* Add this media query for mobile */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .close-modal {
        top: 20px;
        right: 25px;
        font-size: 30px;
    }
}
