/* -------------------- استایل هدر (مشابه نمونه اولیه) -------------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 80px;
    background: #F5F7F8;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-img {
    width: 81px;
    height: auto;
}
nav ul {
    display: flex;
    list-style: none;
    margin-right: -57px;
}
nav ul li {
    margin: 0 20px;
}
nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bolder;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #007BFF;
}
.buttons {
    display: flex;
    gap: 15px;
}
.buttons button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s;
}
.login {
    background: #ddd;
}
.signup {
    background: #007BFF;
    color: #fff;
}
.signup:hover {
    background: #0056b3;
}
/* -------------------- دکمه همبرگری -------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 360px;
    margin-top: -55px;
}
.hamburger:focus {
    outline: none;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* -------------------- ریسپانسیو هدر -------------------- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    .hamburger {
        display: flex;
        margin-right: 0;
        margin-top: 0;
    }
    nav,
    .buttons {
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    nav.active,
    .buttons.active {
        display: flex;
        flex-direction: row;
    }
}

/* -------------------- سایر استایل‌های کد دوم -------------------- */
body {
    direction: rtl;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: #F5F7F8;
}
/* تب‌ها */
.my-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}
.my-tab-btn {
    border: none;
    padding: 10px 20px;
    font-weight: bolder;
    cursor: pointer;
    transition: background 0.3s;
    background: transparent;
}
.my-tab-btn.active {
    border-bottom: 2px solid black;
}
/* اسلایدر */
.slider-wrapper {
    width: 80%;
    max-width: 900px;
    margin: 0 auto 50px auto;
    position: relative;
}
.my-slider-container {
    height: 280px;
    /*overflow: hidden;*/
    position: relative;
    border-radius: 8px;
    background: #F5F7F8;
}
.my-slider {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}
.arrow-btn:hover {
    background: #eee;
}
.prev-btn {
    left: -20px;
}
.next-btn {
    right: -20px;
}
.my-slide {
    position: absolute;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1),
    opacity 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    opacity: 0;
    width: 300px;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: none; /* به صورت پیش‌فرض مخفی */
}
.my-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.my-slide.center {
    opacity: 1;
    transform: translateX(0) scale(1.2);
    z-index: 3;
    display: block;
}
.my-slide.right {
    opacity: 0.9;
    transform: translateX(200px) scale(0.9);
    z-index: 2;
    display: block;
}
.my-slide.left {
    opacity: 0.9;
    transform: translateX(-200px) scale(0.9);
    z-index: 2;
    display: block;
}
.my-slide.far-right {
    opacity: 0.6;
    transform: translateX(320px) scale(0.7);
    z-index: 1;
    display: block;
}
.my-slide.far-left {
    opacity: 0.6;
    transform: translateX(-320px) scale(0.7);
    z-index: 1;
    display: block;
}
.selected-box {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #141929;
    color: #fff;
    border-radius: 10px;
    text-align: center;
}
.selected-img-wrapper {
    width: 100%;
    margin: 0 auto;
    height: 80vh;
    border-radius: 10px;
    overflow: hidden;
    background: #333;
}
.selected-img-wrapper img {
    width: 100%;
    height: 100%;
}
.footer-section {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    background: #141929;
    border-radius: 16px;
    padding: 40px 20px;
    color: #fff;
    direction: rtl;
    font-family: sans-serif;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.footer-col {
    flex: 1 1 150px;
    min-width: 130px;
}
.about-col {
    flex: 2 1 200px;
}
.footer-col h2,
.footer-col h3 {
    margin-bottom: 15px;
    font-weight: bold;
}
.about-col p {
    line-height: 1.7;
    color: #ccc;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}
.footer-col ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #fff;
}
.social-col ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.social-col img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    display: inline-block;
}
@media (max-width: 768px) {
    .my-slide {
        width: 220px;
        height: 140px;
    }
    .arrow-btn {
        font-size: 18px;
        width: 30px;
        height: 30px;
    }
    .slider-wrapper {
        width: 90%;
    }
    .selected-box {
        width: 90%;
    }
}