﻿@font-face {
    font-family: 'iransansx';
    src: url('../webfonts/iransansx-regular.woff') format('woff');
}

@font-face {
    font-family: 'iransansx';
    src: url('../webfonts/iransansx-bold.woff') format('woff');
    font-weight: 700;
}

@font-face {
    font-family: 'iransansxv';
    src: url('../webfonts/iransansxv.woff2') format('woff2-variations'), url('../webfonts/iransansxv.woff') format('woff-variations');
    font-weight: 100 1000;
    font-display: swap;
}

body {
    font-family: 'iransansxv', Tahoma, sans-serif;
    font-feature-settings: "ss03";
    font-variation-settings: "DOTS" 8;
    -moz-font-feature-settings: "ss03";
    -webkit-font-feature-settings: "ss03";
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

html[dir="ltr"] body {
    font-family: Tahoma, sans-serif;
}

main {
    /* flex: 1; */
    /* margin-top: 8.2rem; */
    /* padding-top: 1rem; */
    /* padding-bottom: 1rem; */
}

footer {
    background-color: #ffa05d;
    color: #000000;
    text-align: center;
    padding-top: 20px;
    margin-top: auto;
}

footer a {
    color: #000000;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

.container {
    padding-top: 7.2rem;
}

.navbar {
    position: absolute;
    margin-top: 3.7rem;
    width: 100%;
    /* height: 3.3rem; */
    z-index: 1020;
    background-color: #ffa05d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    /* backdrop-filter: blur(1px); */
    /* background: rgba(26, 26, 46, 0.6); */
    /* -webkit-backdrop-filter: blur(1px); */
}

.navbar-toggler {
    margin-inline-start: 1rem;
}

.elegant-navbar .nav-link {
    color: #000000 !important;
    margin: 0 20px;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.elegant-navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.elegant-navbar .nav-link:hover {
    color: #ffffff !important;
}

.elegant-navbar .nav-link:hover::after {
    width: 100%;
}

.category-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-card .card-body {
    padding: 20px;
}

.hero-text h1,
.hero-text p,
.hero-text a {
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-img {
    content: url('/images/sepanta-logo.webp');
    height: 3.67rem;
    transition: transform 0.3s ease;
}

/* html[dir="ltr"] {
    .logo-img {
        content: url('/images/sepanta-logo.webp');
        height: 3.67rem;
        transition: transform 0.3s ease;
    }
} */

.logo-wrapper:hover .logo-img {
    transform: scale(1.05);
}

.btn-shop {
    background-color: white;
    color: black;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 10rem;
    height: 2.3rem;
    align-items: center;
    display: flex;
    justify-content: center;
}

.btn-shop:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-shop img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.btn-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    width: 8rem;
    height: 2.3rem;
    align-items: center;
}

.btn-lang img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.btn-lang:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: absolute;
    top: 6.65rem;
    /* left: 0; */
    width: 100%;
    /* height: 90vh; */
    /* margin-top: 0rem; */
    /* overflow: hidden; */
    z-index: -1;
}

.carousel-video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.section-div {
    padding-top: 60rem;

}

.full-width-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.text-fit-one-line {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.why-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.section-div section:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('/images/wave-bg.png') no-repeat center;
    background-size: cover;
    color: #9c9c9c;
}

section.why-us {
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    background-size: fill;
    background-position: center;
    color: black;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.swiper .swiper-wrapper .swiper-slide img {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper .swiper-wrapper .swiper-slide img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.shop-section {
    background: url('/images/shop-bg.webp') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.shop-section .container {
    z-index: 2;
}

.shop-section h2 {
    font-size: 2.5rem;
    color: #fff;
}

.shop-section p {
    font-size: 1.2rem;
    color: #f1f1f1;
}

.shop-section .btn {
    transition: transform 0.3s ease;
}

.shop-section .btn:hover {
    transform: scale(1.05);
}

.events-section .event-slide-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.events-section .event-slide-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.event-slide-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    backdrop-filter: blur(4px);
}

.latest-events .card img {
    height: 200px;
    object-fit: cover;
}

.swiper-pagination {
    position: static !important;
    margin-top: 15px !important;
    text-align: center;
}

.home-h-collections {
    align-items: center;
    text-align: center;
    position: absolute;
    top: 0;
    right: 25%;
    left: 25%;
    width: 50%;
    height: 12.3rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 9.3rem;
    padding-top: .8rem;
    z-index: 1;
    color: white;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 18px rgba(255, 140, 0, 0.22);
    backdrop-filter: blur(1px);
    background: rgba(26, 26, 46, 0.6);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 50px;
    animation: fadeDown 0.9s ease-out;
    border: 2px solid transparent;
    background-clip: padding-box;
    animation-delay: 1s;
    animation-fill-mode: backwards;
}

.home-h-collections::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, #ff8c00, #ffd699);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask: inherit;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.4;
}

.home-h-collections::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 40%;
    border-radius: 50px 50px 0 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
    opacity: 0.35;
}

.home-h-collections h1,
.home-h-collections h2,
.home-h-collections h3 {
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    animation: fadeUp 0.8s ease-out;
}

/* عنوان اصلی – رسمی و پرقدرت */
.home-h-collections h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 0.4rem;
}

/* PowerSep – برندینگ لوکس */
.home-h-collections h2 {
    font-size: 2.2rem;
    font-weight: 900;
    direction: ltr !important;
    letter-spacing: 1.5px;

    /* glow برند نارنجی خیلی ملایم */
    text-shadow:
        0 0 6px rgba(255, 140, 0, 0.45),
        0 3px 6px rgba(0, 0, 0, 0.45);
}

/* علامت ® کوچک و حرفه‌ای */
.home-h-collections h2 span {
    font-size: 2rem;
    vertical-align: super;
    /* margin-left: 3px; */
    /* opacity: 0.9; */
}

/* زیرعنوان توضیحی – ظریف و خوانا */
.home-h-collections h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #f1f1f1;
    opacity: 0.95;
    margin-top: 0.3rem;
}

.video-ads-container {
    position: absolute;
    top: 0;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 150px;
    pointer-events: none;
}



html[dir="rtl"] .video-ads-container {
    right: 20px;
    left: 0;
}

.ad-box {
    pointer-events: auto;
    overflow: hidden;
    align-items: center;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.60);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    width: 200px;
    backdrop-filter: blur(1px);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 1s ease forwards;
    z-index: 1;
}

.ad-box:nth-child(1) {
    animation-delay: 1s;
}

.ad-box:nth-child(2) {
    animation-delay: 1.5s;
}

.ad-box:nth-child(3) {
    animation-delay: 2s;
}

.ad-box img {
    display: block;
    width: 100%;
    height: 5rem;
    margin-bottom: 8px;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ad-box:hover img {
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.news-hero {
    margin-top: 0rem;
    height: 35vh;
    background: url('../images/news/news-bg.webp') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.news-hero .content {
    position: relative;
    z-index: 2;
    animation: fadeDown 1s ease;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform .3s ease, box-shadow .3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.news-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.news-body {
    padding: 15px 18px;
}

.news-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
    margin-bottom: 5px;
}

.news-body h5 {
    font-weight: bold;
    margin-bottom: 8px;
}

.news-body p {
    font-size: 0.9rem;
    color: #555;
    height: 55px;
    overflow: hidden;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
}

.btn-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
}

.btn-more:hover {
    color: #003d82;
}

.pagination .page-link {
    min-width: 42px;
    height: 42px;
    line-height: 42px;
    padding: 0;
    text-align: center;
}

.btn-scroll-top {
    position: fixed;
    bottom: 5.875rem;
    left: 2.875rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(60, 78, 113, .75);
    color: #fff;
    text-align: center;
    text-decoration: none;
    z-index: 10030;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fade {
    transition: opacity .15s linear
}

@media (prefers-reduced-motion:reduce) {
    .fade {
        transition: none
    }
}

.fade:not(.show) {
    opacity: 0
}

.btn-scroll-top:hover {
    background: white;
    color: black;
    text-decoration: none;
}

.faq-category-box {
    padding: 20px;
    border-radius: 12px;
    background: #f7f7f7;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #e0e0e0;
}

.faq-category-box:hover {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.faq-category-box i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    color: var(--bs-primary);
}

.accordion-item {
    border: none !important;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: #f9f9f9 !important;
    font-weight: bold;
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    transition: background 0.25s ease;
}

.accordion-button:not(.collapsed) {
    background: #eef6ff !important;
    color: #0d6efd !important;
    box-shadow: none;
}

.accordion-body {
    background: #ffffff;
    padding: 1.2rem 1.4rem;
    font-size: 0.95rem;
    line-height: 1.9rem;
    color: #444;
}

.accordion-collapse {
    transition: height .25s ease-in-out;
}

.section-fit-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    /* نسبت تصویر حفظ می‌شود */
    height: auto;
    /* نسبت تصویر حفظ می‌شود */
    object-fit: contain;
}

.mySwiper {
    /* width: 100%; */
    height: 500px;
}

.mySwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-300px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 900px) {

    .home-h-collections {
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        border: 0;
        background-clip: unset;
        padding: 1rem;
        height: 12rem;
    }

    .home-h-collections::before {
        border-radius: 0;
        background: none;
    }

    .home-h-collections::after {
        border-radius: 0;
        background: none;
    }

    .video-ads-container {
        display: none;
    }

    .why-us {
        padding: 0 2rem 0 2rem;
    }
}

@media (max-width: 768px) {

    .container {
        padding-top: 6.5rem;
    }

    .btn-scroll-top {
        bottom: 2.25rem;
        z-index: 1030;
        left: 2.25rem
    }

    .navbar {
        margin-top: 3.05rem;
    }

    .btn-lang span {
        display: none;
    }

    .btn-lang {
        padding: 5px;
        width: 36px;
        justify-content: center;
    }

    .btn-shop {
        padding: 5px 10px;
        font-size: 14px;
        width: 36px;
    }

    .btn-shop span {
        display: none;
    }

    .logo-img {
        content: url('/images/sepanta-logo.webp');
        height: 3.05rem;
        width: auto;
    }

    /* html[dir="ltr"] {
        .logo-img {
            content: url('/images/sepanta-logo.webp');
            height: 3.05rem;
            width: auto;
        }
    } */

    /* .navbar img {
        content: url('/images/powersep-logo.png');
        height: 50px;
        width: auto;
        display: none !important;
    } */

    .home-h-collections {
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        border: 0;
        background-clip: unset;
        padding: 1rem;
        height: 13rem;
    }

    .home-h-collections::before {
        border-radius: 0;
        background: none;
    }

    .home-h-collections::after {
        border-radius: 0;
        background: none;
    }

    .video-ads-container {
        display: none;
    }

    .ad-box {
        padding: 12px 18px;
        width: 160px;
        backdrop-filter: blur(1px);
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInUp 1s ease forwards;
    }

    .ad-box h6 {
        font-size: 14px;
    }

    .ad-box p {
        font-size: 12px;
    }

    .ad-box img {
        width: 130px;
        height: 60px;
        margin-bottom: 8px;
    }

    .why-us {
        padding: 0 1rem 0 1rem;
    }

    .why-us p {
        font-size: 1.1rem;
    }

    .why-icon {
        width: 60px;
        height: 60px;
    }

    .section-div {
        padding-top: 50rem;
    }

}

@media (max-width: 410px) {

    .section-div {
        padding-top: 40rem;
    }

    .logo-img {
        content: url('/images/sepanta-logo.webp');
        height: 2.05rem;
        width: auto;
    }

    html[dir="ltr"] {
        .logo-img {
            content: url('/images/sepanta-logo.webp');
            height: 2.05rem;
            width: auto;
        }
    }

    .top-bar {
        height: 3.1rem;
    }

    .why-us {
        padding: 0 0.5rem 0 0.5rem;
    }

    .why-us p {
        font-size: 0.8rem;
    }

    .footer p {
        font-size: 0.8rem;
    }

    .footer a {
        font-size: 0.8rem;
    }

}