/*
    Theme Name: VamKade
    Theme URI: https://vamkade.net
    Author: Alireza Yousefi
    Description: قالب اختصاصی و سبک برای سایت وام و تسهیلات مالی
    Version: 1.0
    License: GNU General Public License v2 or later
    Text Domain: vamkade
*/

:root {
    --primary-color: #0f4c81;
    --primary-dark: #063257;
    --accent-color: #d4af37;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --border-radius: 16px;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-menu ul {
    display: flex;
    gap: 35px;
}

.main-menu a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.main-menu a:hover {
    color: var(--primary-color);
}

.cta-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(15, 76, 129, 0.25);
    display: flex;
    align-items: center;
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 76, 129, 0.35);
}

.hero {
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(15, 76, 129, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1.2;
    text-align: right;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    box-shadow: 30px 30px 0px rgba(15, 76, 129, 0.05);
    border-radius: 40px 4px 40px 4px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 900;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-gold {
    background: var(--accent-color);
    color: #fff;
    padding: 16px 45px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background: #c5a028;
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 45px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.stats-bar {
    display: flex;
    gap: 50px;
    margin-top: 60px;
}

.stat-item {
    padding-right: 20px;
    border-right: 4px solid var(--accent-color);
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.95rem;
    color: var(--text-light);
}

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

.bg-gray {
    background-color: #eaeef1;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title span {
    color: var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-top {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 25px;
    background-color: #edf2f7;
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 0 0 15px;
    color: var(--primary-dark);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-link {
    color: var(--primary-color);
    font-weight: bold;
    align-self: flex-start;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.card-link:hover {
    border-bottom-color: var(--primary-color);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: #cbd5e0;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    background: #eaeef1;
    padding: 0 15px;
    flex: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.step-item:hover .step-icon {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.step-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    color: var(--white);
    border-radius: 30px;
    margin: 80px auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-info p {
    font-size: 1.1rem;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-dark);
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
}

.single-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 60px 0 80px;
    color: var(--white);
    margin-bottom: -40px;
}

.single-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.main-wrapper {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.content-area {
    flex: 2;
}

.single-post-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.post-thumbnail {
    margin: -40px -40px 30px -40px;
}

.post-thumbnail img {
    width: 100%;
    border-radius: 24px 24px 0 0;
}

.post-body {
    font-size: 1.1rem;
    line-height: 2;
    color: #4a5568;
    margin-bottom: 40px;
}

.post-body h2,
.post-body h3 {
    color: var(--primary-dark);
    margin-top: 30px;
}

.share-box {
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    font-weight: bold;
}

.share-box a {
    color: var(--text-light);
    font-size: 1.2rem;
}

.share-box a:hover {
    color: var(--primary-color);
}

.sidebar {
    flex: 1;
}

.widget {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-right: 4px solid var(--accent-color);
    padding-right: 10px;
    color: var(--primary-dark);
}

.search-form {
    display: flex;
}

.search-field {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 0 8px 8px 0;
    outline: none;
    font-family: inherit;
}

.search-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
}

.widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #555;
}

.widget-list a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.cta-widget {
    background: var(--primary-dark);
    color: white;
    text-align: center;
}

.cta-widget i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.cta-widget h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.cta-widget p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.related-posts h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

@media (max-width: 992px) {
    .main-wrapper {
        flex-direction: column;
    }
    .sidebar {
        order: 2;
    }
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .single-post-card {
        padding: 20px;
    }
    .post-thumbnail {
        margin: -20px -20px 20px -20px;
    }
    .single-header h1 {
        font-size: 1.8rem;
    }
}

footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 80px 0 30px;
    text-align: center;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.pagination {
    margin-top: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid transparent;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.pagination span.current {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(15, 76, 129, 0.3);
    cursor: default;
}

.widget-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-list li a {
    flex-grow: 1;
}

.widget-list li span {
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 20px;
}