.slider-container {
    position: relative;
    width: 100%;
    height: 160px;
    /* 👈 مثل دیجی‌کالا */
    background: #eee;
    overflow: hidden;
}

.slider-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none;
}

.slider-buttons button {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    pointer-events: all;
    transition: 0.3s;
}

.slider-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.mobile-fixed-menu {
    position: fixed;
    bottom: 15px;
    /* فاصله از پایین */
    left: 0;
    width: 95%;
    margin: 0 auto;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    text-align: center;
    right: 0;
}

.mobile-fixed-menu a {
    flex: 1;
    font-size: 12px;
    text-decoration: none;
}

.mobile-fixed-menu i {
    font-size: 20px;
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1.2s ease-out forwards;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@font-face {
    font-family: 'iranSans';
    src: url(./font/IRANSans.ttf) format('truetype');
}

* {
    font-family: iranSans;
}

a {
    cursor: pointer !important;
    text-decoration: none !important;
}

ul {
    list-style: none !important;
}

.hr_line {
    height: 1.5rem;
    width: 1px;
}

.btn-outline-light {
    color: #242424 !important;
    border: none !important;
}

.fs-7 {
    font-size: 12px !important;
}

.fs-8 {
    font-size: 10px !important;
}

#menu_items a:hover {
    color: red !important;
}

.input_checkbox_filter input[type="checkbox"] {
    width: 40px;
    height: 20px;
    background-color: #c6c6c6;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 20px;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.input_checkbox_filter input:checked[type="checkbox"] {
    background-color: #03a9f4;
}

.input_checkbox_filter input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: scale(1.1);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    transition: 0.5s;
    background-color: #fff;
}

.input_checkbox_filter input:checked[type="checkbox"]::before {
    left: 20px;
}

.loader {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #ccc;
    border-bottom: 4px solid #eee;
    animation: loader 1s linear infinite;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bg_pattern {
    background-image: url(./img/about/Untitled_copy.svg), url(./img/about/about_divar_imac_desktop_screen.445f442a.png);
    background-repeat: no-repeat;
    height: 360px;
}

.sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar::-webkit-scrollbar-track {
    background-color: #eeeeee;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #777;
    border-radius: 10px;
}

@media (max-width:1200px) {
    .sidebar {
        position: relative !important;
    }
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px;
}

.product {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 30%;
    padding: 15px;
    margin: 10px;
    text-align: center;
}

.product img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.product button {
    background-color: #333;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.product button:hover {
    background-color: #444;
}

.cart ul {
    list-style: none;
    padding: 0;
}

.cart li {
    padding: 10px;
    background-color: #fff;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

@media only screen and (max-width: 600px) {
    .mobile-fixed-menu {
        left: 10000 !important;
        position: fixed;
        bottom: 16px;
        align-items: center !important;
        z-index: 999;
        background: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }
}

;
.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 24px;
    width: 33.3333333333% !important;
    margin-left: auto !important;
    left: auto !important;
    right: auto !important;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    color: #666;
}

.add-btn {
    background-color: #1565c0;
    width: 100%;
    border-radius: 8px;
    margin-top: 12px;
}

@font-face {
    font-family: 'iranSans';
    src: url(./font/IRANSans.ttf) format('truetype');
}

* {
    font-family: iranSans;
}

a {
    cursor: pointer !important;
    text-decoration: none !important;
}

ul {
    list-style: none !important;
}

.hr_line {
    height: 1.5rem;
    width: 1px;
}

.btn-outline-light {
    color: #242424 !important;
    border: none !important;
}

.fs-7 {
    font-size: 12px !important;
}

.fs-8 {
    font-size: 10px !important;
}

#menu_items a:hover {
    color: red !important;
}

.input_checkbox_filter input[type="checkbox"] {
    width: 40px;
    height: 20px;
    background-color: #c6c6c6;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 20px;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.input_checkbox_filter input:checked[type="checkbox"] {
    background-color: #03a9f4;
}

.input_checkbox_filter input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: scale(1.1);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    transition: 0.5s;
    background-color: #fff;
}

.input_checkbox_filter input:checked[type="checkbox"]::before {
    left: 20px;
}

.loader {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #ccc;
    border-bottom: 4px solid #eee;
    animation: loader 1s linear infinite;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bg_pattern {
    background-image: url(./img/about/Untitled_copy.svg), url(./img/about/about_divar_imac_desktop_screen.445f442a.png);
    background-repeat: no-repeat;
    height: 360px;
}

.sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar::-webkit-scrollbar-track {
    background-color: #eeeeee;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #777;
    border-radius: 10px;
}

@media (max-width:1200px) {
    .sidebar {
        position: relative !important;
    }
}

.countdown-bar {
    background-color: #ef394e;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.new-price {
    color: #d32f2f;
    font-size: 16px;
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    direction: rtl;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f0f0f0;
}

.navbarms {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbarms img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.navbarms .center-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.counter-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 150px;
}

@media (max-width: 768px) {
    .counter-container {
        height: 100vh;
    }
}

.counter-box {
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 200px;
}

.count-up {
    font-size: 36px;
    font-weight: bold;
    color: #007bff;
    display: block;
    margin-bottom: 10px;
}

.label {
    font-size: 16px;
    color: #333;
}

.consult-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.consult-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.consult-card img {
    width: 300px;
    height: 100%;
    object-fit: cover;
    background: #f9f9f9;
    padding: 20px;
}

.consult-content {
    padding: 30px;
    flex: 1;
}

.consult-content h4 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
    color: #007bff;
}

.consult-content p {
    font-size: 17px;
    text-align: justify;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .consult-card {
        flex-direction: column;
    }
    .consult-card img {
        width: 100%;
        height: auto;
    }
    .consult-content {
        padding: 20px;
    }
}

.footer-container {
    background: #2b2f3a;
    border-radius: 15px;
    padding: 24px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.footer-address {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 12px;
}

.footer-socials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-socials a img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-socials a:hover img {
    transform: scale(1.2);
    opacity: 0.85;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-socials {
        margin-top: 16px;
        justify-content: center;
    }
}

.ad-banner {
    position: fixed;
    top: -300px;
    right: 0;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: top 0.6s ease;
    direction: rtl;
}

.ad-banner.show {
    top: 0;
}

.blog-box {
    border-radius: 10px;
    overflow: hidden;
}

.blog-cover {
    width: 100%;
    height: auto;
    display: block;
}

.blog-descr {
    padding: 15px 20px;
}

.blog-descr h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.blog-descr p {
    font-size: 14px;
    color: #555;
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 10px;
}

.blog-descr a {
    font-size: 14px;
    color: #4a90e2;
    text-decoration: none;
}

.close-btn {
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

.close-btn:hover {
    color: red;
}

.box-without-shadow {
    max-width: 1100px;
    width: 100%;
    margin: 20px 10px 0;
    background: rgba(251, 167, 40, 0.29);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 12px;
    align-items: center !important;
    margin: 20px auto 0;
    margin: 20px auto 40px;
}

.box-without-shadow img#background-icon {
    max-width: 120px;
    height: auto;
    margin: 10px;
}

.box-without-shadow div.newsletter-text {
    max-width: 300px;
    margin: 0 20px;
}

.box-without-shadow h5 {
    color: rgb(168, 102, 0);
    font-size: 30px;
    font-weight: 900;
    font-variation-settings: var(--font-dot-style), 'wght' 900;
    margin-bottom: 10px;
}

.box-without-shadow p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.box-without-shadow form {
    margin: 20px;
    max-width: 260px;
    width: 100%;
}

.group {
    position: relative;
    margin-bottom: 20px;
}

.group input[type="email"] {
    width: 100%;
    padding: 10px 10px 10px 0;
    border: none;
    border-bottom: 2px solid rgb(168, 102, 0);
    background: transparent;
    direction: ltr;
    text-align: left;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.group input[type="email"]::placeholder {
    color: transparent;
}

.group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 14px;
    color: rgb(168, 102, 0);
    pointer-events: none;
    transition: 0.2s ease all;
}

.group input:focus~label,
.group input:not(:placeholder-shown)~label {
    top: -15px;
    font-size: 12px;
    color: rgb(168, 102, 0);
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background: rgb(168, 102, 0);
    margin-top: -2px;
}

.under-field {
    font-size: 12px;
    margin-top: 5px;
    display: block;
    color: #de0000;
}

input.neon-btn.orange {
    background-color: rgb(255, 145, 0);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
}

input.neon-btn.orange:hover {
    background-color: rgb(220, 110, 0);
}

.hr-root {
    display: flex;
    align-items: center;
    margin: 20px 0;
    direction: ltr !important;
}

.hr-border {
    flex-grow: 1;
    height: 2px;
    background-color: #007acc;
    /* رنگ خط */
    border-radius: 2px;
}

.hr-margin {
    padding: 0 15px;
    white-space: nowrap;
    font-family: "Tahoma", sans-serif;
    font-weight: bold;
    font-size: 18px;
    margin: 0;
    color: #007acc;
}


/* دکمه باز کردن منو */

#menuToggle {
    position: fixed;
    bottom: 40px;
    right: 60px;
    background: #007bff;
    border: none;
    color: white;
    padding: 20px;
    border-radius: 6px;
    font-size: 22px;
    cursor: pointer;
    z-index: 1100;
}


/* منوی عمودی */

.sidebar {
    position: fixed;
    top: 0;
    right: -60px;
    /* اول مخفی پشت صفحه */
    height: 100vh;
    width: 60px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1050;
}


/* وقتی منو باز است */

.sidebar.open {
    right: 0;
}

.sidebar button {
    background: none;
    border: none;
    color: #bbb;
    margin: 1rem 0;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s;
    position: relative;
    cursor: pointer;
}

.sidebar button:hover {
    color: #000;
    transform: scale(1.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #333;
    z-index: 10;
}

.sidebar button:hover .dropdown-content {
    display: block;
}

@keyframes animate-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: animate-float 3s ease-in-out infinite;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

.animate-fade-in.delay-700 {
    animation-delay: 0.7s;
}

.footer-container {
    margin-top: 1rem;
}

.footer-address {
    font-size: 0.875rem;
    color: #a7f3d0;
}

.footer-socials img {
    width: 30px;
    height: 30px;
    margin-top: 0.5rem;
    display: inline-block;
}


/* ⚡ سکشن با پس‌زمینه انیمیشن */

#particles-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#particles-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content-layer {
    position: relative;
    z-index: 1;
}

.bg-secondary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-secondary-rgb), var(--bs-bg-opacity))!important
}

.discount-badge {
    top: 10px;
    left: 10px;
    background-color: #ef394e;
    color: white;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 8px;
}

.discounted {
    position: relative;
    display: inline-block;
}

.discounted::before {
    content: "۲۵٪ تخفیف";
    position: absolute;
    top: 0;
    left: 0;
    background-color: red;
    color: white;
    font-size: 14px;
    padding: 4px 8px;
    border-bottom-right-radius: 8px;
    font-weight: bold;
}

body {
    font-family: 'Tahoma', sans-serif;
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.glow-text {
    text-shadow: 0 0 10px #2563eb, 0 0 20px #2563eb, 0 0 30px #2563eb;
}

#splash {
    background: radial-gradient(circle at center, #f0f4ff, #e0e7ff);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.1);
}

.back {
    font-family: "Vazirmatn", sans-serif;
    background: #f3f4f6;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
}

.course-card {
    display: flex;
    width: 90%;
    max-width: 1000px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-img {
    position: relative;
    flex: 1 1 40%;
    min-height: 250px;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #000;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    animation: badge-animation 2s infinite alternate;
}

@keyframes badge-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.course-body {
    flex: 1 1 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-body h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333;
}

.course-body p {
    font-size: 15px;
    color: #555;
    margin-bottom: 16px;
}

.meta span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.new-price {
    font-size: 20px;
    color: #0a8754;
    font-weight: bold;
}

.old-price del {
    color: #999;
    font-size: 14px;
}

.cta-btn {
    display: block;
    text-align: center;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

.cta-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .course-card {
        flex-direction: column;
    }
    .course-img {
        height: 200px;
    }
}

#menuToggle {
    position: fixed;
    bottom: 25px;
    right: 40px;
    background: #1e3a8a;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 50%;
    z-index: 1001;
    cursor: pointer;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 70px;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    z-index: 1000;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar button {
    background: none;
    border: none;
    color: white;
    margin: 20px 0;
    font-size: 24px;
    position: relative;
    cursor: pointer;
}

.tooltip-text {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1e3a8a;
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 14px;
}

.sidebar button:hover .tooltip-text {
    opacity: 1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* هدر بالا */

.navbarms {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbarms img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.navbarms img:hover {
    transform: scale(1.1);
}

.navbarms .center-text {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    user-select: none;
}

hr.hr_line {
    width: 1px;
    height: 40px;
    background-color: #bbb;
    border: none;
    margin: 0 15px;
}


/* نوار دکمه پایین هدر */

.top-nav {
    background-color: #fff;
    padding: 12px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-buttons .btn {
    font-size: 14px;
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .nav-buttons {
        justify-content: start;
    }
}


/* کد مربوط به منوی نمونه کلاس‌ها */

.menu-bar {
    display: flex;
    gap: 16px;
}

.dropdown {
    position: relative;
}

.dropdown>button {
    background-color: #1565c0;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    min-width: 320px;
    z-index: 100;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content .submenu {
    position: relative;
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    color: #333;
}

.dropdown-content .submenu:hover {
    background-color: #f0f0f0;
}


/* حذف نمایش باکس info-box با :hover در CSS */


/*
        .dropdown-content .submenu:hover .info-box {
            display: block;
        }
        */


/* تنظیمات باکس اطلاعات با انیمیشن */

.info-box {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 10px;
    width: 320px;
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

.info-box.show {
    opacity: 1;
    pointer-events: auto;
}

.teacher {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.teacher img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.price {
    margin-top: 10px;
    font-weight: bold;
    color: green;
}

.price del {
    color: gray;
    margin-left: 8px;
}

.register-btn {
    margin-top: 10px;
    background: #1565c0;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.fade {
    opacity: 0.1;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.fade:hover {
    opacity: 1;
}

body {
    font-family: Tahoma, sans-serif;
    direction: rtl;
    padding: 20px;
    background: #f0f0f0;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px #ccc;
}

.header {
    background: #007bff;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
}

.menu {
    display: none;
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.menu.show {
    display: flex;
    gap: 20px;
}

.menu .items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.menu .items button {
    background: white;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: right;
}

.menu .items button:hover,
.menu .items button:focus {
    background: #007bff;
    color: white;
    outline: none;
}

.description {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: inset 0 0 5px #ddd;
    min-height: 100px;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* هدر بالا */

.navbarms {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.navbarms img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.navbarms img:hover {
    transform: scale(1.1);
}

.navbarms .center-text {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    user-select: none;
}

hr.hr_line {
    width: 1px;
    height: 40px;
    background-color: #bbb;
    border: none;
    margin: 0 15px;
}


/* نوار دکمه‌ها زیر هدر */

.top-nav {
    background-color: #fff;
    padding: 12px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 0;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-buttons .btn {
    font-size: 14px;
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .nav-buttons {
        justify-content: start;
    }
}


/* استایل منوی کشویی کلاس‌ها */

.dropdown {
    position: relative;
}

.dropdown>button {
    background-color: #1565c0;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    min-width: 320px;
    z-index: 100;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.container {
    max-width: 700px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px #ccc;
}

.menu {
    display: flex;
    gap: 20px;
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
}

.menu .items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.menu .items button {
    background: white;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: right;
}

.menu .items button:hover,
.menu .items button:focus {
    background: #007bff;
    color: white;
    outline: none;
}

.description {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: inset 0 0 5px #ddd;
    min-height: 100px;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* هدر بالا */

.navbarms {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.navbarms img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.navbarms img:hover {
    transform: scale(1.1);
}

.navbarms .center-text {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    user-select: none;
}

hr.hr_line {
    width: 1px;
    height: 40px;
    background-color: #bbb;
    border: none;
    margin: 0 15px;
}


/* نوار دکمه‌ها زیر هدر */

.top-nav {
    background-color: #fff;
    padding: 12px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 0;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-buttons .btn {
    font-size: 14px;
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .nav-buttons {
        justify-content: start;
    }
}


/* استایل منوی کشویی کلاس‌ها */

.dropdown {
    position: relative;
}

.dropdown>button {
    background-color: #1565c0;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    min-width: 320px;
    z-index: 100;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.container {
    max-width: 700px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px #ccc;
}

.menu {
    display: flex;
    gap: 20px;
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
}

.menu .items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.menu .items button {
    background: white;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: right;
}

.menu .items button:hover,
.menu .items button:focus {
    background: #007bff;
    color: white;
    outline: none;
}

.description {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: inset 0 0 5px #ddd;
    min-height: 100px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 2;
}

.nav-buttons button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 8px;
}

.nav-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* دکمه خفن */

.signup-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    padding: 14px 36px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff00cc, #3333ff);
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.6), 0 0 30px rgba(51, 51, 255, 0.5);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 3;
}

.slider:hover .signup-btn {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .slider {
        height: 200px;
    }
    .signup-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

#autopm_box {
    position: fixed;
    bottom: 20px;
    right: -400px;
    width: 330px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

#autopm_box.show {
    right: 20px;
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    #autopm_box {
        bottom: 100px !important;
        /* تو گوشی بیاد بالاتر از bottom 20px */
    }
}

#close_autopm {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

#close_autopm:hover {
    transform: rotate(90deg) scale(1.2);
}

.support-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 15px;
    color: #007ee5;
}

.support-info img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.message-text {
    line-height: 1.9;
    color: #333;
    font-size: 14px;
}

.message-text a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #007ee5, #00c6ff);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 126, 229, 0.3);
    transition: all 0.3s;
}

.message-text a:hover {
    background: linear-gradient(135deg, #005bb5, #0099dd);
    transform: scale(1.05);
}