/* --- Ziraat Landing Styles --- */
:root {
    --ziraat-red: #e11b22; /* قرمز برند زراعت بانک */
    --dark-bg: #111827;
}

.section-padding { padding: 80px 0; }

/* 1. Hero Section */
.z-hero {
    background: url('assets/images/ziraat-building.jpg') center/cover no-repeat fixed; /* عکس ساختمان زراعت */
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
}
.z-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(225, 27, 34, 0.8), rgba(0, 0, 0, 0.8));
}
.z-content { position: relative; z-index: 2; }
.z-logo-hero { width: 300px; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); }
.z-hero h1 { font-size: 3rem; font-weight: 900; margin-bottom: 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.z-hero p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.9; max-width: 800px; margin-left: auto; margin-right: auto; }
.z-hero-btns { display: flex; gap: 20px; justify-content: center; }

/* 2. Grid Features */
.z-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.z-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 4px solid transparent;
    transition: 0.3s;
}
.z-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--ziraat-red);
}
.z-icon {
    font-size: 3rem;
    color: var(--ziraat-red);
    margin-bottom: 20px;
}
.z-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--text-dark); }
.z-card p { color: #666; font-size: 0.95rem; line-height: 1.7; }

/* 3. Comparison Table */
.z-comparison-section {
    background: #f9fafb;
    padding: 80px 0;
}
.table-responsive { overflow-x: auto; }
.z-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.z-table th, .z-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.z-table th {
    background: #1f2937;
    color: white;
    font-size: 1.1rem;
}
.th-ziraat { background: var(--ziraat-red) !important; }
.th-iran { background: #555 !important; }
.z-table td { font-size: 1rem; color: #444; }
.z-table tr:last-child td { border-bottom: none; }
.check { color: #10b981; font-weight: bold; background: #ecfdf5; }
.cross { color: #ef4444; font-weight: bold; background: #fef2f2; }
.z-table tr:hover td { background-color: #f8fafc; }

/* 4. Infographic */
.z-infographic {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: zoom-in;
}
.img-fluid { width: 100%; height: auto; display: block; }

/* 5. Calculator */
.z-calculator-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 80px 0;
    color: white;
}
.calc-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.calc-content { flex: 1; min-width: 300px; }
.calc-result {
    flex: 1;
    min-width: 300px;
    background: white;
    color: var(--text-dark);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    text-align: center;
    padding: 30px;
}
.calc-form { margin-top: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #ccc; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: inherit;
}
.form-group select option { background: #333; color: white; }
.calc-btn {
    width: 100%;
    padding: 15px;
    background: var(--ziraat-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}
.calc-btn:hover { background: #c0151b; }

.res-value { font-size: 3rem; font-weight: 900; color: var(--ziraat-red); margin: 10px 0; }
.res-unit { font-size: 1.2rem; color: #666; }
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--ziraat-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* 6. FAQ Accordion */
.accordion { max-width: 800px; margin: 40px auto; }
.acc-item { margin-bottom: 15px; border-bottom: 1px solid #eee; }
.acc-header {
    padding: 20px;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}
.acc-header:hover { background: #f3f4f6; color: var(--ziraat-red); }
.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
    color: #666;
    padding: 0 20px;
}
.acc-header.active + .acc-body { padding: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .z-hero h1 { font-size: 2rem; }
    .z-table { display: block; overflow-x: auto; }
    .calc-wrapper { flex-direction: column; }
}

/* این کد را به ziraat-style.css اضافه کنید */
.z-logo-hero {
    width: 300px;
    margin-bottom: 20px;
    /* این خط لوگوی قرمز را تماماً سفید می‌کند */
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0,0,0,0.5)); 
}

/* --- Ziraat Value Model Section --- */
#value-model {
    background: #f9fafb;
}

/* ساختار اصلی گرید ۳ ستونه */
.z-model-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr; /* ستون وسط عریض‌تر */
    gap: 30px;
    margin-top: 50px;
}

.col-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
}
/* خطوط رنگی زیر عنوان‌ها */
.inputs-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 3px; background: #666; }
.process-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 3px; background: var(--ziraat-red); }
.highlights-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 3px; background: var(--ziraat-red); }
.outputs-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 3px; background: var(--secondary); }

/* --- استایل ستون چپ (Inputs) --- */
.model-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-right: 3px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.model-card i { font-size: 1.5rem; color: #666; }
.model-card h4 { font-size: 1rem; font-weight: 700; color: #444; }
.model-card p { font-size: 0.85rem; color: #777; line-height: 1.6; }

.model-footer-card {
    background: #1f2937;
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
}
.model-footer-card h4 { margin-bottom: 10px; color: var(--secondary); }
.model-footer-card p { font-size: 0.85rem; opacity: 0.9; }

/* --- استایل ستون وسط (Process Diagram) --- */
.process-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    position: relative;
    padding: 40px 20px;
    background: rgba(225, 27, 34, 0.05); /* پس زمینه قرمز خیلی کمرنگ */
    border-radius: 20px;
    border: 2px dashed rgba(225, 27, 34, 0.3);
}

.process-step {
    background: white;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 25px rgba(225, 27, 34, 0.1);
    border-top: 3px solid var(--ziraat-red);
}
.process-step span {
    position: absolute;
    top: -15px; right: -15px;
    width: 35px; height: 35px;
    background: var(--ziraat-red);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    border: 3px solid white;
}
.process-step h4 { font-size: 1rem; margin-bottom: 10px; color: var(--ziraat-red); }
.process-step p { font-size: 0.85rem; color: #666; }

/* آیکون مرکزی */
.process-center-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: var(--ziraat-red);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(225, 27, 34, 0.3);
    z-index: 2;
}
.process-center-icon img { width: 50px; filter: brightness(0) invert(1); }

/* چیدمان مراحل */
.step-1 { grid-column: 1; grid-row: 1; }
.step-2 { grid-column: 1; grid-row: 2; }
.step-3 { grid-column: 2; grid-row: 2; }
.step-4 { grid-column: 2; grid-row: 1; }

/* --- استایل ستون راست (Highlights) --- */
.highlight-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.h-val { display: block; font-size: 1.8rem; font-weight: 900; color: var(--text-dark); }
.h-label { display: block; font-size: 0.9rem; color: #888; margin-top: 5px; }
.highlight-red .h-val { color: var(--ziraat-red); }

/* --- استایل بخش پایین (Outputs) --- */
.z-model-outputs { margin-top: 80px; }
.outputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.output-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-top: 3px solid var(--secondary);
}
.output-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.output-card ul { padding-right: 20px; }
.output-card li {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    list-style-type: disc;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .z-model-grid { grid-template-columns: 1fr; gap: 50px; }
    .process-container { grid-template-columns: 1fr; gap: 30px; padding-top: 60px; }
    .process-center-icon { top: 30px; }
    .step-1, .step-2, .step-3, .step-4 { grid-column: auto; grid-row: auto; }
}

/* --- Realistic Roadmap Styles --- */

/* بخش چک‌لیست مدارک */
.roadmap-prerequisites {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 60px;
    border-top: 4px solid #333;
}
.rm-header { font-size: 1.2rem; margin-bottom: 15px; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.rm-header i { color: var(--secondary); }
.rm-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.rm-table th { background: #f3f4f6; padding: 15px; text-align: right; font-weight: 700; color: #555; }
.rm-table td { padding: 15px; border-bottom: 1px solid #eee; vertical-align: middle; }
.rm-table td i { margin-left: 8px; color: #888; width: 20px; text-align: center; }
.rm-req { color: #fff; background: #10b981; padding: 5px 10px; border-radius: 20px; font-size: 0.85rem; text-align: center; font-weight: bold; }
.rm-varies { color: #fff; background: #f59e0b; padding: 5px 10px; border-radius: 20px; font-size: 0.85rem; text-align: center; font-weight: bold; }

/* --- تایم‌لاین عملیاتی --- */
.roadmap-timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

/* خط اتصال عمودی اصلی */
.roadmap-timeline-container::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 40px; /* محل قرارگیری خط */
    width: 4px;
    background: #e5e7eb;
    z-index: 0;
}

.rm-stage {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-right: 80px; /* فاصله برای آیکون‌ها */
    border-right: 4px solid transparent;
}

.stage-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: #f9fafb;
    border-bottom: 1px solid #eee;
    position: relative;
}

/* آیکون دایره‌ای سمت راست */
.stage-icon {
    position: absolute;
    right: -100px; /* خارج از باکس قرار می‌گیرد */
    top: 50%;
    transform: translateY(-50%);
    width: 80px; height: 80px;
    background: white;
    border: 4px solid #ddd;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: #888;
    z-index: 2;
    transition: 0.3s;
}

.stage-step {
    background: #555; color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; margin-left: 15px;
}
.stage-header h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }

.stage-content { padding: 25px; }
.stage-content ul { list-style: none; padding: 0; }
.stage-content li { margin-bottom: 12px; display: flex; align-items: flex-start; line-height: 1.6; }
.stage-content li i { color: #10b981; margin-left: 10px; margin-top: 5px; }

/* باکس نکات */
.stage-tip {
    background: #fffbeb; border-right: 4px solid #f59e0b;
    padding: 15px; margin-top: 20px; border-radius: 8px; font-size: 0.9rem; color: #78350f; display: flex; gap: 10px;
}
.stage-tip i { font-size: 1.2rem; color: #f59e0b; }

/* کانکتورهای بین مراحل */
.rm-connector {
    text-align: center; color: #aaa; margin: -15px 80px 15px 0; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.rm-connector i { font-size: 1.2rem; }

/* --- رنگ‌بندی مراحل (تم‌سازی) --- */
/* مرحله ۱: ایران (آبی ملایم) */
.stage-iran { border-right-color: #60a5fa; }
.stage-iran .stage-icon { border-color: #60a5fa; color: #60a5fa; }
.stage-iran .stage-step { background: #60a5fa; }

/* مرحله ۲: ورود (نارنجی - هشدار) */
.stage-arrival { border-right-color: #f97316; }
.stage-arrival .stage-icon { border-color: #f97316; color: #f97316; }
.stage-arrival .stage-step { background: #f97316; }
.stage-arrival .stage-tip { background: #fef2f2; border-right-color: #ef4444; color: #991b1b; }
.stage-arrival .stage-tip i { color: #ef4444; }

/* مرحله ۳: بانک (قرمز زراعت - حیاتی) */
.stage-bank { border-right-color: var(--ziraat-red); }
.stage-bank .stage-icon { border-color: var(--ziraat-red); color: var(--ziraat-red); background: #fff1f2; }
.stage-bank .stage-step { background: var(--ziraat-red); }

/* مرحله ۴: پایان (سبز موفقیت) */
.stage-done { border-right-color: #10b981; }
.stage-done .stage-icon { border-color: #10b981; color: white; background: #10b981; }
.stage-done .stage-step { background: #10b981; }
.stage-success { background: #ecfdf5; color: #065f46; padding: 15px; border-radius: 8px; margin-top: 20px; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.stage-success i { font-size: 1.3rem; }

/* Responsive */
@media (max-width: 768px) {
    .roadmap-timeline-container::before { right: 30px; }
    .rm-stage { margin-right: 60px; }
    .stage-icon { width: 60px; height: 60px; right: -80px; font-size: 1.5rem; }
    .stage-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rm-connector { margin-right: 60px; }
}
