/* ============================================
   قالب 2 - طراحی مدرن و دارک
   بهسرما - Behsarma
   ============================================ */

/* متغیرهای رنگ - همخوان با برند بهسرما */
:root {
    --template2-primary: #3b7ddd;
    --template2-primary-dark: #03335b;
    --template2-primary-darker: #0f2c56;
    --template2-primary-light: #577fa0;
    --template2-primary-lighter: #d3e2f7;
    --template2-bg-dark: #0a1628;
    --template2-bg-darker: #050d1a;
    --template2-bg-card: #141b2d;
    --template2-bg-card-hover: #1a2335;
    --template2-text-primary: #ffffff;
    --template2-text-secondary: #b8c5d6;
    --template2-text-muted: #6b7a8f;
    --template2-border: #1e2a3e;
    --template2-border-light: #2a3648;
    --template2-gradient: linear-gradient(135deg, #03335b 0%, #0f2c56 20%, #1a4a7a 40%, #3b7ddd 60%, #577fa0 80%, #d3e2f7 100%);
    --template2-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --template2-shadow-hover: 0 15px 50px rgba(59, 125, 221, 0.2);
}

/* Reset و Base Styles */
.template2-container {
    direction: rtl;
    text-align: right;
    background-color: var(--template2-bg-dark);
    color: var(--template2-text-primary);
    line-height: 1.8;
}

.template2-container * {
    box-sizing: border-box;
}

/* ============================================
   Section 1: Hero Section (نام و توضیحات + عکس اصلی)
   ============================================ */
.template2-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #050d1a 0%, #0a1628 25%, #141b2d 50%, #1a2335 75%, #0a1628 100%);
    padding: 100px 0;
    overflow: hidden;
}

/* افکت پس‌زمینه دارک با gradient overlay */
.template2-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 125, 221, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(3, 51, 91, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* افکت نور متحرک */
.template2-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 125, 221, 0.05) 0%, transparent 70%);
    animation: heroGlow 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(10%, 10%) scale(1.1);
        opacity: 0.8;
    }
}

/* افکت grid pattern */
.template2-hero {
    background-image: 
        linear-gradient(rgba(59, 125, 221, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 125, 221, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.template2-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.template2-hero-text {
    margin-bottom: 40px;
}

.template2-hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--template2-text-primary);
    margin-bottom: 25px;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 125, 221, 0.2);
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #d3e2f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.template2-hero p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    line-height: 1.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.template2-hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 125, 221, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    border: 2px solid rgba(59, 125, 221, 0.2);
    position: relative;
    animation: fadeInRight 1s ease-out 0.4s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.template2-hero-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(59, 125, 221, 0.3),
        inset 0 0 40px rgba(0, 0, 0, 0.4);
}

/* Glassmorphism effect برای محتوا */
.template2-hero-content > div {
    background: rgba(20, 27, 45, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px;
    border: 1px solid rgba(59, 125, 221, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .template2-hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .template2-hero h1 {
        font-size: 2.5rem;
    }
    
    .template2-hero p {
        font-size: 1.1rem;
    }
    
    .template2-hero-content > div {
        padding: 30px 20px;
        border-radius: 20px;
    }
}

/* ============================================
   Section 2: Main Image (تمام عرض)
   ============================================ */
.template2-main-image-section {
    padding: 60px 0;
    background-color: var(--template2-bg-darker);
}

.template2-main-image-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.template2-main-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--template2-shadow);
    object-fit: cover;
}

/* ============================================
   Section 3: Models (اسکرول افقی)
   ============================================ */
.template2-models-section {
    padding: 80px 0;
    background-color: var(--template2-bg-dark);
}

.template2-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--template2-text-primary);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.template2-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: var(--template2-gradient);
    border-radius: 2px;
}

.template2-models-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--template2-primary) var(--template2-bg-card);
    justify-content: space-evenly;
}

.template2-models-scroll::-webkit-scrollbar {
    height: 8px;
}

.template2-models-scroll::-webkit-scrollbar-track {
    background: var(--template2-bg-card);
    border-radius: 10px;
}

.template2-models-scroll::-webkit-scrollbar-thumb {
    background: var(--template2-primary);
    border-radius: 10px;
}

.template2-models-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--template2-primary-light);
}

.template2-model-card {
    /*min-width: 280px;
    max-width: 280px;*/
    background: var(--template2-bg-card);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--template2-border);
    cursor: pointer;
}

.template2-model-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--template2-shadow-hover);
    background: var(--template2-bg-card-hover);
    border-color: var(--template2-primary);
}

.template2-model-image {
    height: 250px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid var(--template2-border-light);
    max-width:unset !important;
}

.template2-model-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--template2-text-primary);
    margin: 0;
}

/* ============================================
   Section 4: Colors (اسکرول افقی)
   ============================================ */
.template2-colors-section {
    padding: 80px 0;
    background-color: var(--template2-bg-darker);
}

.template2-colors-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--template2-primary) var(--template2-bg-card);
    justify-content: space-evenly;
}

.template2-colors-scroll::-webkit-scrollbar {
    height: 8px;
}

.template2-colors-scroll::-webkit-scrollbar-track {
    background: var(--template2-bg-card);
    border-radius: 10px;
}

.template2-colors-scroll::-webkit-scrollbar-thumb {
    background: var(--template2-primary);
    border-radius: 10px;
}

.template2-color-card {
    min-width: 130px;
    background: var(--template2-bg-card);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--template2-border);
    cursor: pointer;
}

.template2-color-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--template2-shadow-hover);
    background: var(--template2-bg-card-hover);
    border-color: var(--template2-primary);
}

.template2-color-image {
    height: 300px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--template2-border-light);
}

.template2-color-name {
    font-size: 1rem;
    color: var(--template2-text-secondary);
    margin: 0;
}

/* ============================================
   Section 5: Features (امکانات و قابلیت‌ها)
   ============================================ */
.template2-features-section {
    padding: 80px 0;
    background-color: var(--template2-bg-dark);
}

.template2-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.template2-feature-card {
    background: var(--template2-bg-card);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--template2-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.template2-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--template2-shadow-hover);
    background: var(--template2-bg-card-hover);
    border-color: var(--template2-primary);
}

.template2-feature-image {
    height: 330px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid var(--template2-border-light);
}

.template2-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--template2-text-primary);
    margin-bottom: 15px;
}

.template2-feature-description {
    font-size: 1rem;
    color: var(--template2-text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   Section 5.5: Gallery (گالری عکس‌ها)
   ============================================ */
.template2-gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--template2-bg-dark) 0%, var(--template2-bg-darker) 100%);
    position: relative;
    overflow: hidden;
}

.template2-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 125, 221, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(59, 125, 221, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.template2-gallery-subtitle {
    text-align: center;
    color: var(--template2-text-secondary);
    font-size: 1rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.template2-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.template2-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--template2-bg-card);
    border: 1px solid var(--template2-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    aspect-ratio: 1;
}

.template2-gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--template2-primary);
    box-shadow: 0 20px 60px rgba(59, 125, 221, 0.3),
                0 0 40px rgba(59, 125, 221, 0.15),
                inset 0 0 30px rgba(59, 125, 221, 0.1);
}

.template2-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.template2-gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.template2-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) contrast(1.05);
    position: relative;
}

.template2-gallery-item:hover .template2-gallery-image {
    transform: scale(1.1);
    filter: brightness(1.05) contrast(1.1);
}

/* هاله دارک روی عکس */
.template2-gallery-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 22, 40, 0.4) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.template2-gallery-item:hover .template2-gallery-image::after {
    opacity: 0.6;
}

.template2-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 22, 40, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.template2-gallery-item:hover .template2-gallery-overlay {
    opacity: 1;
}

.template2-gallery-icon {
    font-size: 2.5rem;
    color: var(--template2-text-primary);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.template2-gallery-item:hover .template2-gallery-icon {
    transform: scale(1);
}

/* Glow Effect - هاله دارک */
.template2-gallery-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(10, 22, 40, 0.6) 0%, 
        rgba(30, 42, 62, 0.4) 50%, 
        rgba(10, 22, 40, 0.6) 100%);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.template2-gallery-item:hover::before {
    opacity: 1;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .template2-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .template2-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .template2-gallery-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .template2-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .template2-gallery-item {
        border-radius: 15px;
    }
    
    .template2-gallery-image-wrapper {
        border-radius: 15px;
    }
}

/* ============================================
   Section 6: Specs Table (جدول توضیحات فنی)
   ============================================ */
.template2-specs-section {
    padding: 80px 0;
    background-color: var(--template2-bg-darker);
}

.template2-specs-content {
    background: var(--template2-bg-card);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--template2-border);
    box-shadow: var(--template2-shadow);
}

.template2-specs-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* استایل جداول - Override استایل‌های inline */
.template2-specs-content table,
.template2-specs-content table[style],
.template2-container table,
.template2-container table[style] {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    background: var(--template2-bg-dark) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid var(--template2-border) !important;
}

.template2-specs-content table th,
.template2-specs-content table td,
.template2-specs-content table[style] th,
.template2-specs-content table[style] td,
.template2-container table th,
.template2-container table td,
.template2-container table[style] th,
.template2-container table[style] td {
    padding: 15px !important;
    text-align: right !important;
    border-bottom: 1px solid var(--template2-border) !important;
    color: var(--template2-text-primary) !important;
    background: transparent !important;
}

.template2-specs-content table th,
.template2-specs-content table[style] th,
.template2-container table th,
.template2-container table[style] th {
    background: var(--template2-primary-dark) !important;
    color: var(--template2-text-primary) !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--template2-primary) !important;
}

.template2-specs-content table tr:last-child td,
.template2-specs-content table[style] tr:last-child td,
.template2-container table tr:last-child td,
.template2-container table[style] tr:last-child td {
    border-bottom: none !important;
}

.template2-specs-content table tr:hover,
.template2-specs-content table[style] tr:hover,
.template2-container table tr:hover,
.template2-container table[style] tr:hover {
    background: var(--template2-bg-card-hover) !important;
}

.template2-specs-content table tr:hover td,
.template2-specs-content table[style] tr:hover td,
.template2-container table tr:hover td,
.template2-container table[style] tr:hover td {
    background: var(--template2-bg-card-hover) !important;
}

/* استایل برای border در جداول */
.template2-specs-content table,
.template2-specs-content table[style],
.template2-container table,
.template2-container table[style] {
    border: 1px solid var(--template2-border) !important;
}

.template2-specs-content table td,
.template2-specs-content table[style] td,
.template2-container table td,
.template2-container table[style] td {
    border-left: 1px solid var(--template2-border) !important;
    border-right: 1px solid var(--template2-border) !important;
}

.template2-specs-content table td:first-child,
.template2-specs-content table[style] td:first-child,
.template2-container table td:first-child,
.template2-container table[style] td:first-child {
    border-right: none !important;
}

.template2-specs-content table td:last-child,
.template2-specs-content table[style] td:last-child,
.template2-container table td:last-child,
.template2-container table[style] td:last-child {
    border-left: none !important;
}

/* ============================================
   Section 7: FAQ (سوالات متداول)
   ============================================ */
.template2-faq-section {
    padding: 80px 0;
    background-color: var(--template2-bg-dark);
}

.template2-faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.template2-faq-item {
    background: var(--template2-bg-card);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--template2-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.template2-faq-item:hover {
    border-color: var(--template2-primary);
    box-shadow: var(--template2-shadow);
}

.template2-faq-question {
    padding: 25px 30px;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--template2-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.template2-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--template2-primary);
    transition: transform 0.3s ease;
}

.template2-faq-item.active .template2-faq-question::after {
    transform: rotate(45deg);
}

.template2-faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--template2-text-primary);
    line-height: 1.8;
}

.template2-faq-answer p {
    color: var(--template2-text-primary);
    margin: 0;
    line-height: 1.9em;
}

.template2-faq-item.active .template2-faq-answer {
    max-height: 1000px;
    padding: 0 30px 25px 30px;
}

/* ============================================
   Section 8: SEO Description (توضیحات بیشتر)
   ============================================ */
.template2-seo-section {
    padding: 80px 0;
    background-color: var(--template2-bg-darker);
}

.template2-seo-content {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--template2-bg-card);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--template2-border);
    position: relative;
}

.template2-seo-text {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.8;
    text-align: justify;
    direction: rtl;
}

.template2-seo-text p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    margin: 10px 0;
    text-align: justify;
}

.template2-seo-text h1,
.template2-seo-text h2,
.template2-seo-text h3,
.template2-seo-text h4,
.template2-seo-text h5,
.template2-seo-text h6 {
    color: #ffffff;
    font-weight: bold;
    margin: 15px 0 10px 0;
}

.template2-seo-text ul,
.template2-seo-text ol {
    color: #ffffff;
    padding-right: 20px;
    margin: 10px 0;
}

.template2-seo-text li {
    color: #ffffff;
    margin: 5px 0;
}

.template2-seo-text a {
    color: #4CAF50;
    text-decoration: underline;
}

.template2-seo-text a:hover {
    color: #66BB6A;
}

.template2-seo-text table {
    color: #ffffff;
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}

.template2-seo-text table td,
.template2-seo-text table th {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
    text-align: right;
}

.template2-seo-text table th {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.template2-seo-text img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 5px;
}

.template2-seo-text strong,
.template2-seo-text b {
    color: #ffffff;
    font-weight: bold;
}

.template2-seo-text em,
.template2-seo-text i {
    font-style: italic;
    color: #ffffff;
}

.template2-seo-text-short {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.template2-seo-text-short::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--template2-bg-card));
    pointer-events: none;
}

.template2-seo-text-expanded {
    max-height: none;
}

.template2-seo-text-expanded::after {
    display: none;
}

.template2-read-more-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--template2-gradient);
    color: var(--template2-text-primary);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 125, 221, 0.3);
}

.template2-read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 125, 221, 0.4);
}

/* ============================================
   Section 9: Related Posts (مقالات مرتبط)
   ============================================ */
.template2-posts-section {
    padding: 80px 0;
    background-color: var(--template2-bg-dark);
}

.template2-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.template2-post-card {
    background: var(--template2-bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--template2-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.template2-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--template2-shadow-hover);
    border-color: var(--template2-primary);
}

.template2-post-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.template2-post-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--template2-bg-darker);
}

.template2-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.template2-post-card:hover .template2-post-image img {
    transform: scale(1.1);
}

.template2-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 51, 91, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template2-post-card:hover .template2-post-overlay {
    opacity: 1;
}

.template2-post-read-more {
    color: var(--template2-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--template2-text-primary);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.template2-post-card:hover .template2-post-read-more {
    background: var(--template2-text-primary);
    color: var(--template2-primary-dark);
}

.template2-post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.template2-post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--template2-text-primary);
    margin: 0 0 15px 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.template2-post-card:hover .template2-post-title {
    color: var(--template2-primary-light);
}

.template2-post-lead {
    font-size: 0.95rem;
    color: var(--template2-text-secondary);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.template2-posts-more {
    text-align: center;
    margin-top: 50px;
}

.template2-posts-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--template2-gradient);
    color: var(--template2-text-primary);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 125, 221, 0.3);
}

.template2-posts-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(59, 125, 221, 0.5);
    color: var(--template2-text-primary);
    text-decoration: none;
}

.template2-posts-more-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.template2-posts-more-btn:hover i {
    transform: translateX(-5px);
}

/* ============================================
   Section 10: Keywords (کلمات کلیدی)
   ============================================ */
.template2-keywords-section {
    padding: 80px 0;
    background-color: var(--template2-bg-darker);
}

.template2-keywords-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.template2-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.template2-keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--template2-bg-card);
    color: var(--template2-text-primary);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--template2-border);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.template2-keyword-tag:hover {
    background: var(--template2-primary);
    border-color: var(--template2-primary);
    color: var(--template2-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 125, 221, 0.3);
    text-decoration: none;
}

.template2-keyword-tag i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.template2-keyword-tag:hover i {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .template2-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* مخفی کردن کلمات کلیدی در موبایل */
    .template2-keywords-section {
        display: none !important;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .template2-hero h1 {
        font-size: 2.5rem;
    }
    
    .template2-hero p {
        font-size: 1.1rem;
    }
    
    .template2-section-title {
        font-size: 2rem;
    }
    
    .template2-model-card,
    .template2-color-card {
        /*min-width: 220px;
        max-width: 220px;*/
    }
    
    .template2-features-grid {
        grid-template-columns: 1fr;
    }
    
    .template2-specs-content,
    .template2-seo-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .template2-hero {
        min-height: 50vh;
        padding: 40px 0;
    }
    
    .template2-hero h1 {
        font-size: 2rem;
    }
    
    .template2-section-title {
        font-size: 1.8rem;
    }
    
    .template2-model-card,
    .template2-color-card {
        /*min-width: 180px;
        max-width: 180px;*/
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.template2-container-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.template2-fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

