@font-face {
    font-family: 'IranianSans';
    src: url('main/fonts/IranianSans.ttf') format('truetype');
}

.tours-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #0277BD 0%, #4dabf7 100%);
    padding: 20px 40px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(2, 119, 189, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    z-index: 1;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section-title:hover::before {
    opacity: 1;
}

.section-title:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(2, 119, 189, 0.4);
}

.section-title h2 {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 900;
    margin: 0 20px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-title h2 i {
    font-size: 2.4rem;
    color: #ffffff;
    transition: transform 0.4s ease;
}

.section-title:hover h2 i {
    transform: scale(1.3) rotate(10deg);
}

.section-title .title-line {
    display: block;
    width: 8px;
    height: 50px;
    background: linear-gradient(to bottom, #ffffff, #4dabf7);
    border-radius: 6px;
    transition: height 0.4s ease;
}

.section-title:hover .title-line {
    height: 60px;
}

.city-filter {
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s ease;
}

.city-filter:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.city-buttons {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 15px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    white-space: nowrap;
}

.city-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 1rem;
    color: #ffffff;
    background: linear-gradient(45deg, #0277BD, #4dabf7);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 4px 12px rgba(2, 119, 189, 0.3);
}

.city-button i {
    margin-left: 8px;
    font-size: 1.1rem;
    color: #ffffff;
}

.city-button:hover {
    background: linear-gradient(45deg, #4dabf7, #0277BD);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(2, 119, 189, 0.4);
}

.city-button.active {
    background: linear-gradient(45deg, #004aad, #0277BD);
    font-weight: 700;
    transform: scale(1.05);
}

.city-button.active i {
    color: #ffffff;
}

.tours-container {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.tour-card {
    flex: 0 0 calc(25% - 20px);
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #1a252f;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    scroll-snap-align: start;
    min-width: 240px;
    position: relative;
    animation: slideIn 0.6s ease forwards;
}

.tour-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(2, 119, 189, 0.3);
}

.tour-image {
    position: relative;
    overflow: hidden;
}

.tour-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-image img {
    transform: scale(1.1);
}

.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 119, 189, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.tour-card:hover .tour-overlay {
    opacity: 1;
}

.explore-now {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.tour-card:hover .explore-now {
    transform: translateY(0);
}

.tour-info {
    padding: 20px;
    text-align: right;
    background: linear-gradient(to top, #f0f4ff, #ffffff);
}

.tour-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0277BD;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.4s ease;
}

.tour-card:hover .tour-info h3 {
    color: #4dabf7;
}

.tour-info .category {
    font-size: 1rem;
    color: #424242;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-info .price {
    font-size: 1.1rem;
    color: #0277BD;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-info .travel-type {
    font-size: 1rem;
    color: #424242;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-info .travel-type i {
    font-size: 1.2rem;
    color: #0277BD;
}

@keyframes slideIn {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .tours-container {
        padding: 15px;
    }

    .tour-card {
        flex: 0 0 calc(33.33% - 18px);
        min-width: 200px;
    }

    .section-title {
        padding: 15px 30px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .section-title h2 i {
        font-size: 2rem;
    }

    .section-title .title-line {
        height: 40px;
        width: 6px;
    }
}

@media (max-width: 768px) {
    .tours-section {
        padding: 60px 15px;
    }

    .section-title {
        padding: 12px 25px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title h2 i {
        font-size: 1.8rem;
    }

    .section-title .title-line {
        height: 36px;
        width: 5px;
    }

    .tour-card {
        flex: 0 0 calc(50% - 15px);
        min-width: 180px;
    }

    .tour-image img {
        height: 160px;
    }

    .tour-info h3 {
        font-size: 1.2rem;
    }

    .tour-info .category, .tour-info .price, .tour-info .travel-type {
        font-size: 0.95rem;
    }

    .city-button {
        font-size: 0.95rem;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .tours-section {
        padding: 50px 10px;
    }

    .section-title {
        padding: 10px 20px;
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title h2 i {
        font-size: 1.6rem;
    }

    .section-title .title-line {
        height: 30px;
        width: 4px;
    }

    .tour-card {
        flex: 0 0 calc(100% - 10px);
        min-width: 160px;
    }

    .tour-image img {
        height: 140px;
    }

    .tour-info h3 {
        font-size: 1.1rem;
    }

    .tour-info .category, .tour-info .price, .tour-info .travel-type {
        font-size: 0.9rem;
    }

    .city-button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}