body {
    align-items: center;
    background-color: #f4f4f4;
    margin: 0;
}

/*html,
body {
    font-family: 'YekanBakh-Regular', sans-serif;
    overflow-x: hidden !important;
}*/
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 1% 0;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    position: relative;
}


.left-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.button1 {
    background-color: #02544c;
    color: white;
    border-radius: 30px;
    font-size: 16px;
    padding: 15px;
    min-width: 130px;
}

.button1:hover {
    background-color: #00342f;
    transform: translateY(1px);
}

/* Button */
.button2 {
    background-color: #02544c72;
    color: #02544c;
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
    /* Important for absolute positioning inside */
    cursor: pointer;
    padding: 0;
}

/* Cart Badge (Small Circle) */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #02544c;
    color: white;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease-in-out;
}

/* Tooltip Wrapper */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

/* Tooltip */
.tooltip-container {
    position: absolute;
    top: 115%;
    left: 350%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.tooltip-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 400px;
    max-height: 220px;
    overflow-y: auto;
    font-size: 14px;
    background-color: white;
    border-top: 3px solid #02544c;
    color: black;
    text-align: center;
    padding: 8px 4px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 5px 10px 10px 5px #3333331d;
}

/* Keep tooltip visible when hovering */
@media (min-width: 1024px) {
    .tooltip-wrapper:hover .tooltip-container {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-5px);
        pointer-events: auto;
    }
}

.button2:hover {
    background-color: #02544c;
    color: white;
}

.Buy {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
}

.BtnBuy {
    background-color: #02544c;
    color: white;
    padding: 1px 10px;
    border-radius: 15px;
    padding-top: 5px;
    cursor: pointer;
}

.RemainingCount {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    background-color: rgba(203, 203, 207, 0.107);
    width: 80px;
    padding: 3px 10px;
    border-radius: 20px;
}

.NoProductImg {
    width: 100%;
    height: auto;
}

.NoProductImg img {
    width: 150px;
    height: auto;
}


.button1,
.button2 {
    border-color: #02544c72;
    cursor: pointer;
}

.SearchSectionBody {
    width: 100%;
    height: 80px;
    background-color: white;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    display: flex;
    justify-content: center;
}


.search-box-article {
    text-align: right;
}

.search-box-article input {
    padding: 13px 10px;
    border: none;
    border-radius: 10px;
    text-align: right;
    font-size: 14px;
    background-color: rgba(180, 179, 176, 0.107);
}

.search-box-article span {
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    text-align: center;
    background-color: rgba(180, 179, 176, 0.107);
    color: #9b9a9a;
}

.search-box-article input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ccc !important;
    background-color: rgba(180, 179, 176, 0.107);
}

/* غیرفعال کردن کلیک روی آیکون */
.search-box-article .input-group-text {
    pointer-events: none;
}

.navbar {
    display: flex;
    position: absolute;
    right: 18%;
    top: 30%;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
    padding-right: 20px;
    padding-left: 20px;
}

.sidebar a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.navbar a:hover {
    text-decoration: none;
    background-color: #02e8210d;
    color: #009229;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 10px;
    transition: 0.3s all ease;
}

.logo {
    width: 10em;
    height: auto;
}

.right-section a {
    cursor: pointer;
}

.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 10px;
    text-align: center;
}


.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 290px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    padding: 20px;
    z-index: 1000;
}

.sidebar.open {
    right: 0;
}

.sidebar .close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    font-size: 30px;
    width: 50px;
    height: 50px;
    text-align: center;
    padding-top: 5px;
}

.sidebar .SearchSectionBody {
    position: absolute;
    right: -5px;
}

.sidebar1 {
    flex-direction: row-reverse;
}

.sidebar2 {
    flex-direction: row-reverse;
}

.Sidebar2-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.basket span {
    cursor: pointer;
}

.sidebar1,
.sidebar2 a {
    cursor: pointer;
}

.left-buttons,
.right-items {
    display: flex;
    align-items: center;
}

.button,
.menu-item {
    margin: 0 10px;
    cursor: pointer;
}

.right-items {
    display: flex;
}

.btn-dark {
    background-color: #02544c;
    color: white;
    border-radius: 5px;
}

.btn-lighter {
    background-color: #02544c72;
    color: #02544c;
    border-radius: 5px;
}

.btn-lighter:hover {
    background-color: #02544c;
    color: white;
    border-radius: 5px;
}

.transition-3 {
    transition: 0.3s all ease;
}

.zoom-image {
    width: 300px;
    height: auto;
    transition: transform 0.3s ease;
}

.zoom-image:hover {
    transform: scale(1.015);
}

.green-box {
    width: 100%;
    height: 300px;
    background-color: #02544c;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}



@media (max-width: 1024px) {
    .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .navbar {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .left-section {
        order: 2;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }


    .right-section {
        order: 1;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo {
        width: 8em;
    }

    .button1 {
        background-color: #02544c72;
        color: #02544c;
        border-radius: 10px;
        padding: 15px 5px;
    }

    .button1:hover {
        background-color: #02544c;
        color: white;
    }

    .button2 {
        border-radius: 5px;
    }

    .responsive-header {
        padding-top: 0px;
    }
}

@media (min-width: 1024px) {
    .SearchSectionBody {
        display: none;
    }
}

.custom-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.image-container {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    height: auto;
    overflow: hidden;
    /* Prevents the image from overflowing */
    display: flex;
    justify-content: center;
    align-items: center;
}





/* breadcrumb navbar */
.breadcrumb {
    width: 100%;
    display: flex;
    padding: 18px 20px;
    list-style: none;
    background-color: #02544c;
    color: white;
    border-radius: 10px;
    justify-content: right;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    direction: rtl;
}

.breadcrumb li {
    display: inline;
    font-size: 14px;
}

.breadcrumb li+li:before {
    padding: 8px;
    color: white;
    content: ">";
}

.breadcrumb li a {
    color: #b4b4b4;
    text-decoration: none;
}

.breadcrumb li a:hover {
    color: white;
}

.breadcrumb-home {
    display: flex;
    flex-direction: row;
}


/*creating a main custom container*/
.custom-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}


/* 
.custom-container {
    margin: 0 auto;
    box-sizing: border-box;
    width: calc(100% - 20px);
    padding: 0 10px;
}

@media screen and (min-width: 1200px) {
    .custom-container {
        padding: 0;
    }
} 
*/


/*video responsivity*/
.vid-name-price-responsivity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2%;
}


.video-container {
    width: 49%;
    height: auto;
    display: block;
    border-radius: 10px;
}


.NamePrice-container {
    width: 50%;
    background-color: #c8c7ca18;
    height: auto;
    border-radius: 10px;
    padding: 30px 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.name-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 15%;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.span-status {
    padding: 15px 60px;
    border-radius: 10px;
    cursor: pointer;
}

.sapn-notAvailable {
    background-color: #e6c07944;
    color: #a96732;
}

.span-licenseCode {
    background-color: #65aca96b;
    color: #02544c;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.span-licenseCode:hover {
    background-color: #65aca9bd;
}

.favorite-long {
    background-color: #65aca9;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.AddFavoriteBtn {
    position: relative;
    /* Ensures tooltip is positioned relative to this element */
    display: inline-block;
    /* Allows width & height adjustments */
    padding: 8px 16px;
    /* Adjust for better hover area */
    cursor: pointer;
}

.tooltip-Like {
    visibility: hidden;
    width: 170px;
    font-size: 14px;
    background-color: white;
    color: black;
    text-align: center;
    padding: 10px 2px;
    border-radius: 8px;
    position: absolute;
    bottom: 100%;
    /* Positions the tooltip above the button */
    left: 100%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap;
    z-index: 1000;
    /* Ensures tooltip is above other elements */
}

.AddFavoriteBtn:hover .tooltip-Like {
    visibility: visible;
    opacity: 1;
}

@media (max-width : 1024px) {
    .vid-name-price-responsivity {
        flex-direction: column-reverse;
    }

    .video-container {
        width: 100%;
        margin-bottom: 3%;
    }

    .NamePrice-container {
        width: 100%;
        padding: 3%;
        max-height: 250px;
    }

    .name-container {
        padding-bottom: 5%;
    }

    .span-status {
        width: 45%;
        text-align: center;
    }
}

@media (max-width : 768px) {

    .NamePrice-container {
        max-height: 500px;
    }

    .AddFavoriteBtn {
        display: none;
    }

    .name-container {
        justify-content: right;
        margin-bottom: 30px;
    }

    .price-container {
        flex-direction: column;
        text-align: center;
        margin-bottom: 12px;
    }

    .span-status {
        width: 100%;
        margin-bottom: 12px;
    }

    .price-background {
        width: 100%;
        justify-content: center;
    }

    .responsive-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: -10px;
    }
}

@media (min-width: 768px) and (max-width:1024px) {

    .name-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .price-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .favorite-long {
        display: none;
    }

    .responsive-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: -10px;
    }
}


/*descreption */
.description-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 80px;
}

.info-status {
    background-color: #c8c7ca18;
    border-radius: 10px;
    width: 29%;
    max-height: 350px;
    display: flex;
    flex-direction: column;
}

.info {
    padding: 5%;
}

.prerequisite {
    background-color: #c8c7ca18;
    border-radius: 10px;
    border: 1px solid #02544c72;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    direction: rtl;
    padding: 15px;
}

.prerequisite2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    direction: rtl;
    max-width: 300px;
}

.prerequisite-price {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.prerequisite-price2 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.prerequisite-text {
    color: #ae0000;
    margin-top: 10px;
    margin-bottom: 20px;
}

.prerequisite-container {
    display: flex;
    flex-direction: column;
    border: 1px solid #02544c14;
    border-radius: 10px;
    padding: 10px;
    margin-top: 20px;
}

.prerequisite-container2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

.prerequisite-mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background: #c8c7ca18;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

.prerequisite-image {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.status {
    background-color: #c8c7ca18;
    border-radius: 10px;
    margin-top: 40px;
    padding: 30px;
    display: flex;
    justify-content: center;
}

.status-long {
    background-color: #e6c07944;
    color: #a96732;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    text-align: center;
}



.description {
    background-color: #c8c7ca18;
    border-radius: 10px;
    width: 69%;
    display: flex;
    flex-direction: column;
    padding: 2% 4%;
}

.description-text {
    background-color: #a4a4a407;
    border-radius: 10px;
    padding: 3%;
}


.CommentsImg {
    display: flex;
    flex-direction: column;
}

.text1 {
    text-align: right;
    justify-content: right;
    display: flex;
    flex-direction: row;
    line-height: 0.5;
    font-size: 24px;
    font-weight: bold;
}

.text2 {
    text-align: right;
    justify-content: right;
    display: flex;
    flex-direction: row;
    color: #1da551;
}

.ImageIcon {
    font-size: 18px;
    color: #1da551;
}

@media (max-width: 1024px) {

    .description-info {
        display: flex;
        flex-direction: column-reverse;
    }

    .description {
        width: 100%;
        margin-bottom: 30px;

    }

    .info {
        padding: 2%;
    }

    .info-status {
        width: 100%;
        margin-bottom: 150px;
    }

    .status-long {
        width: 100%;
        text-align: center;
    }

    .prerequisite-container {
        display: none
    }
}


/*comments*/
.comments {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-top: 30px;
}

.AddComment {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.DefaultComment {
    font-size: 18px;
}

.AddCommentBtn {
    padding: 15px 10px;
    display: inline-block;
    font-size: 14px;
    color: white;
    background-color: #02544c;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0px 0px 15px 0px #02544c;

}

.AddCommentBtn:hover {
    box-shadow: none;
    transform: translateY(2px);
}

.NoCommentSpan {
    background-color: #ffbd4244;
    color: #a96732;
    padding: 20px;
    border-radius: 10px;
    text-align: right;
    margin-bottom: 60px;
}



/*related courses*/
.RelatedCourses {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.RelatedCoursesImg {
    width: 13rem;
}


/*carousel*/
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    touch-action: pan-x;
}

.carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.product {
    flex: 0 0 100%;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.product img {
    width: 100%;
    height: auto;
    padding-bottom: 20px;
    object-fit: cover;
}

/* Button styles */
.carousel-button {
    text-align: center;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: #02544c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 15px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Zoom effect */
.zoom-image {
    transition: transform 0.3s ease;
}

.zoom-image:hover {
    transform: scale(1.05);
}

.PriceName {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
}

.price {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}



/* Responsive styles */
@media (min-width: 768px) {

    .product {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {

    .carousel-button {
        width: 35px;
        height: 35px;
        padding-right: 30px;
    }

    .product {
        flex: 0 0 33.333%;
    }

    .prerequisite {
        display: block;
    }

    .prerequisite-mobile{
        display: none;
    }
}
@media (max-width: 1024px) {
    .prerequisite{
        display: none;
    }
}

@media (max-width: 768px) {

    .carousel-button {
        padding: 8px; 
        font-size: 15px;
    }

    .carousel-container {
        width: 95%;
    }

    .prerequisite-mobile {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }

    .prerequisite-price2 {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (max-width: 576px) {

    .carousel-button {
        padding: 8px;
        font-size: 12px;
    }
}



.info-item {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 14px;
    line-height: 0.5;
    padding-top: 20px;
}

.complete-info-item {
    background-color: rgb(246, 246, 246);
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: right;
}

.item-logo {
    padding: 3px 10px;
    margin: 16px 10px;
    padding-top: 10px;
    border-radius: 10px;
    background-color: #c8c7ca18;
}


/*footer*/
/* Green Footer (Above the Main Footer) */
.green-footer {
    width: 100%;
    background: #02544c;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    height: 40px;
}

.green-footer::before {
    content: '';
    background: #02544c;
    width: 100%;
    position: absolute;
    left: 0;
    top: -20px;
    height: 40px;
    border-radius: 50%;
    z-index: -1;
}

/* Main Footer (Sits at the bottom of the page) */
.main-footer {
    width: 100%;
    height: auto;
    background-color: rgba(114, 114, 116, 0.107);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.footer-socials {
    display: flex;
    gap: 10px;
}


@media (max-width: 768px) {
    .green-footer .container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1px;
    }

    .green-footer {
        height: 90px;
    }

    .main-footer .container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }

    .price-background {
        margin-bottom: 20px;
    }
}



.fixed-span {
    position: fixed;
    left: 10px;
    /* Distance from the left */
    bottom: 10px;
    /* Distance from the top */
    background-color: #aac9c7;
    color: #02544c;
    font-size: 16px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    z-index: 999;
    cursor: pointer;
}

.fixed-span:hover {
    background-color: #001c18;
    color: white;
}





#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
}

#overlay.active {
    display: block;
    opacity: 1;
}


.BtnBuy {
    background-color: #02544c;
    color: white;
    padding: 1px 10px;
    border-radius: 15px;
    padding-top: 5px;
    cursor: pointer;
    text-decoration: none;
}

.BtnBuy:hover {
    color: white;
}