﻿@font-face {
    font-family: 'vazirmatn-bold';
    src: url('../../font/fontsvazirmatn/webfonts/vazirmatn-bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'vazirmatn-regular';
    src: url('../../font/fontsvazirmatn/webfonts/vazirmatn-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-green: #1c5c41;
    --main-green-dark: #0e3d2a;
    --gold: #d4a017;
    --cream: #fdf6e3;
    --light-cream: #fffaf0;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazir', 'vazirmatn-regular', 'IRANSans', 'Tahoma', sans-serif;
    background-color: var(--cream);
    color: #2c3e2f;
    line-height: 1.7;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e0d6c0;
}

::-webkit-scrollbar-thumb {
    background: var(--main-green);
    border-radius: 10px;
}

/* ==================== HEADER & NAVBAR ==================== */
.navbar {
    background: rgba(255,255,245,0.98) !important;
    backdrop-filter: blur(2px);
    border-bottom: 2px solid var(--gold);
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}


.navbar-nav {
    margin-right: 70px; /* فاصله از سمت راست (بین برند و منو) */
}
    .navbar-nav .nav-item {
        margin-left: 10px; /* فاصله بین منوها از سمت راست */
    }

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    
}

    .nav-link:hover {
        color: var(--gold) !important;
        transform: translateY(-1px);
    }

    .nav-link.active {
        color: var(--main-green) !important;
        font-weight: bold;
        border-bottom: 2px solid var(--gold);
    }

/* ==================== BRAND (لوگو + متن دوخطه) ==================== */
.custom-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    
}

.brand-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 12px;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    
}

.brand-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main-green); /* رنگ ثابت سبز */
    letter-spacing: -0.5px;
    
}

.brand-sub {
    font-size: 0.7rem;
    color: #7a8c7a;
    letter-spacing: 0.3px;
    margin-top: 4px;
    font-weight: 400;
    
}

/* ==================== SEARCH FORM (دکمه داخل اینپوت) ==================== */
.custom-search-form {
    position: relative;
    display: inline-block;
    width: 260px;
    margin-left: 20px;
}

.custom-search-input {
    width: 100%;
    padding: 8px 40px 8px 16px;
    border-radius: 40px;
    border: 1px solid #ddd2bc;
    background-color: #fffef7;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .custom-search-input:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
    }

.custom-search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--main-green);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .custom-search-btn:hover {
        color: var(--gold);
    }

/* ==================== USER MENU (دکمه ورود/ثبت نام + dropdown) ==================== */
.custom-user-menu {
    position: relative;
    display: inline-block;
}

.custom-logged-in-user {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f8f9fa;
    transition: background 0.2s;
}

    .custom-logged-in-user:hover {
        background: #e9ecef;
    }

.custom-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.custom-user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.custom-chevron {
    font-size: 0.8rem;
    color: #666;
}

.custom-user-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    display: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
    min-width: 220px;
    z-index: 1000;
}

.custom-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.custom-dropdown-fullname {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.custom-dropdown-email,
.custom-dropdown-role {
    font-size: 0.8rem;
    color: #666;
}

.custom-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

    .custom-dropdown-menu li a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        color: #333;
        text-decoration: none;
        transition: background 0.2s;
    }

        .custom-dropdown-menu li a:hover {
            background-color: #f8f9fa;
        }

.custom-login-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 40px;
    background: #f8f9fa;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, rgba(28,92,65,0.85), rgba(28,92,65,0.92)), url('../../images/background.jpg');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    min-height: 75vh;
    color: white;
    position: relative;
}

    .hero .btn-warning {
        background-color: var(--gold);
        border: none;
        color: #1e3a2f;
        font-weight: bold;
        padding: 12px 32px;
        transition: var(--transition);
    }

        .hero .btn-warning:hover {
            background-color: #b8860b;
            transform: scale(1.03);
            color: white;
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }

/* ==================== STORY CARDS ==================== */
.hover-raise {
    transition: var(--transition);
}

    .hover-raise:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    }

.story-card {
    border: none;
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    transition: var(--transition);
    border-right: 4px solid var(--gold);
}
    

    .story-card .card-title {
        margin-right:3px;
        font-weight: 800;
        font-size: 1.2rem;
        color: var(--main-green);
        
    }

    .story-card .card-text {
        margin-top:20px;
        line-height: 1.8;
        font-size: 0.95rem;
    }

.card-footer {
    background: var(--light-cream);
    border-top: 1px solid #f0e3cf;
}

.fa-heart, .fa-comment {
    transition: var(--transition);
    cursor: default;
}

    .fa-heart:hover {
        transform: scale(1.1);
    }

/* ==================== FORMS ==================== */
.form-control, .form-select {
    border-radius: 40px;
    border: 1px solid #ddd2bc;
    padding: 12px 20px;
    background-color: #fffef7;
    transition: var(--transition);
}

    .form-control:focus, .form-select:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.2);
    }

.btn-success {
    background-color: var(--main-green);
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-weight: bold;
    transition: var(--transition);
}

    .btn-success:hover {
        background-color: var(--main-green-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(28,92,65,0.3);
    }

/* ==================== FOOTER ==================== */
footer {
    background: #1a2e24 !important;
    border-top: 3px solid var(--gold);
}

    footer a {
        text-decoration: none;
        transition: var(--transition);
    }

        footer a:hover {
            color: var(--gold) !important;
            padding-right: 5px;
        }

.btn-warning-sm {
    background-color: var(--gold);
    border: none;
    border-radius: 30px;
    font-weight: 500;
}

    .btn-warning-sm:hover {
        background-color: #c4910a;
    }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .custom-search-form {
        width: 100%;
        margin: 10px 0;
    }

    .custom-user-menu {
        width: 100%;
        margin-top: 10px;
    }

    .custom-logged-in-user {
        justify-content: center;
    }

    .custom-user-dropdown {
        left: auto;
        right: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        background-attachment: scroll;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .story-card .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-main {
        font-size: 1.2rem;
    }

    .brand-sub {
        font-size: 0.6rem;
    }

    .btn-outline-success.active {
        background-color: #1c5c41;
        color: white;
        border-color: #1c5c41;
    }
}






/* ========== بخش ویدیوی حرفه‌ای ========== */
.video-hero-section {
    position: relative;
    width: 100%;
    height: 85vh; /* ارتفاع 85 درصد ارتفاع صفحه */
    min-height: 500px;
    overflow: hidden;
    margin: 50px 0;
    border-radius: 0; /* یا اگر می‌خواهید لبه‌های گرد داشته باشید: border-radius: 30px; */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* ویدیو کل کادر را بپوشاند بدون اعوجاج */
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 20px;
}

.video-title {
    font-size: 2.8rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    margin-bottom: 1rem;
}

.video-subtitle {
    font-size: 1.2rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .video-hero-section {
        height: 60vh;
        min-height: 350px;
        margin: 30px 0;
    }

    .video-title {
        font-size: 1.8rem;
    }

    .video-subtitle {
        font-size: 1rem;
    }
}


/* ========== بخش ویدیوی حرفه‌ای با لایه سبز (تنها یک نسخه) ========== */
.video-section {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    margin: 60px 0;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay-green {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28,92,65,0.75), rgba(28,92,65,0.85));
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.video-heading {
    font-size: 2.6rem;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.video-caption {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .video-section {
        height: 60vh;
        min-height: 400px;
        margin: 30px 0;
    }

    .video-heading {
        font-size: 1.8rem;
    }

    .video-caption {
        font-size: 1rem;
    }
}