/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a2a3a;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: background-color 0.25s ease, backdrop-filter 0.3s, box-shadow 0.2s;
    background-color: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    padding: 0.75rem 0;
}

.header.scrolled {
    background-color: rgba(10, 25, 40, 0.5);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ========== LOGO ========== */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* ========== NAVIGATION ========== */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    transition: 0.2s;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-item > a:hover,
.nav-item > a.active {
    color: #ffd966;
}

.dropdown-menu {
    position: absolute;
    top: 35px;
    left: 0;
    background: rgba(15, 35, 50, 0.95);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 0.6rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 2100;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #f1f5f9;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd966;
}

/* ========== RIGHT ICONS ========== */
.right-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.right-icons span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: default;
}

.right-icons i {
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.right-icons i:hover {
    color: #ffd966;
}

/* ========== FLOATING MENU (MOBILE) ========== */
.floating-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: 0.25s;
    display: flex;
    justify-content: flex-end;
}

.floating-menu.active {
    visibility: visible;
    opacity: 1;
}

.menu-panel {
    width: 280px;
    height: 100%;
    background: #0f2c38;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow-y: auto;
    border-left: 3px solid #ffd966;
}

.floating-menu.active .menu-panel {
    transform: translateX(0);
}

.menu-panel h3 {
    color: #ffd966;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.menu-panel ul {
    list-style: none;
}

.menu-panel li {
    margin: 1rem 0;
}

.menu-panel a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: block;
}

.menu-panel a:hover {
    color: #ffd966;
    padding-left: 8px;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* ========== SEARCH MODAL ========== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.search-modal.active {
    visibility: visible;
    opacity: 1;
}

.search-modal-content {
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #1a2f3a, #0f2c38);
    border-radius: 32px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.search-modal.active .search-modal-content {
    transform: scale(1);
}

.search-modal h3 {
    color: #ffd966;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.search-modal p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.search-input-wrapper {
    display: flex;
    background: white;
    border-radius: 60px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: #ffd966;
}

.search-input-wrapper i {
    background: white;
    padding: 1rem 0 1rem 1.5rem;
    color: #64748b;
    font-size: 1.1rem;
}

.search-modal input {
    flex: 1;
    padding: 1rem 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    border: none;
    outline: none;
    background: white;
    color: #1e293b;
    font-weight: 500;
}

.search-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.search-btn {
    background: #ffd966;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: #ffcd4a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 217, 102, 0.3);
}

.cancel-btn {
    background: transparent;
    border: 1px solid #475569;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #cbd5e1;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffd966;
    color: #ffd966;
}

.close-search-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.7;
}

.close-search-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ========== SLIDER ========== */
.fullpage-slider {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #0a1f2e;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-1 { background-image: linear-gradient(95deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://viabanyo.com/slide/slide-01.jpg'); }
.slide-2 { background-image: linear-gradient(95deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://viabanyo.com/slide/slide-02.jpg'); }
.slide-3 { background-image: linear-gradient(95deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://viabanyo.com/slide/slide-03.jpg'); }
.slide-4 { background-image: linear-gradient(95deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://viabanyo.com/slide/slide-04.jpg'); }
.slide-5 { background-image: linear-gradient(95deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://viabanyo.com/slide/slide-05.jpg'); }
.slide-6 { background-image: linear-gradient(95deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://viabanyo.com/slide/slide-06.jpg'); }
.slide-7 { background-image: linear-gradient(95deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://viabanyo.com/slide/slide-07.jpg'); }
.slide-8 { background-image: linear-gradient(95deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://viabanyo.com/slide/slide-08.jpg'); }
.slide-9 { background-image: linear-gradient(95deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://viabanyo.com/slide/slide-09.jpg'); }
.slide-10 { background-image: linear-gradient(95deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://viabanyo.com/slide/slide-10.jpg'); }

.slide-text {
    max-width: 650px;
    color: white;
    transform: translateX(-40px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.7s ease;
}

.slide.active .slide-text {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.slide-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-text p {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

.danisma-hatti {
    position: absolute;
    bottom: 30px;
    right: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 60px;
    color: white;
    font-weight: 600;
    z-index: 15;
    font-size: 1rem;
    border-left: 4px solid #ffcd4a;
}

.danisma-hatti a {
    color: #ffcd4a;
    text-decoration: none;
}

.slider-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 200, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.slider-dot.active-dot {
    background: #ffcd4a;
    transform: scale(1.2);
}

/* ========== FOOTER ========== */
footer {
    background-color: #0b2a35;
    color: #e2e8f0;
    padding: 3rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.6fr;
    gap: 2rem;
}

.footer-col h4 {
    color: #ffd966;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    text-decoration: none;
    color: #cbd5e1;
    transition: 0.2s;
}

.footer-col a:hover {
    color: #ffd966;
    padding-left: 4px;
}

.footer-contact i {
    width: 25px;
    color: #ffd966;
    margin-right: 8px;
}

.footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-contact a:hover {
    color: #ffd966;
    padding-left: 4px;
}

.maps-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
}

.map-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0.8rem;
    transition: 0.3s;
}

.map-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.map-item p {
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.map-item p i {
    margin-right: 6px;
    color: #ffd966;
}

.map-item strong {
    color: #ffd966;
    font-size: 0.85rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 160px;
    border: 0;
    transition: 0.3s;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 240, 0.15);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-icons i {
    font-size: 1.3rem;
    margin-left: 1rem;
    color: #e2e8f0;
    transition: 0.2s;
    cursor: pointer;
}

.social-icons i:hover {
    color: #ffd966;
    transform: scale(1.05);
}

/* ========== PAGE HERO - عکس زیر هدر (استفاده برای همه صفحات) ========== */
.page-hero {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-hero-content h1 {
    font-size: 2.8rem;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 0 1rem;
}

/* ========== PAGE CONTENT (برای همه صفحات) ========== */
.page-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
}

.page-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d4a5c;
}

.page-text p {
    margin-bottom: 1.2rem;
}

.page-text h1,
.page-text h2,
.page-text h3 {
    color: #1f3e48;
    margin: 1.5rem 0 0.8rem 0;
}

.page-text img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1rem 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 860px) {
    .logo-img {
        height: 42px;
    }
    .nav-links {
        display: none;
    }
    .right-icons span {
        display: none;
    }
    .nav-container {
        padding: 0 1.2rem;
    }
    .slide-text h2 {
        font-size: 1.8rem;
    }
    .danisma-hatti {
        font-size: 0.7rem;
        right: 16px;
        bottom: 50px;
        padding: 8px 14px;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .maps-wrapper {
        flex-direction: column;
    }
    .page-hero {
        min-height: 200px;
    }
    .page-hero-content h1 {
        font-size: 1.8rem;
    }
    .page-content-wrapper {
        padding: 2rem 1rem;
    }
    .page-card {
        padding: 1.2rem;
    }
}

@media (min-width: 1400px) {
    .logo-img {
        height: 85px;
    }
}

@media (max-width: 480px) {
    .map-container iframe {
        height: 160px;
    }
}

/* ========== SLIDE BUTTON ========== */
.slide-btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: #ffd966 !important;
    color: #1e293b !important;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.slide-btn:hover {
    background: #ffcd4a !important;
    transform: translateY(-2px);
    color: #1e293b !important;
}

/* برای لینک‌های بازدید شده */
.slide-btn:visited {
    color: #1e293b !important;
    background: #ffd966 !important;
}

/* برای لینک‌های فعال */
.slide-btn:active {
    color: #1e293b !important;
}

/* ========== CATEGORY COLLECTION STYLES (HOME PAGE BOX2) ========== */
#box2 {
    padding: 60px 0;
    background: #fff;
}

.category-col {
    margin-bottom: 30px;
    padding: 0 15px;
}

.category-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.category-left {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.category-item:hover .category-left {
    transform: scale(1.02);
}

.category-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 30, 54, 0.75);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 40px;
}

.category-logo span {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.category-right {
    padding: 25px 20px;
    text-align: center;
}

.category-slogan {
    font-size: 1.3rem;
    font-weight: 600;
    color: #001E36;
    margin-bottom: 12px;
    line-height: 1.3;
}

.category-metin {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.category-button {
    display: inline-block;
    padding: 10px 28px;
    background: #001E36;
    color: white;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-button:hover {
    background: #ffd966;
    color: #001E36;
}

/* Responsive - Desktop: 3 columns */
@media (min-width: 992px) {
    .category-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .container-fluid {
        max-width: 1320px;
        margin: 0 auto;
    }
    .category-left {
        min-height: 300px;
    }
    .category-slogan {
        font-size: 1.4rem;
    }
}

/* Responsive - Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .category-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .container-fluid {
        max-width: 960px;
        margin: 0 auto;
    }
    .category-left {
        min-height: 260px;
    }
    .category-slogan {
        font-size: 1.2rem;
    }
}

/* Responsive - Mobile: 1 column */
@media (max-width: 767px) {
    #box2 {
        padding: 40px 0;
    }
    .category-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .category-left {
        min-height: 220px;
    }
    .category-slogan {
        font-size: 1.1rem;
    }
    .category-metin {
        font-size: 0.85rem;
    }
}

/* Animation */
@keyframes categoryFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-col {
    animation: categoryFadeInUp 0.6s ease forwards;
    opacity: 0;
}
/* ==========End CATEGORY COLLECTION STYLES (HOME PAGE BOX2) ========== */