/* -------------------------------------------------
   فونت PelakFA (پشتیبانی کامل از EOT, WOFF, WOFF2)
   مسیر ریشه: /assets/font/pelak/
   ------------------------------------------------- */

/* وزن 100 - نازک (Thin) */
@font-face {
  font-family: 'PelakFA';
  src: url('/assets/font/pelak/EOT/PelakFA-Thin.eot');
  src: url('/assets/font/pelak/EOT/PelakFA-Thin.eot?#iefix') format('embedded-opentype'),
       url('/assets/font/pelak/WOFF2/PelakFA-Thin.woff2') format('woff2'),
       url('/assets/font/pelak/WOFF/PelakFA-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap; /* برای بهبود تجربه بارگذاری */
}

/* وزن 300 - سبک (Light) */
@font-face {
  font-family: 'PelakFA';
  src: url('/assets/font/pelak/EOT/PelakFA-light.eot');
  src: url('/assets/font/pelak/EOT/PelakFA-light.eot?#iefix') format('embedded-opentype'),
       url('/assets/font/pelak/WOFF2/PelakFA-light.woff2') format('woff2'),
       url('/assets/font/pelak/WOFF/PelakFA-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* وزن 400 - معمولی (Regular) */
@font-face {
  font-family: 'PelakFA';
  src: url('/assets/font/pelak/EOT/PelakFA-Regular.eot');
  src: url('/assets/font/pelak/EOT/PelakFA-Regular.eot?#iefix') format('embedded-opentype'),
       url('/assets/font/pelak/WOFF2/PelakFA-Regular.woff2') format('woff2'),
       url('/assets/font/pelak/WOFF/PelakFA-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* وزن 500 - متوسط (Medium) */
@font-face {
  font-family: 'PelakFA';
  src: url('/assets/font/pelak/EOT/PelakFA-Medium.eot');
  src: url('/assets/font/pelak/EOT/PelakFA-Medium.eot?#iefix') format('embedded-opentype'),
       url('/assets/font/pelak/WOFF2/PelakFA-Medium.woff2') format('woff2'),
       url('/assets/font/pelak/WOFF/PelakFA-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* وزن 600 - نیمه‌ضخیم (SemiBold) */
@font-face {
  font-family: 'PelakFA';
  src: url('/assets/font/pelak/EOT/PelakFA-SemiBold.eot');
  src: url('/assets/font/pelak/EOT/PelakFA-SemiBold.eot?#iefix') format('embedded-opentype'),
       url('/assets/font/pelak/WOFF2/PelakFA-SemiBold.woff2') format('woff2'),
       url('/assets/font/pelak/WOFF/PelakFA-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* وزن 700 - ضخیم (Bold) */
@font-face {
  font-family: 'PelakFA';
  src: url('/assets/font/pelak/EOT/PelakFA-Bold.eot');
  src: url('/assets/font/pelak/EOT/PelakFA-Bold.eot?#iefix') format('embedded-opentype'),
       url('/assets/font/pelak/WOFF2/PelakFA-Bold.woff2') format('woff2'),
       url('/assets/font/pelak/WOFF/PelakFA-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* وزن 800 - خیلی ضخیم (ExtraBold) */
@font-face {
  font-family: 'PelakFA';
  src: url('/assets/font/pelak/EOT/PelakFA-ExtraBold.eot');
  src: url('/assets/font/pelak/EOT/PelakFA-ExtraBold.eot?#iefix') format('embedded-opentype'),
       url('/assets/font/pelak/WOFF2/PelakFA-ExtraBold.woff2') format('woff2'),
       url('/assets/font/pelak/WOFF/PelakFA-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* وزن 900 - سیاه (Black) */
@font-face {
  font-family: 'PelakFA';
  src: url('/assets/font/pelak/EOT/PelakFA-Black.eot');
  src: url('/assets/font/pelak/EOT/PelakFA-Black.eot?#iefix') format('embedded-opentype'),
       url('/assets/font/pelak/WOFF2/PelakFA-Black.woff2') format('woff2'),
       url('/assets/font/pelak/WOFF/PelakFA-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* -----------------------------------------------
   مثال استفاده از فونت در بدنه سایت
   ----------------------------------------------- */
body {
  font-family: 'PelakFA', Tahoma, Arial, sans-serif;
}

/* برای رعایت وزن‌های مختلف کافی است font-weight را تنظیم کنید */
h1 {
  font-weight: 900; /* Black */
}
h2 {
  font-weight: 700; /* Bold */
}
p {
  font-weight: 400; /* Regular */
}
.light-text {
  font-weight: 300; /* Light */
}

body{
    direction: rtl;
    background-color: #e3e3e3;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}

.container{
    width: 80%;
    margin: auto;
    background-color: #fff;
    margin-top: 100px;

}

.row{
    display: flex;
}

.picture{
    width: 30%;
    height: 400px;
    /* border: 1px solid #3333; */
}

.picture img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.info{
    width: 70%;
    display: flex;
    flex-direction: column;
    height: 400px;
    background: linear-gradient(-90deg,#2B3B5C,#3E5A8F,#5B7FB5,#84A6D9,#AEC6F0,#D4E3FD);

}

.personal-info{
    padding: 30px;
    color: #fff;
}

.menu{
    display: flex ;
    width: 100%;
    margin-top: auto;
}

.menu a:nth-child(6){
    background-color: #2B3B5C;
    color: #D4E3FD;
}
.menu a:nth-child(5){
    background-color: #3E5A8F;
    color: #D4E3FD;

}
.menu a:nth-child(4){
    color: #D4E3FD;
    background-color: #5B7FB5;
}
.menu a:nth-child(3){
    background-color: #84A6D9;
    color: #2B3B5C;

}
.menu a:nth-child(2){
    background-color: #AEC6F0;
    color: #2B3B5C;
    
}
.menu a:nth-child(1){
    background-color: #D4E3FD;
    color: #2B3B5C;

}

.menu-box{
    width: 16.6%;
    height: 100px;
    /* border: 1px solid #3333; */

}

.central{
    display: flex;
    justify-content: center;
    align-items: center;
}

.red{
    background-color: red;
}
.green{
    background-color: green;
}
.blue{
    background-color: blue;
}
.yellow{
    background-color: yellow;
}
.orange{
    background-color: orange;
}
.violet{
    background-color: violet;
}

.keywords{
    display: flex;
    flex-wrap: wrap;
    width: 30%;
}

.keywords a{
    width: 50%;
    height: 130px;
    background-color: #dadada;

}

.keywords a:nth-child(1),.keywords a:nth-child(4){
    background-color: #cacaca;
}
.value{
    width: 70%;
}
.value h2{
    padding: 10px;
}
.value-box{
    display: flex;
    justify-content: end;
}
.value-box p {
	display: flex;
	font-size: 13px;
	align-items: start;
}

.value-box p svg {
    margin-left: 10px;
    height: 60px;
    width: 100px;
}

.value-box > div{
    width: 31%;
    padding: 10px
}

.skills{
    width: 70%;
    padding: 10px;
}

.skill-box{
    padding:0 10px;
}

.bar{
    padding: 2px;
    height: 30px;
    text-align: right;
    border: 1px solid #3333;
    border-radius: 15px;
    background-color: #D4E3FD;

}
.bar-val{
    background-color: #2B3B5C;
    height: 100%;
    border-radius: 10px;
}

.blogs{
    width: 30%;
    
}
/* =========================
   Responsive
========================= */

*{
    box-sizing: border-box;
}

img{
    max-width: 100%;
}

.container{
    overflow: hidden;
}

/* =========================
   BLOG SECTION
========================= */

.last-blogs{
    width: 30%;
    padding: 15px;
    overflow: hidden;
}

.last-blogs h3{
    margin-bottom: 20px;
    color: #2B3B5C;
}

.blog-slider-wrapper{
    position: relative;
}


.blog-slider{
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.blog-slider::-webkit-scrollbar{
    display: none;
}

.blog-card {
	max-width: 280px;
	background-color: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0,0,0,.08);
	flex-shrink: 0;
	transition: .3s;
}
.blog-card:hover{
    transform: translateY(-5px);
}

.blog-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content{
    padding: 15px;
}

.blog-content h4{
    margin-bottom: 10px;
    color: #2B3B5C;
}

.blog-content p{
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.blog-link{
    display: inline-flex;
    margin-top: 15px;
    color: #3E5A8F;
    font-weight: 700;
}

.slider-btn{
    position: absolute;
    top: -40px;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    cursor: pointer;
    z-index: 5;
    font-size: 24px;
}

.next{
    left: 10px;
}

.prev{
    left: 80px;
}

/* =========================
   TABLET
========================= */

@media(max-width:992px){

    .container{
        width: 92%;
    }

    .picture{
        width: 35%;
    }

    .info{
        width: 65%;
    }

    .keywords{
        width: 100%;
    }

    .value{
        width: 100%;
    }

    .skills{
        width: 100%;
    }

    .last-blogs{
        width: 100%;
    }

    .value-box{
        flex-wrap: wrap;
        gap: 15px;
    }

    .value-box > div{
        width: 48%;
    }

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .container{
        width: 95%;
        margin-top: 20px;
    }

    .row{
        flex-direction: column;
    }

    .picture{
        width: 100%;
        height: 300px;
    }

    .info{
        width: 100%;
        height: auto;
    }

    .menu{
        flex-wrap: wrap;
    }

    .menu-box{
        width: 50%;
        height: 80px;
        font-size: 14px;
    }

    .keywords{
        width: 100%;
    }

    .keywords a{
        width: 100%;
        height: 90px;
    }

    .value{
        width: 100%;
    }

    .value-box{
        flex-direction: column;
    }

    .value-box > div{
        width: 100%;
    }

    .skills{
        width: 100%;
    }

    .last-blogs{
        width: 100%;
    }

    .blog-card{
        min-width: 240px;
    }

    .slider-btn{
        display: none;
    }

}

.blog-header {
            text-align: center;
            margin: 2rem 0;
        }
        .blog-header h2 {
            color: #2b3b5c;
            border-right: none;
            font-size: 2rem;
        }
        .blog-grid {
            display: flex;
            flex-direction: column;
            padding: 10px
        }


        .blog-post {
            background: #e3e3e3;
            /* border-radius: 28px; */
            /* padding: 1.5rem; */
            border: 1px solid #d4e3fd;
            transition: 0.2s;
            display: flex;
            align-items: start;
            margin-bottom: 10px;
            border: 2px solid #e3e3e3;
            overflow: hidden;
            color: #333;
        }
        .blog-post:hover {
            /* transform: translateX(-5px); */
            /* box-shadow: 0 6px 14px rgba(0,0,0,0.05); */
        }

        .blog-post img{
            width: 200px;
            height: 200px;
            object-fit: cover;
            border-radius: 0px;
            margin-left: 10px;
        }
        .blog-post-info{
            width: calc(100% - 200px);
            padding: 10px;
        }
        .post-title {
            font-size: 1.5rem;
            color: #2b3b5c;
            margin-bottom: 0.5rem;
        }
        .post-title a {
            text-decoration: none;
            color: inherit;
        }
        .post-meta {
            font-size: 0.8rem;
            color: var(--blue-2);
            margin-bottom: 0.8rem;
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }
        .post-excerpt {
            color: var(--blue-1);
            line-height: 1.6;
        }
        .read-more {
            display: inline-block;
            margin-top: 0.8rem;
            color: var(--blue-3);
            text-decoration: none;
            font-weight: 600;
            text-align: left;
            width: 100%;
        }
        .pagination {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 2rem 0;
        }
        .pagination a {
            background: white;
            padding: 0.4rem 0.9rem;
            border-radius: 50px;
            text-decoration: none;
            color: #2b3b5c;
            border: 1px solid #d4e3fd;
        }
        .sidebar {
            background: var(--blue-pale);
            border-radius: 28px;
            padding: 1.5rem;
            margin-top: 2rem;
        }
        .sidebar h4 {
            color: #2b3b5c;
            margin-bottom: 1rem;
        }
        .sidebar ul {
            list-style: none;
            padding: 0;
        }
        .sidebar li {
            margin-bottom: 0.5rem;
        }
        .sidebar a {
            text-decoration: none;
            color: var(--blue-1);
        }
        @media (min-width: 900px) {
            .blog-layout {
                display: flex;
                gap: 2rem;
            }
            .blog-posts {
                flex: 2;
            }
            .sidebar {
                flex: 1;
                margin-top: 0;
            }
        }
        @media (max-width: 900px) {
            .blog-post {
                display: flex;
                flex-direction: column;
            }
            .blog-post img{
                width: 100%;
            }

            .blog-post-info{
                width: 100%;
            }
        }

                /* استایل‌های مخصوص صفحه مقاله (همانند قبل) */
        .article-container {
            max-width: 850px;
            margin: 2rem auto;
            background: white;
            border-radius: 32px;
            padding: 2rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.03);
            border: 1px solid #d4e3fd;
        }
        .article-header {
            margin-bottom: 2rem;
            border-bottom: 2px solid var(--blue-pale);
            padding-bottom: 1rem;
        }
        .article-title {
            font-size: 2rem;
            color: #2b3b5c;
            margin-bottom: 0.75rem;
        }
        .article-meta {
            display: flex;
            gap: 1rem;
            color: var(--blue-2);
            font-size: 0.85rem;
            flex-wrap: wrap;
        }
        .article-featured-image {
            width: 100%;
            border-radius: 24px;
            margin: 1.5rem 0;
            background: var(--blue-pale);
        }
        .article-content {
            line-height: 1.8;
            color: var(--blue-1);
        }
        .article-content h3 {
            color: #2b3b5c;
            margin: 1.5rem 0 0.75rem;
        }
        .article-content p {
            margin-bottom: 1rem;
        }
        .big-cta {
            background: #2b3b5c;
            color: white;
            text-align: center;
            padding: 2rem;
            border-radius: 32px;
            margin: 3rem auto;
            max-width: 850px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }
        .big-cta h3 {
            font-size: 1.7rem;
            margin-bottom: 0.5rem;
        }
        .btn-cta {
            display: inline-block;
            background: #ffb347;
            color: #2C3E66;
            padding: 0.8rem 1.8rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            margin-top: 1rem;
            font-size: 1.2rem;
            transition: 0.2s;
        }
        .btn-cta:hover {
            background: #ff9f1c;
            transform: scale(1.02);
        }
        .big-cta a {
            color: #ffdd99;
        }
        @media (max-width: 700px) {
            .article-container, .big-cta {
                margin: 1rem;
                padding: 1.5rem;
            }
            .article-title {
                font-size: 1.6rem;
            }
        }

        .personal-info .cta-text {
    background: #ffb347;
    color: #2C3E66;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 0.5rem;
}