/* ===== Font Face Definitions ===== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-ExtraBold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== Root Variables ===== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --gold-color: #f1c40f;
}

/* ===== Global Styles ===== */
body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    padding-top: 56px;
    direction: rtl;
}

/* ===== Navbar Styles ===== */
.navbar-brand .brand-text {
    color: var(--gold-color);
    font-weight: 700;
    margin-right: 10px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
    margin: 0 10px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--gold-color);
}

/* ===== Footer Styles ===== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.footer .text-gold {
    color: var(--gold-color);
}

.social-links a {
    transition: transform 0.3s, color 0.3s;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--gold-color) !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ===== Animation Classes ===== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ===== Fade In Animation ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Banner Styles ===== */
.banner-slide {
    transition: opacity 1s ease-in-out;
}

/* ===== Stat Cards ===== */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card .number {
    font-size: 3rem;
    font-weight: 900;
}

.stat-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* ===== Activity Cards ===== */
.activity-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 300px;
    margin: 10px;
    background: white;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.activity-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* ===== Horizontal Scroll ===== */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== Section Title ===== */
.section-title {
    position: relative;
    margin-bottom: 40px;
    font-weight: 900;
    color: #2c3e50;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ===== Gradient Button ===== */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ===== Support Section ===== */
.support-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    padding: 50px;
    color: white;
}

/* ===== Gold Text ===== */
.gold-text {
    color: #f1c40f;
}

/* ===== Hero Section ===== */
.hero-section {
    margin-top: 56px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .stat-card .number {
        font-size: 2rem;
    }

    .support-section {
        padding: 30px 20px;
    }

    .activity-card {
        min-width: 250px;
    }

    .carousel-item img {
        height: 300px !important;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 20px 15px;
    }

    .stat-card .number {
        font-size: 1.5rem;
    }

    .stat-card .icon {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ===== RTL Fix for Bootstrap ===== */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.line-clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 7.5em; /* 5 line * 1.5em line-height */
    line-height: 1.5em;
}

/* ===== Fade-in Animation ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Horizontal Scroll ===== */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== Activity Cards ===== */
.activity-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 280px;
    background: white;
    flex-shrink: 0;
}

.activity-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.activity-card img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.activity-card .card-title {
    font-weight: 700;
    color: #2c3e50;
}

/* ===== Button Gradient ===== */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.no-underline{
    text-decoration:none;
}


/* ===== موبایل: دو سطر برای کاربر ===== */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item.d-block.d-lg-none {
        width: 100%;
    }

    .navbar-nav .nav-item.d-block.d-lg-none .nav-link {
        padding: 8px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .navbar-nav .nav-item.d-block.d-lg-none .nav-link.text-danger {
        color: #ff6b6b !important;
        font-weight: 500;
    }

    .navbar-nav .nav-item.d-block.d-lg-none .nav-link.text-danger:hover {
        background-color: rgba(255, 107, 107, 0.1);
        border-radius: 8px;
    }
}