/*
Theme Name: arebadimajd
Theme URI: https://ebadimajd.ir/
Author: ALiRezaEbadiMajd
Author URI: http://ebadimajd.ir/
Description: وب سایت رسمی مهندس مجد 1405
Version: 1.0
Tags: EM
*/

/* ============================================ */
/* === 1. FONTS === */
/* ============================================ */

@font-face {
    font-family: 'GramophoneFa';
    font-style: normal;
    font-weight: 300;
    src: url("fonts/GramophoneFa.woff2");
}

@font-face {
    font-family: 'ultrabold';
    font-style: normal;
    src: url("fonts/dana-ultrabold.woff2");
}

@font-face {
    font-family: 'thin';
    font-style: normal;
    src: url("fonts/dana-thin.woff2");
}

@font-face {
    font-family: 'regular';
    font-style: normal;
    src: url("fonts/dana-regular.woff2");
}

@font-face {
    font-family: 'medium';
    font-style: normal;
    src: url("fonts/dana-medium.woff2");
}

@font-face {
    font-family: 'light';
    font-style: normal;
    src: url("fonts/dana-light.woff2");
}

@font-face {
    font-family: 'extralight';
    font-style: normal;
    src: url("fonts/dana-extralight.woff2");
}

@font-face {
    font-family: 'extrabold';
    font-style: normal;
    src: url("dana-extrabold.woff2");
}

@font-face {
    font-family: 'demibold';
    font-style: normal;
    src: url("fonts/dana-demibold.woff2");
}

@font-face {
    font-family: 'bold';
    font-style: normal;
    src: url("fonts/dana-bold.woff2");
}

@font-face {
    font-family: 'black';
    font-style: normal;
    src: url("fonts/dana-black.woff2");
}

/* ============================================ */
/* === 2. UNIVERSAL & RESET === */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    font-family: 'medium';
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
}
html { scroll-behavior: smooth; }

body {
    background: #080808;
    overflow-x: hidden !important;
}

.site-container {
    width: 1115px;
    margin: 0 auto;
}

@media (max-width: 1250px) {
    .site-container {
        width: 90%;
    }
}

.universal-h2 {
    font-size: 36px;
    text-align: center;
    color: #222;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    direction: rtl;
}

.universal-h2 span {
    font-size: 44px;
    padding-right: 10px;
}

@media (max-width: 1250px) {
    .universal-h2 {
        font-size: 38px;
    }
}

@media (max-width: 668px) {
    .universal-h2 {
        font-size: 30px;
    }
}

.universal-h2-start {
    background-image: url("images/double-line-start.png");
    background-repeat: no-repeat;
    background-position: center bottom;
}

.universal-h2-center {
    background-image: url("images/double-line-center.png");
    background-repeat: no-repeat;
    background-position: center bottom;
}

.universal-h2-end {
    background-image: url("images/double-line-end.png");
    background-repeat: no-repeat;
    background-position: center bottom;
}

/* ============================================ */
/* === 3. NAVIGATION === */
/* ============================================ */

.site-navigation {
    position: absolute;
    top: 4.6%;
    width: 100%;
    z-index: 2;
}

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

.site-logo-img {

}

.main-navigation {
    color: #fff;
    display: none;
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
    background: #000;
    opacity: 0.9;
}

.main-navigation .main-navigation__ul {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* border: 2px solid #ffd966; */
    border-radius: 20px;
    background-color: #000000;
    text-align: center;
    box-shadow: 0px 2px 3px 2px #ffd966;
}
.main-navigation .main-navigation__ul div{
    background: #000000;
    border-radius: 20px;
    margin-bottom: 20px;
    padding: 10px 0 0 0;
}
.main-navigation .main-navigation__ul div img{
    border-radius: 20px 20px 0 0;
    width: 100%;

}
.main-navigation .main-navigation__ul li {
    list-style: none;
    text-align: right;
    margin-top: 20px;
    padding: 0 60px;
}

.main-navigation .main-navigation__ul a {
    color: #ffffff;
    font-size: 23px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s ease;
    position: relative;
    bottom: 16px;
    word-spacing: 5px;
    font-family: 'demibold';
}

.main-navigation .main-navigation__ul li::before {
    content: "";
    position: absolute;
    right: 2.7rem;
    width: 7px;
    height: 7px;
    background-color: #ffd966;
    transform: translateY(-20%);
    transition: 0.2s;
}

.main-navigation .main-navigation__ul a:hover {
    color: #ffd966;
}

.main-navigation .main-navigation__ul li:hover::before {
    background-color: #fff;
    width: 10px;
    transition: 0.2s;
}

@media (max-width: 1150px) {
    .main-navigation {
        opacity: 0.94;
    }
}

@media (max-width: 768px) {
    .main-navigation .main-navigation__ul {
        width: 60%;
    }
    .main-navigation .main-navigation__ul div {
        margin-bottom: 25px;
        padding: 15px 0 0 0;
    }
    .main-navigation .main-navigation__ul li {
        list-style: none;
        text-align: right;
        margin-top: 20px;
        padding: 0 30px;
    }
    .main-navigation .main-navigation__ul a {
        font-size: 19px;
        bottom: 13px;
    }
    .main-navigation .main-navigation__ul li::before {
        right: 1rem;
    }
}
/* برای نمایش منو */
.main-navigation {
    display: none;
}

/* کلاس change برای تغییر شکل دکمه همبرگر به X */
#myBtn.change .bar1 {
    transform: rotate(-45deg) translate(-6px, 6px);
    background-color: #ffd966;
}
#myBtn.change .bar2 {
    opacity: 0;
    background-color: #ffd966;
}
#myBtn.change .bar3 {
    transform: rotate(45deg) translate(-6px, -7px);
    background-color: #ffd966;
}

/* قفل کردن اسکرول هنگام باز بودن منو */
.stop-scroll {
    overflow: hidden;
}
/* Navigation burger */
.burger-container {
    cursor: pointer;
    z-index: 3;
    padding-right: 25px;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    transform: rotate(-45deg) translate(-6px, 6px);
    background-color: #ffd966;
}

.change .bar2 {
    opacity: 0;
    background-color: #ffd966;
}

.change .bar3 {
    transform: rotate(45deg) translate(-6px, -7px);
    background-color: #ffd966;
}

.stop-scroll {
    overflow: hidden;
}

/* ============================================ */
/* === 4. TOP BANNER === */
/* ============================================ */

.fh5co-top-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    background-image: url("../images/top-banner-bckg.jpg");
    background-position: center;
    background-size: cover;
}

.fh5co-top-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.9;
}

.fh5co-top-banner .site-container {
    position: relative;
    z-index: 1;
}

@media (max-width: 1600px) {
    .fh5co-top-banner {
        padding-top: 105px;
        background-image: none;
    }
}

@media (max-width: 1250px) {
    .fh5co-top-banner {
        padding-top: 130px;
        background-image: none;
    }
}

@media (max-width: 520px) {
    .fh5co-top-banner {
        padding-top: 105px;
        background-image: none;
    }
}

@media (min-width: 1600px) {
    .fh5co-top-banner {
        min-height: 100vh;
        background-image: none;
    }
}

.top-banner__inner {
    display: flex;
    align-items: center;
}

.top-banner__inner .top-banner__text {
    margin-left: 54px;
}

@media (max-width: 1250px) {
    .top-banner__inner .top-banner__text {
        width: 35%;
    }
}

@media (max-width: 768px) {
    .top-banner__inner .top-banner__text {
        width: 50%;
        margin-left: 20px;
    }
}

@media (max-width: 520px) {
    .top-banner__inner .top-banner__text {
        width: 65%;
        margin-bottom: 20px;
        margin-left: 0;
    }
}

.top-banner__inner .top-banner__text p {
    margin-bottom: 42px;
    color: #fff;
    font-family: 'light';
    direction: rtl;
    text-align: justify;
    font-size: 20px;
}

.top-banner__inner .top-banner__text p b
{
    font-family: 'regular';
}

@media (max-width: 768px) {
    .top-banner__inner .top-banner__text p {
        margin-bottom: 25px;
        font-size: 13.2px;
    }
}
@media (max-width: 1600px) {
    .top-banner{
        padding-top: 105px;
        background: #000;
    }
}
.top-banner__inner .top-banner__h2 {
    font-size: 58px;
    letter-spacing: 3px;
    color: #fff;
    font-family: "Calisto-MT-Bold";
}

@media (max-width: 1250px) {
    .top-banner__inner .top-banner__h2 {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .top-banner__inner .top-banner__h2 {
        font-size: 35px;
    }
}

.top-banner__inner .top-banner__text-up .top-banner__h2 {
    margin-top: 15px;
}

@media (max-width: 768px) {
    .top-banner__inner .top-banner__text-up .top-banner__h2 {
        margin-top: 0;
        font-family: "Calisto-MT-Bold";
    }
}

.top-banner__inner .top-banner__text-down {
    margin-bottom: 20px;
    padding-left: 27%;
}

.top-banner__inner .top-banner__text-down .top-banner__h2 {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .top-banner__inner .top-banner__text-down .top-banner__h2 {
        margin-bottom: 0;
    }
}

.top-banner__inner .top-banner__image {
    font-size: 0;
}

@media (max-width: 1250px) {
    .top-banner__inner .top-banner__image {
        width: 50%;
    }

    .top-banner__inner .top-banner__image img {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .top-banner__inner .top-banner__image {
        width: 65%;
        margin-bottom: 20px;
    }
}

@media (max-width: 520px) {
    .top-banner__inner {
        flex-direction: column;
    }
}

.brand-span {
    font-size: 14px;
    color: #ffd966;
}

.brand-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffd966;
    border: 1px solid #fff;
    transition: 0.3s ease;
}

.brand-button:hover, .brand-button:focus {
    color: #777;
}

@media (max-width: 768px) {
    .brand-span {
        font-size: 9px;
    }
}

/* ============================================ */
/* === 5. ABOUT ME === */
/* ============================================ */

top-banner {
    position: relative;
    margin: 6rem 0 6rem;
}

@media (max-width: 1250px) {
    top-banner {
        margin: 150px 0;
    }
}

@media (max-width: 992px) {
    top-banner {
        margin: 75px 0;
    }
}

@media (max-width: 700px) {
    top-banner {
        margin: 0;
    }
}
.about-me
{
    position: relative;
    padding: 2rem 0 2rem;
}
.about-me-bckg {
    position: absolute;
    background-position: center;
    background-size: cover;
    top: -25px;
    right: 0;
    height: calc(100% + 50px);
    width: 70%;
    z-index: -1;
}

.about-me-bckg:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.7;
}

@media (max-width: 992px) {
    .about-me-bckg {
        width: 100%;
        padding-bottom: 15px;
    }
    .about-me {
        position: relative;
        margin: 0;
    }
}

.about-me-inner {
    display: flex;
    justify-content: center;
}

@media (max-width: 992px) {
    .about-me-inner {
        flex-direction: column;
        align-items: center;
        padding-top: 0;
    }
}

.about-me-slider {
    position: relative;
}

.about-me-slider .slick-arrow {
    position: absolute;
    bottom: -65px;
}

.about-me-slider .slick-prev {
    left: 43%;
}

@media (max-width: 520px) {
    .about-me-slider .slick-prev {
        left: 37%;
    }
}

.about-me-slider .slick-next {
    right: 43%;
    transform: rotate(270deg);
}

@media (max-width: 520px) {
    .about-me-slider .slick-next {
        right: 37%;
    }
}

@media (max-width: 768px) {
    .about-me-slider .slick-arrow {
        position: absolute;
        bottom: -70px;
    }
}

.span-arrow {
    cursor: pointer;
    color: #ffd966;
    border: 2px solid #ffd966;
    border-radius: 50%;
    margin: -20px -10px;
    transition: 0.3s ease;
    font-size: 1.8rem;
    width: 50px;
    padding-top: 5px;
    height: 50px;
    line-height: 55px;
    font-weight: bold;
    text-align: center;
    position: relative;
    transform: rotate(90deg);
}

.span-arrow:hover {
    border-color: #fff !important;
    color: #fff !important;
}

.span-arrow.key-active,
.span-arrow:active {
    border-color: #fff;
    color: #fff !important;
}

.slick-prev.key-press,
.slick-next.key-press {
    border-color: #fff !important;
}

.about-me__text.key-press-text::after {
    color: #ffd966 !important;
}

.about-me__text .universal-h2 {
    color: #ffffff;
    transition: color 0.05s linear;
}

.about-me__text .universal-h2.blink-title {
    color: #ffd966 !important;
}


@media (max-width: 620px) {

    .about-me__text p b
    {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .about-me__text p b
    {
        font-size: 15px;
    }
}

@media (max-width: 620px) {
    .about-me__text p b
    {
        font-size: 15px;
    }
}

.about-me__text {
    width: 85%;
    text-align: center;
    min-height: 380px;
}

.about-me__text .universal-h2 {
    color: #fff;
    padding-bottom: 20px;
    margin-bottom: 25px;
    font-family: 'bold';
    margin-top: 2rem;
}

.about-me__text p {
    line-height: 33px;
    color: #ffffff;
    font-family: 'light';
    font-size: 20px;
    word-spacing: 1px;
    direction: rtl;
    text-align: justify;
}

.about-me__text p b {
    font-size: 20px;
    color: #ffd966;
    font-family: 'regular';
}

@media (max-width: 960px) {
    .about-me__text p {
        margin-bottom: 0px;
        font-size: 15px;
        line-height: 23px;
        padding: 0 26px;
        word-spacing: 0px;
    }
    .portfolio-wrapper p b{
        font-size: 15px;
    }
    .about-me__text p b
    {
        font-size: 15px;
    }
}

.about-me__text h4 {
    margin-bottom: 7px;
    font-size: 25px;
    color: #ffd966;
}

.about-me__text .p-white {
    margin-bottom: 0;
    color: #fff;
}

@media (max-width: 1250px) {
    .about-me__text {
        width: 85%;
        margin-right: 40px;
    }
}

@media (max-width: 992px) {
    .about-me__text {
        width: 100%;
        margin-right: 0;
        text-align: center;
        min-height: 450px;
    }

    .about-me__text::after {
        bottom: 50px;
    }
}

.slick-slide:focus {
    outline: none;
}

/* Slider */
.slick-slider
{
    position: relative;

    display: block;
    box-sizing: border-box;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    /*
    min-height: 470px;
    */
}

.slick-list
{
    position: relative;

    display: block;
    overflow: hidden;

    margin: 0;
    padding: 0;
}
.slick-list:focus
{
    outline: none;
}
.slick-list.dragging
{
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list
{
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.slick-track
{
    position: relative;
    top: 0;
    left: 0;

    display: block;
    margin-left: auto;
    margin-right: auto;
}
.slick-track:before,
.slick-track:after
{
    display: table;

    content: '';
}
.slick-track:after
{
    clear: both;
}
.slick-loading .slick-track
{
    visibility: hidden;
}

.slick-slide
{
    display: none;
    float: left;

    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide
{
    float: right;
}
.slick-slide img
{
    display: block;
    width: 100%;
}
.slick-slide.slick-loading img
{
    display: none;
}
.slick-slide.dragging img
{
    pointer-events: none;
}
.slick-initialized .slick-slide
{
    display: block;
}
.slick-loading .slick-slide
{
    visibility: hidden;
}
.slick-vertical .slick-slide
{
    display: block;

    height: auto;

    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}
@media (max-width: 992px) {
    /*
    .slick-slider {
        min-height: 370px;
    }
    */
}
/* ============================================ */
/* === 6. CINEMA SECTION (BUSINESS FRAME) === */
/* ============================================ */

.body-cinema {
    background: #080808;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    border-radius: 40px;
    direction: rtl;
    width: 85%;
    margin: 1rem auto 5rem;
}

.cinema-section {
    max-width: 1400px;
    width: 100%;
    position: relative;
    background: #343232;
    border-radius: 20px;
    padding: 3rem 2rem;
    overflow: hidden;
    border: 2px solid #ffd966;
}

.cinema-section::before,
.cinema-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    background: repeating-linear-gradient(90deg, #2c2b2b 0px, #2c2b2b 4px, #1a1a1a 4px, #1a1a1a 8px);
    z-index: 1;
    pointer-events: none;
}

.cinema-section::before {
    left: 0;
    border-right: 2px solid #ffd966;
}

.cinema-section::after {
    right: 0;
    border-left: 2px solid #ffd966;
}

.spotlight {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    transform: rotate(25deg);
    animation: drift 12s infinite alternate;
    pointer-events: none;
}

@keyframes drift {
    0% {
        transform: rotate(20deg) translateX(-5%) translateY(-5%);
        opacity: 0.6;
    }
    100% {
        transform: rotate(35deg) translateX(5%) translateY(5%);
        opacity: 1;
    }
}

.cinema-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: anchor-center;
}

.cinema-header h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(184, 134, 11, 0.5);
    letter-spacing: 2px;
    display: inline-block;
    padding: 0 1rem;
    font-family: 'extrabold';
    color: #ffd966;
}

.cinema-header .tagline {
    color: #ffd966;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    background: #1a1a1a;
    display: inline-block;
    padding: 0.3rem 1.5rem;
    border-radius: 40px;
    font-family: 'medium';
    border-bottom: 2px dotted #ffd966;
    height: 50px;
    line-height: 45px;
}

.film-strip {
    width: 100%;
    height: 12px;
    background: repeating-linear-gradient(90deg, #1a1a1a 0px, #1a1a1a 20px, #111 20px, #111 40px);
    margin: 20px 0 30px;
    border-radius: 20px;
    position: relative;
}

.film-strip::before, .film-strip::after {
    content: "🎬";
    position: absolute;
    top: -8px;
    font-size: 1.4rem;
    background: #0a0a0a;
    padding: 0 8px;
}

.film-strip::before {
    left: 10px;
}

.film-strip::after {
    right: 10px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    position: relative;
    z-index: 5;
}

.cinema-card {
    display: block;
    background: #1a1a1a;
    border-radius: 25px;
    padding: 0.6rem 1.6rem 1.2rem 1.6rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(255, 217, 102, .7);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    border-bottom: none;
    border-top: none;
}
.cinema-card .onsale {
    display: block;
    color: #fff;
    background: url(images/badge.png);
    width: 140px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    text-align: left;
    left: -23px;
    padding: 11px 4px 0px 16px;
    top: 40px;
    font-size: 18px;
    font-family: 'demibold';
}
.cinema-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0) 80%);
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}

.cinema-card:hover::after {
    opacity: 1;
}

.cinema-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: #FFD966;
    box-shadow: 0 20px 30px -8px black, 0 0 15px rgba(255, 215, 0, 0.3);
}

.cinema-card h3 {
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #ffd966;
    font-family: 'bold';
    text-shadow: 0 0 black;
    padding-top: 10px;
}

.parenthesis-text {
    font-size: 1rem;
    color: #ffffff;
    display: inline-block;
    padding: 0 0.5rem 0.4rem;
    margin: 0 0 0.5rem 0.6rem;
    border-right: 4px solid #ffd966;
    border-radius: 0 0 25px;
    border-bottom: 2px dashed #ffd966;
    font-family: demibold;
}

.skill-desc {
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.5;
    margin-top: 0.5rem;
    padding: 0 0 0.3rem 0.4rem;
    border-radius: 0 25px;
}

.skill-desc .highlight {
    display: block;
    color: #ffd966;
    margin-top: 7px;
    border-right: 2px solid #ffd966;
    padding-right: 10px;
    font-family: 'bold';
}

@media (min-width: 1024px) {
    .cinema-card:nth-child(1),
    .cinema-card:nth-child(2) {
        width: calc(50% - 0.9rem);
    }
    .cinema-card:nth-child(3),
    .cinema-card:nth-child(4),
    .cinema-card:nth-child(5) {
        width: calc(33.333% - 1.2rem);
    }
    .cinema-card:nth-child(6),
    .cinema-card:nth-child(7) {
        width: calc(50% - 0.9rem);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .cinema-card {
        width: calc(50% - 0.9rem);
    }
}

@media (max-width: 767px) {
    .body-cinema {
        margin: -4rem auto 0rem;
    }
    .cinema-header {
        flex-direction: column;
        margin-bottom: 1rem;
    }
    .cinema-card {
        width: 100%;
    }
    .cinema-section {
        padding: 1.5rem;
        border-top: none;
        border-bottom: none;
        border-radius: 0;
        background: #080808;
    }
    .cinema-header .tagline {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    .cinema-header h2 {
        font-size: 1.5rem;
    }
    .cinema-card h3 {
        font-size: 1.2rem;
    }
    .skill-desc {
        text-align: justify;
    }
    .skill-desc .highlight {
        padding-right: 8px;
        font-size: 0.85rem;
        text-align: right;
    }
    .film-strip {
        background: none;
        margin: 20px 0 20px;
        height: 4px;
        border: 3px dashed #ffd966;
    }
}

/* ============================================ */
/* === 7. COUNTER === */
/* ============================================ */

.about-counter {
    position: relative;
    padding: 30px 0;
    background-size: cover;
    background-position: center;
    background: linear-gradient(90deg, transparent, #ffd966, #ffd966, #ffd966, transparent);
}

.about-counter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffd966;
    opacity: 0.9;
}

.about-counter .site-container {
    position: relative;
    z-index: 1;
}

@media (max-width: 850px) {
    .about-counter {
        padding: 50px 0 20px;
        margin-bottom: 50px;
    }
}

.counter-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.plus-count
{
    display: flex;
    justify-content: center;
}
.plus-count .plus
{
    padding-right: 5px;
}
.single-count {
    width: 23%;
    text-align: center;
    color: #1a1a1a;
}

.single-count span {
    display: block;
    margin-bottom: 25px;
    font-size: 40px;
    font-weight: 900;
}

.single-count p {
    font-size: 20px;
    text-transform: uppercase;
}

@media (max-width: 850px) {
    .single-count {
        width: 48%;
        margin-bottom: 30px;
    }

    .single-count .count {
        font-size: 35px;
        margin-bottom: 15px;
    }
}

@media (max-width: 500px) {
    .single-count {
        width: 50%;
        padding-bottom: 10px;
        border-bottom: none;
    }
}

.single-count__text {
    display: flex;
    justify-content: center;
}

.single-count__text img {
    margin-right: 20px;
}

/* ============================================ */
/* === 8. portfolio === */
/* ============================================ */

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #080808;
    width: 85%;
    margin: 1rem auto 1rem;
}

.filters-section {
    text-align: center;
    margin-bottom: 2rem;
    direction: rtl;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.filter-btn {
    background: #1a1a1a;
    border: 1px solid #d4a869;
    padding: 0.4rem 1.5rem 0.1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffd966;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    filter: drop-shadow(0px 2px 0px #ffd966);
    font-family: 'regular';
}

.filter-btn.active {
    background: #ffd966;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.filter-btn i {
    margin-left: 6px;
}

@media (max-width: 960px) {
    .portfolio-container {
        width: 96%;
        margin: 1rem auto 1rem;
    }
    .filter-btn {
        padding: 0.4rem 0.9rem 0.1rem 0.9rem;
        font-size: 1rem;
    }
    .filter-btn i {
        display: none;
    }
}

.portfolio {
    column-count: 4;
    column-gap: 1.5rem;
    margin-top: 1rem;
    direction: rtl;
    padding: 0 1rem;
}

.portfolio-header {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.portfolio-header h2 {
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    padding: 0 1rem;
    font-family: 'bold';
    color: #ffd966;
}

.portfolio-header p {
    color: #ffd966;
    font-size: 1.2rem;
    display: inline-block;
    padding: 0.3rem 1.5rem;
    border-radius: 25px;
    font-family: 'medium';
    border-bottom: 2px dotted #ffd966;
}

@media (max-width: 780px) {
    .portfolio-header {
        flex-direction: column;
        padding: 0;
    }
    .portfolio-header p {
        font-size: 0.9rem;
        padding: 0.3rem 0.9rem;
    }
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s ease;
    will-change: transform;
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 1;
    visibility: visible;
}

.portfolio-item.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
}

.portfolio-item.filter-animate {
    animation: fadeInUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 217, 102, 0.3);
    z-index: 5;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(3px);
    color: #1a1a1a;
    padding: 0.6rem .8rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: right;
    background: rgba(255, 217, 102, 0.85);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item:hover .image-caption {
    transform: translateY(100%);
    opacity: 0;
}

.category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgb(0, 0, 0, .7);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.category-badge i,
.category-badge .badge-icon {
    font-size: 0.6rem;
    color: #FFD966;
}

.category-badge:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.02);
}

.plus-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    padding: 9px 9px 10px 11px;
    text-align: center;
    line-height: 40px;
    background: #ffd966;
    border-radius: 50%;
    font-size: 3rem;
    color: #1a1a1a;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
    cursor: pointer;
    pointer-events: none;
    padding-bottom: 6px;
}

.portfolio-item:hover .plus-icon {
    opacity: 1 !important;
}

@media (max-width: 1200px) {
    .portfolio {
        column-count: 3;
    }
}

@media (max-width: 800px) {
    .portfolio {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .portfolio {
        column-count: 1;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    direction: ltr;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    display: flex;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    display: flex;
    flex-direction: row;
    width: 90%;
    height: 90%;
    background: white;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image-wrapper {
    flex: 0 0 40%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.lightbox-caption-new {
    flex: 0 0 60%;
    background: white;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    direction: rtl;
    text-align: right;
    border-right: 1px solid #f0e2d0;
    overflow-y: auto;
    transform: translateX(30px);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    transition-delay: 0.1s;
}

.lightbox.active .lightbox-caption-new {
    transform: translateX(0);
    opacity: 1;
}

.caption-text h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 3px solid #ffd966;
    display: inline-block;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
}

.caption-cat-badge {
    background: #ffd9661a;
    color: #1a1a1a;
    padding: 0.3rem 1rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    width: fit-content;
    border: 1px solid #ffd966;
}

.full-description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #2c3e4e;
    margin-top: 0.75rem;
    white-space: pre-line;
}

.btn-view-project {
    background-color: #ffd966;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: fit-content;
    transition: 0.2s;
}

.btn-view-project:hover {
    background-color: #1a1a1a;
    color: #ffd966;
    transform: scale(1.02);
}

.lb-close {
    position: absolute;
    top: 22px;
    left: 28px;
    background: #dc2626;
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 46px;
    height: 46px;
    padding-top: 7px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: 0.2s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    filter: drop-shadow(0px 0px 2px black);
}

.lb-close:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 217, 102, 0.7);
    backdrop-filter: blur(8px);
    border: none;
    color: #1a1a1a;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    padding-top: 7px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 25;
    font-weight: bold;
}

.lb-nav i {
    position: relative;
    bottom: 3px;
}

.lb-nav:hover {
    background: #ffd966;
    transform: translateY(-50%) scale(1.05);
}

.lb-prev {
    left: 15px;
}

.lb-next {
    right: 15px;
}

@media (max-width: 780px) {
    .lightbox-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        flex-direction: column;
    }
    .lightbox-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        padding: 1rem;
        min-height: 40vh;
    }
    .lightbox-caption-new {
        flex: 1;
        width: 100%;
        padding: 1.5rem;
        border-right: none;
        justify-content: flex-start;
        transform: translateY(20px);
    }
    .lightbox.active .lightbox-caption-new {
        transform: translateY(0);
    }
    .lightbox-image {
        max-height: 55vh;
    }
    .caption-text h4 {
        font-size: 1.6rem;
    }
    .lb-close {
        top: 12px;
        left: 16px;
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
    .lb-nav {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }
    .lb-prev {
        left: 8px;
    }
    .lb-next {
        right: 8px;
    }
}

/* ============================================================
   باکس توضیحات دسته‌بندی (جدید)
   ============================================================ */
/* ============================================ */
/* باکس توضیحات دسته‌بندی با انیمیشن نرم */
/* ============================================ */

.category-desc-box {
    background: #1a1a1a;
    border: 1px solid rgba(255, 217, 102, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    margin-top: 2rem;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-desc-box.visible {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    max-height: 800px !important;
    padding: 35px !important;
}

.category-desc-box.expanded {
    max-height: 3000px !important;
}

/* خط طلایی بالای باکس */
.category-desc-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd966, #ffe699);
    transition: width 0.8s ease;
    border-radius: 0 0 20px 0;
}

.category-desc-box.visible::before {
    width: 100%;
}

/* هدر باکس */
.category-desc-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(255, 217, 102, 0.15);
    direction: rtl;
}

.category-desc-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 217, 102, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffd966;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.category-desc-box.visible .category-desc-icon {
    background: rgba(255, 217, 102, 0.2);
    box-shadow: 0 0 30px rgba(255, 217, 102, 0.1);
}

.category-desc-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'medium', sans-serif;
}

/* بدنه باکس */
.category-desc-body {
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
    font-family: 'regular', sans-serif;
    direction: rtl;
    overflow: hidden;
    transition: all 0.5s ease;
}

.category-desc-body p {
    margin-bottom: 18px;
    line-height: 2.1;
}

.category-desc-body p strong {
    color: #ffd966;
    font-weight: 600;
}

.category-desc-body .highlight-box {
    background: rgba(255, 217, 102, 0.06);
    border-right: 3px solid #ffd966;
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
    color: #f5f5f5;
}

.category-desc-body .highlight-box strong {
    color: #ffd966;
}

/* فوتر باکس */
.category-desc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.category-desc-box.expanded .category-desc-footer {
    display: none;
}

.category-desc-footer-expanded {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 217, 102, 0.15);
}

.category-desc-box.expanded .category-desc-footer-expanded {
    display: flex;
}

/* دکمه‌ها */
.cat-desc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    border: 2px solid transparent;
    text-decoration: none;
    font-family: 'medium', sans-serif;
    background: transparent;
    color: #ffffff;
}

.cat-desc-toggle {
    border-color: #ffd966;
    color: #ffd966;
}

.cat-desc-toggle:hover {
    background: #ffd966;
    color: #080808;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 217, 102, 0.3);
}

.cat-desc-toggle svg {
    transition: transform 0.3s ease;
}

.category-desc-box.expanded .cat-desc-toggle svg {
    transform: rotate(180deg);
}

.cat-desc-close {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.cat-desc-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.cat-desc-order-btn {
    background: linear-gradient(135deg, #ffd966 0%, #ffe699 100%);
    color: #080808;
    border-color: #ffd966;
    font-weight: 700;
}

.cat-desc-order-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 217, 102, 0.4);
}

.cat-desc-order-btn i {
    font-size: 1rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .category-desc-box.visible {
        padding: 22px 18px !important;
    }
    .category-desc-title {
        font-size: 1.2rem;
    }
    .category-desc-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .category-desc-body {
        font-size: 0.9rem;
    }
    .cat-desc-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
        gap: 6px;
    }
    .category-desc-footer,
    .category-desc-footer-expanded {
        flex-direction: column;
        align-items: stretch;
    }
    .cat-desc-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-desc-box.visible {
        padding: 18px 14px !important;
    }
    .category-desc-header {
        gap: 12px;
        margin-bottom: 14px;
    }
    .category-desc-title {
        font-size: 1rem;
    }
    .category-desc-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .category-desc-body {
        font-size: 0.85rem;
    }
    .cat-desc-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
}
/* ===== باکس اصلی ===== */
.category-desc-box {
    margin-top: 2.5rem;
    background: var(--bg-card-Website-design-services, #1a1a1a);
    border: 1px solid var(--border-light-Website-design-services, rgba(255, 217, 102, 0.2));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
    padding: 0 35px;
    visibility: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

.category-desc-box.visible {
    max-height: 2500px;
    opacity: 1;
    padding: 35px;
    visibility: visible;
}

.category-desc-box.expanded {
    max-height: 5000px;
}

/* خط طلایی بالای باکس */
.category-desc-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd966, #ffe699);
    transition: width 0.8s ease;
    border-radius: 0 0 20px 0;
}

.category-desc-box.visible::before {
    width: 100%;
}

.category-desc-inner {
    position: relative;
}

/* ===== هدر باکس ===== */
.category-desc-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-light-Website-design-services, rgba(255, 217, 102, 0.15));
    direction: rtl;
}

.category-desc-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 217, 102, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-gold-Website-design-services, #ffd966);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.category-desc-box.visible .category-desc-icon {
    background: rgba(255, 217, 102, 0.2);
    box-shadow: 0 0 30px rgba(255, 217, 102, 0.1);
}

.category-desc-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white-Website-design-services, #ffffff);
    margin: 0;
    font-family: 'medium', sans-serif;
}

/* ===== بدنه باکس - متن کپی‌رایتینگ ===== */
.category-desc-body {
    position: relative;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 110px;
    line-height: 2;
    color: var(--text-muted-Website-design-services, rgba(255, 255, 255, 0.7));
    font-size: 0.98rem;
    font-family: 'regular', sans-serif;
    direction: rtl;
}

.category-desc-box.expanded .category-desc-body {
    max-height: 5000px;
}

/* ماسک گرادیانت برای حالت جمع‌شده */
.category-desc-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(transparent, var(--bg-card-Website-design-services, #1a1a1a));
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.category-desc-box.expanded .category-desc-body::after {
    opacity: 0;
}

.category-desc-body p {
    margin-bottom: 18px;
    line-height: 2.1;
}

.category-desc-body p strong {
    color: var(--accent-gold-Website-design-services, #ffd966);
    font-weight: 600;
}

.category-desc-body ul,
.category-desc-body ol {
    padding-right: 25px;
    margin-bottom: 18px;
    color: var(--text-muted-Website-design-services, rgba(255, 255, 255, 0.7));
}

.category-desc-body ul li,
.category-desc-body ol li {
    margin-bottom: 8px;
    line-height: 1.9;
}

.category-desc-body .highlight-box {
    background: rgba(255, 217, 102, 0.06);
    border-right: 3px solid var(--accent-gold-Website-design-services, #ffd966);
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
    color: var(--text-light-Website-design-services, #f5f5f5);
}

.category-desc-body .highlight-box strong {
    color: var(--accent-gold-Website-design-services, #ffd966);
}

/* ===== دکمه‌های پایین باکس - حالت جمع‌شده ===== */
.category-desc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.category-desc-box.expanded .category-desc-footer {
    display: none;
}

/* ===== دکمه‌های پایین باکس - حالت باز ===== */
.category-desc-footer-expanded {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light-Website-design-services, rgba(255, 217, 102, 0.15));
}

.category-desc-box.expanded .category-desc-footer-expanded {
    display: flex;
}

/* ===== استایل عمومی دکمه‌ها ===== */
.cat-desc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    border: 2px solid transparent;
    text-decoration: none;
    font-family: 'medium', sans-serif;
    background: transparent;
    color: var(--text-white-Website-design-services, #ffffff);
}

/* ===== دکمه ادامه مطلب (راست) ===== */
.cat-desc-toggle {
    border-color: var(--accent-gold-Website-design-services, #ffd966);
    color: var(--accent-gold-Website-design-services, #ffd966);
}

.cat-desc-toggle:hover {
    background: var(--accent-gold-Website-design-services, #ffd966);
    color: var(--primary-dark-Website-design-services, #080808);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 217, 102, 0.3);
}

.cat-desc-toggle svg {
    transition: transform 0.3s ease;
}

.category-desc-box.expanded .cat-desc-toggle svg {
    transform: rotate(180deg);
}

/* ===== دکمه ادامه نمونه کار (چپ) ===== */
.cat-desc-portfolio-link {
    border-color: var(--text-muted-Website-design-services, rgba(255, 255, 255, 0.3));
    color: var(--text-light-Website-design-services, #f5f5f5);
}

.cat-desc-portfolio-link:hover {
    background: var(--text-white-Website-design-services, #ffffff);
    color: var(--primary-dark-Website-design-services, #080808);
    transform: translateY(-2px);
    border-color: var(--text-white-Website-design-services, #ffffff);
}

/* ===== دکمه بستن (راست) ===== */
.cat-desc-close {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-muted-Website-design-services, rgba(255, 255, 255, 0.6));
}

.cat-desc-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted-Website-design-services, rgba(255, 255, 255, 0.4));
    transform: translateY(-2px);
}

/* ===== دکمه سفارش طراحی سایت (چپ) ===== */
.cat-desc-order-btn {
    background: var(--gradient-gold-Website-design-services, linear-gradient(135deg, #ffd966 0%, #ffe699 100%));
    color: var(--primary-dark-Website-design-services, #080808);
    border-color: var(--accent-gold-Website-design-services, #ffd966);
    font-weight: 700;
}

.cat-desc-order-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 217, 102, 0.4);
}

.cat-desc-order-btn i {
    font-size: 1rem;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .category-desc-box.visible {
        padding: 22px 18px;
    }

    .category-desc-title {
        font-size: 1.2rem;
    }

    .category-desc-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .category-desc-body {
        font-size: 0.9rem;
        max-height: 90px;
    }

    .cat-desc-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .category-desc-footer,
    .category-desc-footer-expanded {
        gap: 10px;
    }

    .cat-desc-order-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .category-desc-box.visible {
        padding: 18px 14px;
    }

    .category-desc-header {
        gap: 12px;
        margin-bottom: 14px;
    }

    .category-desc-title {
        font-size: 1rem;
    }

    .category-desc-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .category-desc-body {
        font-size: 0.85rem;
        max-height: 75px;
    }

    .cat-desc-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
        gap: 4px;
    }

    .cat-desc-order-btn {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    /* در موبایل دکمه‌ها به صورت ستونی */
    .category-desc-footer,
    .category-desc-footer-expanded {
        flex-direction: column;
        align-items: stretch;
    }

    .cat-desc-btn {
        justify-content: center;
    }
}


/* ============================================ */
/* === 9. CONSULTATION === */
/* ============================================ */

.consult-section {
    direction: rtl;
    padding: 4rem 2rem;
    margin: 8rem auto 1rem;
    border-radius: 30px;
    width: 85%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 217, 102, 0.3);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 5px 10px -5px #ffffff, 0 0 15px #ffd966;
}

.consult-section::before {
    content: "💬";
    position: absolute;
    font-size: 12rem;
    opacity: 0.03;
    bottom: -30px;
    left: -30px;
    pointer-events: none;
}

.consult-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.consult-info {
    flex: 1;
    min-width: 250px;
}

.consult-info h2 {
    font-size: 2.2rem;
    color: #ffd966;
    margin-bottom: 1rem;
    font-family: 'bold';
}

.consult-info p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.consult-features {
    list-style: none;
    padding: 0;
}

.consult-features li {
    color: #fff;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consult-features li i {
    color: #ffd966;
    font-size: 1.2rem;
    width: 25px;
}

.consult-form {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 217, 102, 0.2);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd966;
    box-shadow: 0 0 0 3px rgba(255, 217, 102, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.consult-btn {
    width: 100%;
    background: #ffd966;
    color: #1a1a1a;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.consult-btn:hover {
    background: #e6c34f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.free-badge {
    display: inline-block;
    background: #ffd966;
    color: #1a1a1a;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .consult-section {
        padding: 2rem 1rem;
        width: 85%;
        margin: 7rem auto 5rem;
    }
    .consult-info h2 {
        font-size: 1.6rem;
    }
}

/* ============================================ */
/* === 10. BLOG === */
/* ============================================ */

.blog-main {
    padding: 55px 0 125px 0;
    background-color: #080808;
}

.blog-header {
    padding: 1.4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: #080808;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.blog-header h2 {
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    padding: 0 1rem;
    font-family: 'bold';
    color: #ffd966;
    word-spacing: 10px;
}

.blog-header a {
    color: #080808;
    background: #ffd966;
    font-size: 1.2rem;
    display: inline-block;
    padding: 0.4rem 1.5rem 0.2rem 1.5rem;
    border-radius: 25px;
    font-family: 'regular';
    border-bottom: 1px dashed #1a1a1a;
}

@media (max-width: 768px) {
    .blog-header h2 {
        font-size: 2.3rem;
    }
    .blog-main {
        margin-bottom: 0px;
        padding: 0;
    }
    .blog-header a {
        font-size: 1rem;
    }
}

.blog-inner {
    display: flex;
    justify-content: space-between;
}

.blog-slider .slick-slide {
    margin: 0 15px;
}

.blog-slider .slick-list {
    margin: 0 -15px;
}

.single-blog {
    display: flex !important;
}

.single-blog .single-blog__img {
    width: 50%;
    font-size: 0;
    border-radius: 15px 0 25px 15px;
}
.single-blog .single-blog__img img{
    border-radius: 15px 0 25px 15px;
}
.single-blog .single-blog__text {
    width: 50%;
    padding: 7%;
    border: 3px solid #ffd966;
    border-left: 0;
    background: #343434;
    border-radius: 0 15px 15px 25px;
}

.single-blog .single-blog__text h4 {
    margin: 20px 0 5px 0;
    font-size: 22px;
    line-height: 33px;
    font-family: 'light';
    direction: rtl;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.single-blog .single-blog__text span {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ffd966;
    font-family: 'demibold';
    text-align: right;
}

@media (max-width: 960px) {
    .single-blog .single-blog__text span {
        margin-top: 10px;
    }
}

.single-blog .single-blog__text p {
    color: #ffffff;
    line-height: 28px;
    font-family: 'light';
    direction: rtl;
    text-align: justify;
    font-size: 1.1rem;
    word-spacing: -2px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .single-blog .single-blog__text {
        padding: 5%;
    }
    .single-blog .single-blog__text h4 {
        margin-bottom: 3px;
        font-size: 20px;
        line-height: 24px;
    }
    .single-blog .single-blog__text p {
        font-size: 14px;
        line-height: 19px;
    }
}

@media (max-width: 420px) {
    .single-blog .single-blog__text {
        padding: 3%;
    }
    .single-blog .single-blog__text h4 {
        font-size: 16px;
    }
    .single-blog .single-blog__text span {
        margin-bottom: 7px;
        font-size: 12px;
    }
    .single-blog .single-blog__text p {
        font-size: 13px;
        line-height: 16px;
    }
}

.single-blog:nth-child(even) h4 {
    color: #ffd966;
}

@media (max-width: 1250px) {
    .single-blog .single-blog__img img {
        width: 100%;
        height: 100%;
    }
}

.blog-slider {
    position: relative;
}

.blog-slider .slick-arrow {
    position: absolute;
    bottom: -22%;
}

.blog-slider .slick-prev {
    left: 45.5%;
}

@media (max-width: 1250px) {
    .blog-slider .slick-prev {
        left: 40%;
    }
}

@media (max-width: 520px) {
    .blog-slider .slick-prev {
        left: 35%;
        bottom: -70px !important;
    }
    .blog-slider .slick-next {
        bottom: -70px !important;
    }
}

.blog-slider .slick-next {
    right: 45.5%;
}

@media (max-width: 1250px) {
    .blog-slider .slick-next {
        right: 40%;
    }
}

@media (max-width: 520px) {
    .blog-slider .slick-next {
        right: 35%;
    }
}

.blog-slider .span-arrow {
    color: #ffd966;
    border: 2px solid #ffd966;
    bottom: -85px;
    z-index: 200;
}

.blog-slider .span-arrow:hover {
    border-color: #fff !important;
    color: #fff !important;
}

.blog-slider .span-arrow:active {
    border-color: #fff !important;
    color: #fff !important;
}
/* ============================================ */
/* BLOG SLIDER ARROWS - FIXED */
/* ============================================ */

.blog-slider {
    position: relative;
}

.blog-slider .slick-arrow {
    position: absolute;
    bottom: -85px;
    z-index: 200;
    cursor: pointer;
    border: 2px solid #ffd966;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #080808;
    color: #ffd966;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.blog-slider .slick-prev {
    left: 45.5%;
}

.blog-slider .slick-next {
    right: 45.5%;
    transform: rotate(270deg);
}

.blog-slider .slick-arrow:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: #1a1a1a;
}

.blog-slider .slick-arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* موبایل */
@media (max-width: 520px) {
    .blog-slider .slick-prev {
        left: 35%;
        bottom: -70px !important;
    }
    .blog-slider .slick-next {
        right: 35%;
        bottom: -70px !important;
    }
    .blog-slider .slick-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .blog-slider .slick-arrow svg {
        width: 18px;
        height: 18px;
    }
}
/* ============================================ */
/* === 11. BUSINESS WORKSHOP (COURSES) === */
/* ============================================ */

.business-workshop {
    max-width: 1400px;
    width: 85%;
    background-color: #080808;
    position: relative;
    overflow: hidden;
    direction: rtl;
    margin: 1rem auto 1rem;
    padding: 0 0 1rem 0;
    border-radius: 20px;
}

.business-header {
    padding: 1.4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: #080808;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.business-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    display: inline-block;
    padding: 0 1rem;
    color: #ffd966;
    word-spacing: 2px;
}

.business-header p {
    color: #ffd966;
    font-size: 1.2rem;
    display: inline-block;
    padding: 0.3rem 1.5rem;
    border-radius: 25px;
    font-family: 'medium';
    border-bottom: 2px dotted #ffd966;
}

.courses-special {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    padding: 0 1.5rem;
}

.course-card {
    display: flex;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    border-radius:20px;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.3);
}

.course-card.top-course {
    width: calc(50% - 0.9rem);
    flex-direction: row;
    align-items: stretch;
}

.top-course .card-img {
    width: 35%;
    object-fit: cover;
    background: #F4F9FD;
}

.top-course .card-content {
    width: 65%;
    padding: 1rem;
}

.course-card.bottom-course {
    width: calc(33.333% - 1.2rem);
    flex-direction: column;
}

.bottom-course .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid;
}

.card-content {
    padding: 1.3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-card h3 {
    font-size: 1.45rem;
    color: #0B2F49;
    margin-bottom: 0.2rem;
    border-right: 4px solid;
    padding-right: 0.5rem;
    padding-top: 9px;
    font-family: 'regular';
    text-shadow: 0 0 black;
    text-align: right;
}

.badge-pro {
    font-size: 1.1rem;
    padding: 0.35rem 0.9rem 0.3rem 0.9rem;
    display: inline-block;
    width: fit-content;
    font-weight: bold;
    font-family: 'demibold';
    color: #ffffff;
    border-radius: 15px 0 0 15px;
}

.course-desc {
    font-size: 1rem;
    color: #080808;
    line-height: 1.55;
    margin: 0.5rem 0.5rem 0.5rem 0;
    flex-grow: 1;
}

.course-desc .benefit {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-desc .need {
    font-size: 1.2rem;
    font-family: 'demibold';
    padding-bottom: 2px;
}

.course-desc .cta {
    font-size: 1.2rem;
    font-family: 'demibold';
    padding-top: 2px;
}

.course-desc span {
    color: #000;
    padding: 3px 1px;
    border-radius: 0;
    font-family: 'medium';
    position: relative;
    cursor: pointer;
    display: inline-block;
    transition: font-family 0.3s ease, color 0.4s ease, transform 0.3s ease;
    background: transparent !important;
}

.course-desc span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-desc span.active::after {
    width: 100%;
}

.course-desc span:not(.active)::after {
    width: 0;
    transition: width 0s ease;
}

.course-desc span.active {
    font-family: 'bold';
    transform: scale(1.04);
}

/* Course Colors */
.color-1 {
    border-right: 4px solid #3c9e64 !important;
}

.color-1 h3 {
    border-right-color: #3c9e64;
}

.color-1 .badge-pro {
    background: #3c9e64;
}

.color-1 .card-img {
    border-bottom-color: #3c9e64;
}

.color-1 .btn-pro {
    background: #3c9e64;
}

.color-1 .course-desc span::after {
    background: #3c9e64;
    box-shadow: 0 2px 12px rgba(60, 158, 100, 0.4);
}

.color-1 .course-desc span.active {
    color: #2d7a4e;
}

.color-2 {
    border-right: 4px solid #1877F2 !important;
}

.color-2 h3 {
    border-right-color: #1877F2;
}

.color-2 .badge-pro {
    background: #1877F2;
}

.color-2 .card-img {
    border-bottom-color: #1877F2;
}

.color-2 .btn-pro {
    background: #1877F2;
}

.color-2 .course-desc span::after {
    background: #1877F2;
    box-shadow: 0 2px 12px rgba(24, 119, 242, 0.4);
}

.color-2 .course-desc span.active {
    color: #0d5bb5;
}

.color-3 {
    border-right: 4px solid #a30909 !important;
}

.color-3 h3 {
    border-right-color: #a30909;
}

.color-3 .badge-pro {
    background: #a30909;
}

.color-3 .card-img {
    border-bottom-color: #a30909;
}

.color-3 .btn-pro {
    background: #a30909;
}

.color-3 .course-desc span::after {
    background: #a30909;
    box-shadow: 0 2px 12px rgba(163, 9, 9, 0.4);
}

.color-3 .course-desc span.active {
    color: #7a0707;
}

.color-4 {
    border-right: 4px solid #FF5722 !important;
}

.color-4 h3 {
    border-right-color: #FF5722;
}

.color-4 .badge-pro {
    background: #FF5722;
}

.color-4 .card-img {
    border-bottom-color: #FF5722;
}

.color-4 .btn-pro {
    background: #FF5722;
}

.color-4 .course-desc span::after {
    background: #FF5722;
    box-shadow: 0 2px 12px rgba(255, 87, 34, 0.4);
}

.color-4 .course-desc span.active {
    color: #cc4400;
}

.color-5 {
    border-right: 4px solid #833AB4 !important;
}

.color-5 h3 {
    border-right-color: #833AB4;
}

.color-5 .badge-pro {
    background: #833AB4;
}

.color-5 .card-img {
    border-bottom-color: #833AB4;
}

.color-5 .btn-pro {
    background: #833AB4;
}

.color-5 .course-desc span::after {
    background: #833AB4;
    box-shadow: 0 2px 12px rgba(131, 58, 180, 0.4);
}

.color-5 .course-desc span.active {
    color: #6a2e8e;
}

.btn-pro {
    display: block;
    padding: 0.6rem 0 0.4rem 0;
    text-align: right;
    font-weight: bold;
    font-family: 'demibold';
    transition: 0.2s;
    margin-top: 0.4rem;
    font-size: 1.15rem;
    word-spacing: 3px;
    color: #fff;
    position: relative;
    padding-right: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 1px 0 #00000087;
}

.btn-pro:after {
    content: " ";
    font-family: icomoon !important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    left: 0;
    top: -1.5px;
    bottom: 0;
    width: 3rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 0 1rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pro i {
    position: absolute;
    left: 34px;
    font-size: 1.5rem;
    top: 11px;
}

.course-card:hover .btn-pro {
    transform: scale(0.98);
    opacity: 0.9;
}

.footer-note {
    background: #FFD966;
    border-radius: 0 0 30px 30px;
    padding: 1.3rem 1rem 1rem 1rem;
    text-align: center;
    color: #080808;
    font-weight: 500;
    font-size: 1.2rem;
    margin: 3.5rem 2rem 2rem 2rem;
    border-bottom: 2.2px dashed #000;
}

@media (max-width: 1000px) {
    .course-card.top-course {
        flex-direction: column;
        width: calc(50% - 0.9rem);
    }
    .top-course .card-img,
    .top-course .card-content {
        width: 100%;
    }
    .top-course .card-img {
        height: 200px;
        border-bottom: 3px solid;
    }
    .course-card.bottom-course {
        width: calc(50% - 0.9rem);
    }
}

@media (max-width: 960px) {
    .business-header h2 {
        font-size: 2rem;
        word-spacing: 3px;
    }
    .business-header {
        flex-direction: column;
        padding: 6rem 1rem 1rem 1rem;
    }
    .business-header p {
        font-size: 0.8rem;
        padding: 0.3rem 0.9rem;
    }
    .course-card.top-course,
    .course-card.bottom-course {
        width: 100%;
    }
    .courses-special {
        margin: 0.5rem;
        padding: 0 0.5rem;
    }
    .footer-note {
        font-size: .85rem;
        padding: 0.5rem 0;
        width: 90%;
        margin: 40px auto 0;
    }
    .footer-note span {
        display: none;
    }
    .footer-note strong {
        display: block;
    }
}
@media (max-width: 960px) {
    .business-workshop {
        width: 95%;
        margin-top: 4rem;
    }
}
@media (max-width: 600px) {
    .business-workshop {
        width: 95%;
        margin-top: 4rem;
    }
    .course-desc {
        font-size: 0.95rem;
    }
    .card-content {
        padding: 1.1rem;
    }
    .course-desc span {
        font-size: 1rem;
        padding: 2px 2px;
    }
    .course-card h3 {
        font-size: 1.1rem;
        font-family: 'extrabold';
    }
    .badge-pro {
        font-size: 0.9rem;
        padding: 0.2rem 0.6rem;
    }
    .btn-pro {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }
}

/* ============================================ */
/* === 12. RAIN CARDS (TESTIMONIALS) === */
/* ============================================ */

.rain-cards-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    direction: rtl;
}

.sticky-header {
    padding: 1.4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: #080808;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    margin: 0 auto 0.3rem;
}

.sticky-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    padding: 0 1rem;
    color: #ffd966;
}

.sticky-header p {
    color: #FFD966;
    font-size: 1.2rem;
    display: inline-block;
    padding: 0.3rem 1.5rem;
    border-radius: 25px;
    font-family: 'medium';
    border-bottom: 2px dotted #ffd966;
}

.rain-card {
    position: absolute;
    background: #ffd966;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 217, 102, 0.4);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    will-change: transform, opacity;
}

@keyframes riseAndFadeVariety {
    0% {
        bottom: -250px;
        opacity: 0;
        transform: translateX(-50%) scale(0.9) translateY(0px) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) scale(1) translateY(-5px) rotate(1deg);
    }
    25% {
        transform: translateX(-50%) scale(1.02) translateY(3px) rotate(-1deg);
    }
    40% {
        transform: translateX(-50%) scale(1) translateY(-4px) rotate(2deg);
    }
    55% {
        transform: translateX(-50%) scale(1.01) translateY(2px) rotate(-2deg);
    }
    70% {
        transform: translateX(-50%) scale(1) translateY(-2px) rotate(1deg);
    }
    85% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1) translateY(0px) rotate(0deg);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(-50%) scale(0.95) translateY(-10px) rotate(0deg);
    }
}

@keyframes riseAndFadeWobble {
    0% {
        bottom: -250px;
        opacity: 0;
        transform: translateX(-50%) scale(0.9) translateX(0px) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) scale(1) translateX(8px) rotate(2deg);
    }
    30% {
        transform: translateX(-50%) scale(1.01) translateX(-8px) rotate(-2deg);
    }
    50% {
        transform: translateX(-50%) scale(1) translateX(5px) rotate(1deg);
    }
    70% {
        transform: translateX(-50%) scale(1) translateX(-5px) rotate(-1deg);
    }
    85% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1) translateX(0px) rotate(0deg);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(-50%) scale(0.95) translateX(0px) rotate(0deg);
    }
}

@keyframes riseAndFadeWave {
    0% {
        bottom: -250px;
        opacity: 0;
        transform: translateX(-50%) scale(0.9);
    }
    15% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    30% {
        transform: translateX(-50%) scale(1.02) translateY(-8px);
    }
    50% {
        transform: translateX(-50%) scale(1) translateY(5px);
    }
    70% {
        transform: translateX(-50%) scale(1.01) translateY(-4px);
    }
    85% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1) translateY(0px);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(-50%) scale(0.95) translateY(0px);
    }
}

.card-template {
    display: none;
}

.card-screenshot {
    background: #ffd966;
    padding: 0.8rem;
    text-align: center;
}

.card-screenshot img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.rain-card .card-content {
    padding: 0.8rem 0.6rem;
    text-align: center;
    background: #ffd966;
}

.rain-card .card-content .client-name {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.rain-card .card-content .client-position {
    font-size: 0.6rem;
    color: #1a1a1a;
    font-weight: 500;
}

@media (min-width: 992px) {
    .rain-card {
        width: 280px;
    }
    .rain-card .card-screenshot img {
        height: 160px;
    }
    .sticky-header h2 {
        font-size: 2.5rem;
    }
    .sticky-header p {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .rain-card {
        width: 220px;
    }
    .sticky-header {
        width: 100%;
        flex-direction: column;
    }
    .rain-card .card-screenshot img {
        height: 125px;
    }
}

@media (max-width: 767px) {
    .rain-card {
        width: 200px;
    }
    .sticky-header {
        width: 100%;
        flex-direction: column;
    }
    .rain-card .card-screenshot {
        padding: 0.5rem;
    }
    .rain-card .card-screenshot img {
        height: 170px;
    }
    .rain-card .card-content {
        padding: 0.4rem 0.3rem;
    }
    .client-name {
        font-size: 0.65rem;
    }
    .client-position {
        font-size: 0.5rem;
    }
    .sticky-header h2 {
        font-size: 1.4rem;
    }
    .sticky-header p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .rain-card {
        width: 180px;
    }
    .rain-card .card-screenshot img {
        height: 95px;
    }
}

/* ============================================ */
/* === 13. LOGOS (CLIENTS) === */
/* ============================================ */

.logo-header {
    padding: 1.4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: #080808;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    direction: rtl;
}

.logo-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    padding: 0 1rem;
    color: #ffd966;
    word-spacing: 10px;
}

.logo-header p {
    color: #FFD966;
    font-size: 1.2rem;
    display: inline-block;
    padding: 0.3rem 1.5rem;
    border-radius: 25px;
    font-family: 'medium';
    border-bottom: 2px dotted #ffd966;
}

.logos {
    overflow: hidden;
    padding: 0 0 100px 0;
    width: 75%;
    margin: 0 auto;
    max-width: 1360px;
}

.logo_items {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logo_items img {
    height: 100px;
    margin: 0 15px;
    object-fit: contain;
    border-bottom: 2px solid #ffd966;
    border-top: 2px solid #ffd966;
    border-radius: 0 30px 0 30px;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.logos:hover .logo_items {
    animation-play-state: paused;
}

.logos::before,
.logos::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
}

@media (max-width: 780px) {
    .logo-header h2 {
        font-size: 2rem;
        word-spacing: 3px;
    }
    .logo-header p {
        font-size: 0.9rem;
    }
    .logos {
        padding: 2rem 1rem;
        width: 90%;
    }
    .logo-header {
        flex-direction: column;
        padding: 0 0 50px 0;
    }
}

/* ============================================ */
/* === 14. FOOTER === */
/* ============================================ */

.footer {
    background-color: #343434;
    border-radius: 20rem 0 0 0;
    padding: 3rem 0 0;
    direction: rtl;
    position: relative;
    z-index: 1;
    margin-top: 12rem;
}

.container {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1140px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
}

.head-info__title--white {
    color: #ffd966;
    display: block;
    text-align: right;
    padding-right: 20px;
    font-size: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    font-family: 'demibold';
}

.head-info__title--white::before {
    content: "";
    position: absolute;
    background-color: #ffd966;
    height: 2px;
    width: 12px;
    top: 50%;
    transform: translateY(-50%);
    right: -0.2rem;
}

.head-info__title--white::after {
    content: "";
    position: absolute;
    background-color: #ffd966;
    height: 2px;
    width: 25px;
    top: 67%;
    transform: translateY(-50%);
    right: -0.7rem;
}

.footer__info {
    background-color: #fff;
    box-shadow: 0 5px 23px rgba(0, 0, 0, 0.09);
    border-radius: 15px;
    padding: 2rem 2rem 1rem;
    margin-left: 4rem;
    position: relative;
    margin-top: -16rem;
    z-index: 20;
}

.footer__text {
    font-size: 0.95rem;
    text-align: justify;
    color: #31474e;
    line-height: 1.5;
    padding-bottom: 0.5rem;
}

.footer__contact {
    padding-top: 10px;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer__contact-item i {
    font-size: 1.3rem;
    width: 2rem;
}

.footer__contact-item-val {
    font-size: 1rem;
    color: #31474e;
    text-decoration: none;
    padding-right: 8px;
}

@media (max-width: 960px) {
    .footer__contact-item-val {
        font-size: 0.85rem;
        color: #31474e;
        text-decoration: none;
        padding-right: 0;
    }
}

.footer-tel {
    direction: ltr;
    background: #ffd966;
    padding: 5px 12px;
    border-radius: 15px;
}

.footer-tel a {
    font-size: 1.5rem;
    padding-left: 10px;
    position: relative;
    top: 5px;
}

.footer-tel i {
    transform: rotate(110deg);
    position: relative;
    top: 5px;
}

.footer__social ul {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 0;
    margin-top: 1rem;
}

.footer__social ul li {
    list-style: none;
}

.footer__social ul li i {
    color: #fff;
    font-size: 1.75rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.footer__social ul li i.fa-instagram {
    background: radial-gradient(circle at 30% 110%, #ffdb8d, #feda77, #d62976, #962fbf, #4f5bd5);
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5);
    background: #f00075;
}

.footer__social ul li i.fa-whatsapp {
    background-color: #25D366;
}

.footer__social ul li i.fa-telegram-plane {
    background-color: #26A5E4;
}

.footer__content {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    text-align: start;
    padding-right: 20px;
}

.footer__link ul li {
    margin-bottom: 0.6rem;
    list-style: none;
}

.footer__link ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: color 0.2s;
}

.footer__link ul li a:hover {
    color: #ffd966;
}

.footer__link ul li a::before {
    content: "";
    position: absolute;
    right: -0.9rem;
    width: 6px;
    height: 4px;
    background-color: #ffd966;
    top: 58%;
    transform: translateY(-50%);
    transition: 0.2s;
}

.footer__link ul li a:hover::before {
    background-color: #fff;
    width: 10px;
    transition: 0.2s;
}

.desktop-posts {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-right: 20px;
}

.post-item {
    display: flex;
    flex-direction: column;
    width: 6rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.post-item:hover {
    transform: translateY(-3px);
}

.post-item img {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.8rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    transition: box-shadow 0.2s ease;
}

.post-item.active-glow img {
    box-shadow: 0 0 0 2px #ffd966, 0 0 0 5px rgba(255, 217, 102, 0.4), 0 4px 2px rgba(0, 0, 0, 0.2);
    border-radius: 0.8rem;
}

.scroll-title-wrapper {
    width: 100%;
    overflow-x: hidden;
    margin-top: 6px;
    padding: 5px 0;
    direction: rtl;
    position: relative;
}

.scroll-title {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0 6px;
    transform: translateX(0%);
    will-change: transform;
    direction: rtl;
    font-family: 'extralight';
}

.scroll-title.animate-marquee {
    animation-name: marqueeScroll;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.accordion-header-mobile {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 94%;
    background: #2c2c2c;
    padding: 1rem 1rem 0.7rem 1rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd966;
    margin: 0 auto;
    filter: drop-shadow(0px 1px 1px #ffd966);
}

.accordion-header-mobile.active svg {
    position: relative;
    transition: all .5s;
    transform: rotate(180deg);
}

.accordion-content-mobile {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    padding: 0 0.2rem;
    margin: 0;
    background: #2c2c2c80;
    width: 100%;
    transform: translateY(-10px);
}

.accordion-content-mobile.open {
    max-height: 800px;
    opacity: 1;
    padding: 0.8rem 0.2rem 0.2rem;
    transform: translateY(0);
}

.quick-menu-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-right: 3rem;
    background: #ffd966;
    margin: 0 20px;
    padding: 15px;
    border-radius: 5px;
}

.quick-menu-vertical li {
    list-style: none;
    background: #323232;
    color: #ffd966;
    padding: 10px;
}

.quick-menu-vertical li a {
    color: #ffd966;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding-right: 20px;
}

.quick-menu-vertical li a::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: #ffd966;
    transform: translateY(120%);
    transition: 0.2s;
    right: 50px;
}

.mobile-slider-wrapper {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
}

.mobile-slider {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 12px;
    padding-bottom: 10px;
}

.slider-item {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
}

.slide-rect {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}

.slide-title {
    width: 75%;
    font-weight: 600;
    font-size: 0.9rem;
    color: #000;
}

.slide-date {
    font-size: 0.7rem;
    color: #facc15;
}

.slide-img {
    width: 25%;
    aspect-ratio: 1 / 0.9;
    border-radius: 16px;
    overflow: hidden;
}

.slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer__copyright {
    padding: 0 10rem;
}

.footer__copyright-text {
    margin-top: 3rem;
    color: #d9d9d9;
    border-top: 1px solid #1a1a1a;
    padding: 1rem 0;
    font-size: 0.9rem;
    text-align: center;
}

.col-12 {
    width: 100%;
}

@media (max-width: 768px) {
    .footer {
        padding-top: 100px;
        border-radius: 2rem 0 0 0;
        margin-top: 3rem;
    }
    .col-lg-4 {
        width: 100%;
        margin-bottom: .5rem;
    }
    .footer .row:first-child {
        display: flex;
        flex-direction: column;
    }
    .footer .row:first-child .col-lg-4:first-child {
        order: 1;
    }
    .footer .row:first-child .col-lg-4:nth-child(2) {
        order: 2;
    }
    .footer .row:first-child .col-lg-4:nth-child(3) {
        order: 3;
    }
    .footer__info {
        margin-top: -150px;
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
        border-radius: 30px 30px 0 0;
        background-color: #323232;
    }
    .footer__text {
        color: #fff;
        font-size: 0.95rem;
    }
    .footer-address {
        color: #fff !important;
    }
    .footer__contact-item i.fa-map-marker-alt {
        width: 1.5rem;
        position: relative;
        right: 7px;
        color: #ffd966;
        margin-left: 7px;
    }
    .footer__head, .desktop-posts, .footer__content.desktop-only-content {
        display: none !important;
    }
    .accordion-header-mobile {
        display: flex !important;
    }
    .footer__copyright {
        padding: 0 1rem !important;
    }
}

@media (min-width: 769px) {
    .accordion-header-mobile, .accordion-content-mobile, .mobile-slider-wrapper, .quick-menu-vertical {
        display: none !important;
    }
    .footer__content.desktop-only-content {
        display: flex !important;
    }
    .desktop-posts {
        display: flex !important;
    }
    .footer__head {
        display: block !important;
    }
}

/* ============================================ */
/* === 15. MOBILE OPTIMIZATIONS === */
/* ============================================ */

@media (max-width: 1024px) {
    * {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    button,
    a,
    input,
    textarea,
    select,
    [role="button"],
    .accordion-header-mobile,
    .post-item,
    .slider-item,
    .footer__link ul li a,
    .quick-menu-vertical li a,
    .footer__social ul li a,
    .footer-tel a,
    .slide-rect {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    .no-tap-highlight {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    *:focus,
    *:active,
    *:visited,
    *:hover,
    *:focus-visible {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
    }

    .accordion-header-mobile:focus,
    .accordion-header-mobile:active,
    .accordion-header-mobile:focus-visible {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .quick-menu-vertical li a:focus,
    .quick-menu-vertical li a:active,
    .quick-menu-vertical li a:focus-visible {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .slider-item:focus,
    .slider-item:active,
    .slider-item:focus-visible {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .post-item:focus,
    .post-item:active,
    .post-item:focus-visible {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .footer__social ul li a:focus,
    .footer__social ul li a:active,
    .footer__social ul li a:focus-visible {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .footer-tel a:focus,
    .footer-tel a:active,
    .footer-tel a:focus-visible {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    a:focus,
    a:active,
    a:focus-visible {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    button:focus,
    button:active,
    button:focus-visible {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    img {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        pointer-events: none;
    }
}

/* ============================================ */
/* === 16. UTILITIES & MISC === */
/* ============================================ */

.invite-message {
    color: #ffd966;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 20px;
    margin-top: 1rem;
    font-family: 'GramophoneFa';
    direction: rtl;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
    justify-content: flex-end;
}

.skills-list span {
    padding: 0.25rem 0.9rem;
    border-radius: 40px;
    font-size: 0.85rem;
    color: #ffd966;
    border: 1px solid #e2e8f0;
    font-family: 'GramophoneFa';
    border-bottom: 1px solid #ffd966;
    border-top: none;
    border-right: none;
    border-left: none;
}
/* Slider */
.slick-slider
{
    position: relative;

    display: block;
    box-sizing: border-box;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    /*
    min-height: 470px;
    */
}

.slick-list
{
    position: relative;

    display: block;
    overflow: hidden;

    margin: 0;
    padding: 0;
}
.slick-list:focus
{
    outline: none;
}
.slick-list.dragging
{
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list
{
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.slick-track
{
    position: relative;
    top: 0;
    left: 0;

    display: block;
    margin-left: auto;
    margin-right: auto;
}
.slick-track:before,
.slick-track:after
{
    display: table;

    content: '';
}
.slick-track:after
{
    clear: both;
}
.slick-loading .slick-track
{
    visibility: hidden;
}

.slick-slide
{
    display: none;
    float: left;

    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide
{
    float: right;
}
.slick-slide img
{
    display: block;
    width: 100%;
}
.slick-slide.slick-loading img
{
    display: none;
}
.slick-slide.dragging img
{
    pointer-events: none;
}
.slick-initialized .slick-slide
{
    display: block;
}
.slick-loading .slick-slide
{
    visibility: hidden;
}
.slick-vertical .slick-slide
{
    display: block;

    height: auto;

    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}
@media (max-width: 992px) {
    /*
    .slick-slider {
        min-height: 370px;
    }
    */
}
/* ============================================ */
/* === END OF STYLESHEET === */
/* ============================================ */

/* ============================================ */
/* === page-blog === */
/* ============================================ */
    .page-template
    {
                background: #ffffff;
    }
    .page-blog {
        font-family: 'medium';
        background: #ffffff;
        color: #1a1a1a;
        direction: rtl;
        max-width: 1400px;
        margin: 0 auto;
        padding-top: 0;
    }
    .page-blog * {
        box-sizing: border-box;
    }

    /* ============================================================
       هدر اصلی (دسکتاپ)
    ============================================================ */
    .page-blog .header {
        background: white;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 3px solid #3c9e64;
    }
    .page-blog .header.scrolled { padding-top: 0;
        border-top-color: transparent; }
    .page-blog .header .container { max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px; }

    .page-blog .header .top-bar {
        background: #f8f9fa;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 50px;
        opacity: 1;
        overflow: hidden;
    }
    .page-blog .header.scrolled .top-bar { max-height: 0;
        opacity: 0;
        padding: 0;
        border-bottom: none; }
    .page-blog .header .top-bar-content { display: flex;
        justify-content: space-between;
        align-items: center; }
    .page-blog .header .top-links { display: flex;
        gap: 25px; }
    .page-blog .header .top-links a { text-decoration: none;
        color: #555;
        font-size: 13px;
        transition: color 0.4s ease; }
    .page-blog .header .top-links a:hover { color: #000000; }
    .page-blog .header .social-icons { display: flex;
        gap: 15px; }
    .page-blog .header .social-icons a { color: #767676;
        font-size: 18px;
        transition: all 0.4s ease;
        padding: 5px 15px !important; }
    .page-blog .header .social-icons a:hover { color: #3a9a61;
        background-color: transparent !important; }

    .page-blog .header .middle-bar {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 80px;
        opacity: 1;
        overflow: hidden;
        flex-wrap: nowrap;
        gap: 20px;
    }
    .page-blog .header.scrolled .middle-bar { max-height: 0;
        opacity: 0;
        padding: 0;
        border-bottom: none; }
    .page-blog .header .logo {
        font-size: 28px;
        font-weight: bold;
        color: #333;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.5s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .page-blog .header .logo-text { color: #3c9e64; }
    .page-blog .header .search-area {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-grow: 1;
        max-width: 600px;
        margin: 0 15px;
        min-width: 0;
    }
    .page-blog .header .search-box { flex-grow: 1;
        position: relative;
        min-width: 200px; }
    .page-blog .header .search-box input {
        width: 100%;
        padding: 10px 15px;
        padding-left: 40px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        background: #f9f9f9;
        transition: all 0.4s ease;
    }
    .page-blog .header .search-box input:focus { outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1); }
    .page-blog .header .search-box i { position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        transition: color 0.4s ease; }
    .page-blog .header .search-box input:focus + i { color: #3498db; }
    .page-blog .header .signup-btn {
        background: #3c9e64;
        border-color: #3c9e64;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.4s ease;
        font-weight: 500;
        white-space: nowrap;
        flex-shrink: 0;
        position: relative;
    }
    .page-blog .header .signup-btn:hover { background: transparent;
        color: #000;
        border-color: #000; }
    .page-blog .header .signup-btn::before {
        background: hsl(56deg 100% 50%);
        content: "";
        inset: 0;
        position: absolute;
        transform: scalex(0);
        transform-origin: right;
        transition: transform 0.5s ease-in-out;
        z-index: -1;
        border-radius: 10px;
    }
    .page-blog .header .signup-btn:hover::before { transform: scalex(1);
        transform-origin: right; }

    .page-blog .header .main-nav { padding: 12px 0;
        background: #f8f9fa;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
    .page-blog .header.scrolled .main-nav { box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
        background: white; }
    .page-blog .header .nav-menu { display: flex;
        list-style: none;
        justify-content: start;
        position: relative; }
    .page-blog .header .nav-menu > li { position: relative;
        padding-left: 15px; }
    .page-blog .header .nav-menu > li > a {
        text-decoration: none;
        color: #444;
        font-size: 15px;
        font-weight: 500;
        padding: 8px 12px;
        transition: all 0.4s ease;
        border-radius: 4px;
        position: relative;
        font-family: 'demibold';
        cursor: pointer;
    }
    .page-blog .header .nav-menu > li > a i { position: relative;
        top: 3px;
        transition: all .7s; }
    .page-blog .header .nav-menu > li > a:hover { color: #3c9e64;
        font-family: 'bold';
        transition: all .7s; }
    .page-blog .header .nav-menu > li > a:hover > i { transform: rotate(90deg);
        color: #3c9e64;
        transition: all .7s; }

    .page-blog .header .submenu {
        position: absolute;
        top: 150%;
        right: 0;
        background: white;
        min-width: 250px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 8px 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1001;
        padding: 0;
        border-top: 3px solid #3c9e64;
    }
    .page-blog .header .has-submenu:hover .submenu { opacity: 1;
        visibility: visible;
        transform: translateY(0); }
    .page-blog .header .submenu li { list-style: none; }
    .page-blog .header .submenu a {
        display: block;
        padding: 10px 20px;
        text-decoration: none;
        color: #555;
        font-size: 14px;
        transition: all 0.3s ease;
        border-bottom: 1px solid #ddd;
    }
    .page-blog .header .submenu a:hover { background-color: #3c9e64;
        color: #fff;
        border-right: 3px solid #ffd966;
        padding-right: 25px; }

    /* ============================================================
       هدر موبایل
    ============================================================ */
    .page-blog .mobile-header {
        display: none;
        background: white;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        padding: 12px 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-top: 3px solid #3c9e64;
        transition: all 0.3s ease;
    }
    .page-blog .mobile-header.scrolled { border-top-color: transparent; }
    .page-blog .mobile-header .mobile-header-content { display: flex;
        justify-content: space-between;
        align-items: center; }
    .page-blog .mobile-header .mobile-logo {
        font-size: 22px;
        font-weight: bold;
        color: #333;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }
    .page-blog .mobile-header .mobile-logo-text { color: #3c9e64; }
    .page-blog .mobile-header .mobile-buttons { display: flex;
        gap: 12px;
        align-items: center; }
    .page-blog .mobile-header .mobile-btn {
        background: none;
        border: none;
        font-size: 18px;
        color: #555;
        cursor: pointer;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    .page-blog .mobile-header .mobile-btn:hover { background: rgba(52, 152, 219, 0.1);
        color: #3c9e64; }
    .page-blog .mobile-header .menu-btn { background: #3c9e64;
        color: white; }
    .page-blog .mobile-header .menu-btn:hover { background: #3c9e64;
        color: white; }

    /* ============================================================
       منوی موبایل (اورلِی)
    ============================================================ */
    .page-blog .mobile-menu-overlay {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100%;
        background: white;
        z-index: 1200;
        overflow-y: auto;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    }
    .page-blog .mobile-menu-overlay.open { right: 0; }
    .page-blog .menu-dark-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1199;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    .page-blog .menu-dark-overlay.active { opacity: 1;
        visibility: visible; }
    .page-blog .mobile-menu-overlay .mobile-menu-header {
        background: #3c9e64;
        padding: 20px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: white;
    }
    .page-blog .mobile-menu-overlay .mobile-menu-title { font-size: 20px;
        font-weight: bold; }
    .page-blog .mobile-menu-overlay .close-menu-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 36px;
        height: 36px;
        line-height: 43px;
        border-radius: 50%;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .page-blog .mobile-menu-overlay .close-menu-btn:hover { background: rgba(255, 255, 255, 0.3); }
    .page-blog .mobile-menu-overlay .mobile-menu { list-style: none;
        padding: 15px 0; }
    .page-blog .mobile-menu-overlay .mobile-menu li { border-bottom: 1px solid #eee; }
    .page-blog .mobile-menu-overlay .mobile-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 15px;
        text-decoration: none;
        color: #444;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    .page-blog .mobile-menu-overlay .mobile-menu > li > a:hover { background: #ffedda;
        color: #3c9e64; }
    .page-blog .mobile-menu-overlay .mobile-submenu-toggle {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #888;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .page-blog .mobile-menu-overlay .mobile-submenu-toggle:hover { color: #3498db; }
    .page-blog .mobile-menu-overlay .mobile-submenu-toggle i { transition: transform 0.3s ease; }
    .page-blog .mobile-menu-overlay .mobile-submenu-toggle.active i { transform: rotate(180deg); }
    .page-blog .mobile-menu-overlay .mobile-submenu {
        list-style: none;
        background: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
    }
    .page-blog .mobile-menu-overlay .mobile-submenu.active { max-height: 500px; }
    .page-blog .mobile-menu-overlay .mobile-submenu li { border-bottom: none; }
    .page-blog .mobile-menu-overlay .mobile-submenu a {
        display: block;
        padding: 10px 15px 10px 30px;
        text-decoration: none;
        color: #666;
        font-size: 14px;
        transition: all 0.3s ease;
        border-right: 3px solid transparent;
    }
    .page-blog .mobile-menu-overlay .mobile-submenu a:hover { background: #ffedda;
        color: #3c9e64;
        border-right: 3px solid #3c9e64; }

    /* ============================================================
       ریسپانسیو هدر
    ============================================================ */
    @media (max-width: 1100px) {
        .page-blog .header .nav-menu { flex-wrap: wrap;
            justify-content: center;
            gap: 10px; }
        .page-blog .header .nav-menu > li > a { font-size: 13px;
            padding: 6px 10px; }
        .page-blog .header .submenu {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            border: none;
            background: transparent;
            display: none;
            width: 100%;
        }
        .page-blog .header .has-submenu:hover .submenu { display: block; }
    }
    @media (max-width: 992px) {
        .page-blog .header .top-bar-content { flex-direction: column;
            gap: 12px; }
        .page-blog .header .middle-bar { flex-wrap: wrap;
            gap: 15px; }
        .page-blog .header .search-area { margin: 0;
            width: 100%;
            max-width: 100%;
            order: 3; }
        .page-blog .header .search-box { width: 100%; }
        .page-blog .header .signup-btn { width: 100%;
            order: 2; }
        .page-blog .header .logo { font-size: 26px;
            order: 1; }
    }
    @media (max-width: 768px) {
        .page-blog .header { display: none; }
        .page-blog .mobile-header { display: block; }
        .page-blog { padding-top: 70px; }
    }
    @media (max-width: 480px) {
        .page-blog .mobile-header .mobile-logo { font-size: 20px;
            max-width: 50%; }
        .page-blog .mobile-header .mobile-buttons { gap: 8px; }
        .page-blog .mobile-header .mobile-btn { width: 32px;
            height: 32px;
            font-size: 16px; }
        .page-blog .header .logo-text { font-size: 26px; }
    }

    /* ============================================================
       محتوای صفحه - همه scoped به .page-blog
    ============================================================ */
    .page-blog .page-hero {
        background: linear-gradient(135deg, #1a3c2c, #2b7a4b);
        padding: 40px 0 30px;
        border-radius: 0 0 40px 40px;
        color: #fff;
        text-align: center;
        margin-top: 175px;
        position: relative;
        z-index: 1;
    }
    .page-blog .page-hero h1 {
        font-size: 2.8rem;
        font-family: 'bold';
        color: #ffd966;
        margin-bottom: 10px;
    }
    .page-blog .page-hero p {
        font-size: 1.1rem;
        opacity: 0.9;
        max-width: 700px;
        margin: 0 auto 15px;
    }

    .page-blog .work-section {
        display: flex;
        gap: 1px;
        margin: 30px 0 50px;
        align-items: flex-start;
        position: relative;
        padding: 0 20px;
    }

    /* سایدبار فیلتر */
    .page-blog .sidebar-filter {
        flex: 0 0 280px;
        background: #fff;
        border-radius: 24px;
        padding: 25px 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid #e0e8e0;
        position: sticky;
        top: 0;
        transition: all 0.3s ease;
        align-self: flex-start;
        max-height: 100vh;
        overflow-y: auto;
    }
    .page-blog .sidebar-filter h3 {
        font-size: 1.2rem;
        font-family: 'bold';
        color: #1a3c2c;
        border-bottom: 2px solid #ffd966;
        padding: 15px 15px 10px 15px;
        margin-bottom: 18px;
        background: #e4f4f3;
        border-radius: 15px 15px 0 0;
    }
    .page-blog .filter-group {
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .page-blog .filter-btn {
        display: block;
        width: 100%;
        padding: 10px 14px;
        border-radius: 10px;
        color: #555;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        cursor: pointer;
        border: none;
        background: transparent;
        text-align: right;
        border-right: 3px solid transparent;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        border-bottom: 1px solid #3c9e64;
        font-family: 'bold';
        transition: all 0.5s;
    }
    .page-blog .filter-btn:hover {
        background: #e4f3f4;
        color: #000;
        font-size: 1rem;
        transition: all 0.5s;
    }
    .page-blog .filter-btn.active {
        background: #e8f5ed;
        color: #2b7a4b;
        border-right-color: #2b7a4b;
        font-family: 'bold';
    }
    .page-blog .filter-btn .count {
        background: #e8f5ed;
        color: #2b7a4b;
        padding: 0 8px;
        border-radius: 20px;
        font-size: 0.7rem;
        float: left;
    }
    .page-blog .filter-btn.active .count {
        background: #2b7a4b;
        color: #fff;
    }
    .page-blog .filter-btn i {
        margin-left: 10px;
        width: 20px;
        color: #2b7a4b;
    }

    .page-blog .sidebar-reset {
        text-align: center;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    .page-blog .sidebar-reset button {
        background: #2b7a4b;
        color: #fff;
        border: none;
        padding: 8px 20px;
        border-radius: 30px;
        font-weight: bold;
        cursor: pointer;
        font-size: 0.85rem;
        transition: 0.3s;
        box-shadow: 0 4px 15px rgba(43, 122, 75, 0.25);
    }
    .page-blog .sidebar-reset button:hover {
        background: #1a3c2c;
        color: #ffd966;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(43, 122, 75, 0.35);
    }

    .page-blog .sidebar-services {
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .page-blog .sidebar-services .section-title {
        font-size: 1.2rem;
        font-family: 'bold';
        color: #1a3c2c;
        border-bottom: 2px solid #ffd966;
        padding: 15px 15px 10px 15px;
        margin-bottom: 18px;
        background: #e4f4f3;
        border-radius: 15px 15px 0 0;
    }
    .page-blog .sidebar-services .section-title i {
        color: #2b7a4b;
    }

    .page-blog .sidebar-services .services-grid-compact {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .page-blog .sidebar-services .service-item {
        background: #ffffff;
        border-radius: 12px;
        padding: 8px 10px;
        display: flex;
        gap: 8px;
        align-items: center;
        transition: all 0.25s ease;
        border: 1px solid #3a9a6140;
        text-decoration: none;
        color: inherit;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
        position: relative;
        width: 100%;
    }
    .page-blog .sidebar-services .service-item:hover {
        transform: translateX(-4px);
        border-color: #2b7a4b;
        box-shadow: 0 8px 25px rgba(43, 122, 75, 0.1);
        background: #fffefc;
    }
    .page-blog .sidebar-services .service-item::before {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 3px;
        background: linear-gradient(90deg, #2b7a4b, #3c9e64);
        border-radius: 0 3px 3px 0;
    }
    .page-blog .sidebar-services .service-icon {
        font-size: 1.1rem;
        color: #2b7a4b;
        min-width: 26px;
        text-align: center;
    }
    .page-blog .sidebar-services .service-info h4 {
        font-size: 0.8rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1px;
    }
    .page-blog .sidebar-services .service-info p {
        font-size: 0.65rem;
        color: #555;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .page-blog .sidebar-services .course-small-item {
        background: #ffffff;
        border-radius: 12px;
        padding: 8px 10px;
        display: flex;
        gap: 8px;
        align-items: center;
        transition: all 0.25s ease;
        border: 1px solid #3a9a6140;
        text-decoration: none;
        color: inherit;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
        position: relative;
        width: 100%;
    }
    .page-blog .sidebar-services .course-small-item:hover {
        transform: translateX(-4px);
        border-color: #2b7a4b;
        box-shadow: 0 8px 25px rgba(43, 122, 75, 0.1);
        background: #fffefc;
    }
    .page-blog .sidebar-services .course-small-item::before {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 3px;
        background: linear-gradient(90deg, #2b7a4b, #3c9e64);
        border-radius: 0 3px 3px 0;
    }
    .page-blog .sidebar-services .course-small-img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .page-blog .sidebar-services .course-small-info h4 {
        font-size: 0.75rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1px;
    }
    .page-blog .sidebar-services .course-small-info p {
        font-size: 0.6rem;
        color: #555;
        line-height: 1.3;
        margin-bottom: 3px;
    }
    .page-blog .sidebar-services .small-btn {
        background: #2b7a4b;
        color: #fff;
        border: none;
        padding: 2px 10px;
        border-radius: 30px;
        font-size: 0.55rem;
        font-weight: 700;
        cursor: pointer;
        display: inline-block;
        transition: 0.2s;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(43, 122, 75, 0.15);
    }
    .page-blog .sidebar-services .course-small-item:hover .small-btn {
        background: #fff;
        color: #2b7a4b;
        transform: scale(1.02);
        border: 1px solid #2b7a4b;
    }

    .page-blog .sidebar-services .course-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .page-blog .work-content {
        flex: 1;
    }
    .page-blog .work-header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 25px;
        flex-wrap: wrap;
        gap: 15px;
        min-height: 0;
        padding: 0;
    }
    .page-blog .work-header h2 {
        font-size: 1.6rem;
        font-family: 'bold';
        color: #1a3c2c;
        border-right: 5px solid #ffd966;
        padding-right: 15px;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(-5px);
        margin: 0;
        height: 0;
        overflow: hidden;
        visibility: hidden;
    }
    .page-blog .work-header h2.visible {
        opacity: 1;
        transform: translateY(0);
        height: auto;
        visibility: visible;
        overflow: visible;
    }

    .page-blog .blog-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    .page-blog .blog-item {
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
        border: 1px solid #e0e8e0;
        transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        opacity: 0;
        transform: translateY(30px) scale(0.93);
        will-change: transform, opacity;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        text-decoration: none;
        color: inherit;
    }
    .page-blog .blog-item.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }
    .page-blog .blog-item:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 15px 45px rgba(43, 122, 75, 0.12);
        border-color: #2b7a4b;
    }
    .page-blog .blog-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }

    .page-blog .blog-item .tag {
        position: absolute;
        top: 15px;
        right: 15px;
        display: inline-block;
        background: rgba(0, 0, 0, .6);
        color: #ffd966;
        font-size: 0.7rem;
        padding: 4px 14px;
        border-radius: 20px;
        font-family: 'bold';
        z-index: 5;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        letter-spacing: 0.3px;
        pointer-events: none;
    }

    .page-blog .blog-item .info {
        padding: 16px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .page-blog .blog-item .info h4 {
        font-family: 'bold';
        color: #2b7a4b;
        margin-bottom: 5px;
        font-size: 1rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .page-blog .blog-item .info p {
        font-size: 0.8rem;
        color: #555;
        line-height: 1.6;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .page-blog .long-descriptions-wrapper {
        margin: 40px 0 30px;
        position: relative;
        min-height: auto;
        overflow: hidden;
    }
    .page-blog .long-descriptions-wrapper::after {
        display: none !important;
    }

    .page-blog .long-desc-box {
        background: #fff;
        border-radius: 24px;
        padding: 30px 35px;
        border: 1px solid #e0e8e0;
        box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
        transition: all 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        pointer-events: none;
        visibility: hidden;
    }
    .page-blog .long-desc-box.active {
        position: relative;
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: all;
        visibility: visible;
    }
    .page-blog .long-desc-box.exit {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
        pointer-events: none;
        visibility: hidden;
    }

    .page-blog .long-desc-box h2 {
        font-size: 1.6rem;
        font-family: 'bold';
        color: #1a3c2c;
        border-right: 5px solid #ffd966;
        padding-right: 15px;
        margin-bottom: 20px;
    }
    .page-blog .long-desc-box .description-content {
        line-height: 2;
        color: #2c3e32;
        text-align: justify;
        overflow: hidden;
        transition: max-height 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.5s ease;
        max-height: 100px;
        opacity: 1;
    }
    .page-blog .long-desc-box .description-content.expanded {
        max-height: 8000px;
    }
    .page-blog .long-desc-box .btn-toggle {
        background: #2b7a4b;
        color: #fff;
        border: none;
        padding: 10px 28px;
        border-radius: 40px;
        font-weight: bold;
        cursor: pointer;
        font-family: 'regular';
        margin-top: 20px;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
        box-shadow: 0 4px 15px rgba(43, 122, 75, 0.2);
    }
    .page-blog .long-desc-box .btn-toggle:hover {
        background: #1a3c2c;
        transform: scale(0.98);
        box-shadow: 0 6px 20px rgba(43, 122, 75, 0.3);
    }
    .page-blog .long-desc-box .btn-toggle.close-btn {
        background: #6c7a7a;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    .page-blog .long-desc-box .btn-toggle.close-btn:hover {
        background: #4a5a5a;
    }
    .page-blog .long-desc-box .btn-wrapper {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        margin-top: 5px;
    }

    .page-blog .bottom-services-section {
        display: none;
        margin-top: 30px;
        padding-top: 25px;
        border-top: 2px solid #e0e8e0;
    }

    .page-blog .bottom-services-section .section-title {
        font-size: 1.1rem;
        font-weight: 800;
        color: #1a1a1a;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .page-blog .bottom-services-section .section-title i {
        color: #2b7a4b;
    }

    .page-blog .bottom-services-section .services-grid-compact {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .page-blog .bottom-services-section .service-item {
        background: #ffffff;
        border-radius: 12px;
        padding: 10px 8px;
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 6px;
        transition: all 0.25s ease;
        border: 1px solid #3a9a6140;
        text-decoration: none;
        color: inherit;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
        position: relative;
        width: 100%;
    }
    .page-blog .bottom-services-section .service-item:hover {
        transform: translateY(-4px);
        border-color: #2b7a4b;
        box-shadow: 0 8px 25px rgba(43, 122, 75, 0.1);
        background: #fffefc;
    }
    .page-blog .bottom-services-section .service-item::before {
        display: none;
    }
    .page-blog .bottom-services-section .service-icon {
        font-size: 1.3rem;
        color: #2b7a4b;
    }
    .page-blog .bottom-services-section .service-info h4 {
        font-size: 0.8rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 2px;
    }
    .page-blog .bottom-services-section .service-info p {
        font-size: 0.6rem;
        color: #555;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .page-blog .bottom-services-section .course-small-item {
        background: #ffffff;
        border-radius: 12px;
        padding: 10px 8px;
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 6px;
        transition: all 0.25s ease;
        border: 1px solid #3a9a6140;
        text-decoration: none;
        color: inherit;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
        position: relative;
        width: 100%;
    }
    .page-blog .bottom-services-section .course-small-item:hover {
        transform: translateY(-4px);
        border-color: #2b7a4b;
        box-shadow: 0 8px 25px rgba(43, 122, 75, 0.1);
        background: #fffefc;
    }
    .page-blog .bottom-services-section .course-small-item::before {
        display: none;
    }
    .page-blog .bottom-services-section .course-small-img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .page-blog .bottom-services-section .course-small-info h4 {
        font-size: 0.8rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 2px;
    }
    .page-blog .bottom-services-section .course-small-info p {
        font-size: 0.6rem;
        color: #555;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    .page-blog .bottom-services-section .small-btn {
        background: #2b7a4b;
        color: #fff;
        border: none;
        padding: 2px 10px;
        border-radius: 30px;
        font-size: 0.55rem;
        font-weight: 700;
        cursor: pointer;
        display: inline-block;
        transition: 0.2s;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(43, 122, 75, 0.15);
    }
    .page-blog .bottom-services-section .course-small-item:hover .small-btn {
        background: #fff;
        color: #2b7a4b;
        transform: scale(1.02);
        border: 1px solid #2b7a4b;
    }

    .page-blog .bottom-services-section .course-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* ===== ریسپانسیو ===== */
    @media (max-width: 992px) {
        .page-blog .work-section {
            flex-direction: column;
        }
        .page-blog .sidebar-filter {
            flex: 1;
            position: relative;
            top: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 15px 20px;
            order: -1;
            max-height: none;
            overflow-y: visible;
            align-self: stretch;
            background: #f5f9f6;
            border: 1px solid #e0e8e0;
            border-radius: 24px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
        }
        .page-blog .sidebar-filter h3 {
            flex: 0 0 100%;
            margin-bottom: 8px;
            border-bottom: 2px solid #ffd966;
            padding-bottom: 8px;
        }
        .page-blog .filter-group {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 0;
            flex: 1;
            align-items: center;
            width: 100%;
            flex-direction: row;
        }
        .page-blog .filter-btn {
            padding: 5px 12px;
            font-size: 0.8rem;
            border-right: none;
            border-bottom: 2px solid transparent;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            width: calc(50% - 4px);
            flex: 0 0 calc(50% - 4px);
            text-align: center;
        }
        .page-blog .filter-btn i {
            margin-left: 5px;
        }
        .page-blog .filter-btn .count {
            float: none;
            display: inline-block;
            margin-right: 4px;
        }
        .page-blog .filter-btn.active {
            border-bottom-color: #2b7a4b;
            border-right: none;
            background: #e8f5ed;
        }
        .page-blog .sidebar-reset {
            flex: 0 0 100%;
            width: 100%;
            margin-top: 6px;
            padding-top: 4px;
            border-top: none;
            display: flex;
            justify-content: center;
            padding-right: 0;
        }
        .page-blog .sidebar-reset button {
            width: 100%;
            padding: 6px 12px;
            font-size: 0.75rem;
            border-radius: 20px;
            background: #2b7a4b;
            color: #fff;
            box-shadow: 0 4px 15px rgba(43, 122, 75, 0.2);
            text-align: center;
        }
        .page-blog .sidebar-reset button:hover {
            background: #1a3c2c;
            color: #fff;
        }
        .page-blog .blog-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
        .page-blog .page-hero {
            margin-top: 0;
        }
        .page-blog .work-header {
            justify-content: flex-start;
        }
        .page-blog .long-desc-box {
            padding: 20px;
        }
        .page-blog .sidebar-services {
            display: none !important;
        }
        .page-blog .bottom-services-section {
            display: block;
        }
    }

    @media (max-width: 768px) {
        .page-blog .work-section {
            padding: 0 10px;
        }
        .page-blog .sidebar-filter {
            gap: 5px;
            padding: 12px 15px;
            margin: 0 -5px;
            width: calc(100% + 10px);
            border-radius: 16px;
            flex-wrap: wrap;
        }
        .page-blog .sidebar-filter h3 {
            flex: 0 0 100%;
            margin-bottom: 8px;
            border-bottom: 2px solid #ffd966;
            padding-bottom: 8px;
        }
        .page-blog .filter-group {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-bottom: 0;
            flex: 1;
            align-items: center;
            width: 100%;
            flex-direction: row;
            justify-content: space-around;
        }
        .page-blog .filter-btn {
            font-size: 0.9rem;
            padding: 8px;
            width: calc(50% - 4px);
            flex: 0 0 calc(50% - 15px);
            text-align: right;
            border-right: none;
            border-bottom: 2px solid transparent;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            border-bottom: 1px solid #2b7a4b;
            margin-bottom: 3px;
        }
        .page-blog .filter-btn i {
            margin-left: 4px;
            font-size: 0.8rem;
        }
        .page-blog .filter-btn .count {
            float: none;
            display: inline-block;
            margin-right: 3px;
            font-size: 0.6rem;
        }
        .page-blog .filter-btn.active {
            border-bottom-color: #2b7a4b;
            border-right: none;
            background: #e8f5ed;
        }
        .page-blog .sidebar-reset {
            flex: 0 0 100%;
            width: 100%;
            margin-top: 6px;
            padding-top: 4px;
            border-top: none;
            display: flex;
            justify-content: center;
            padding-right: 0;
        }
        .page-blog .sidebar-reset button {
            width: 100%;
            padding: 10px 12px;
            font-size: 1rem;
            border-radius: 20px;
            background: #2b7a4b;
            color: #fff;
            box-shadow: 0 4px 15px rgba(43, 122, 75, 0.2);
            text-align: center;
            font-family: 'bold';
        }
        .page-blog .sidebar-reset button:hover {
            background: #1a3c2c;
            color: #fff;
        }
        .page-blog .blog-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            padding: 0;
            margin: 0;
        }
        .page-blog .blog-item {
            width: 100%;
            margin: 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
            border-color:#3a9a6140 !important;
        }
        .page-blog .blog-item img {
            height: 160px;
        }
        .page-blog .blog-item .tag {
            font-size: 0.6rem;
            padding: 3px 10px;
            top: 10px;
            right: 10px;
        }
        .page-blog .long-desc-box {
            padding: 20px;
        }
        .page-blog .long-desc-box .description-content {
            max-height: 80px;
        }
        .page-blog .work-content {
            padding: 0;
        }
        .page-blog .work-header {
            padding: 0;
            margin-bottom: 15px;
        }
        .page-blog .blog-item .info {
            padding: 8px 10px;
        }
        .page-blog .blog-item .info h4 {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 0.9rem;
        }
        .page-blog .blog-item .info p {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 0.7rem;
        }
        .page-blog .bottom-services-section {
            display: block;
            margin-top: 30px;
            padding-top: 20px;
        }
        .page-blog .bottom-services-section .services-grid-compact {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item {
            padding: 10px 8px;
            width: 100%;
            border-radius: 14px;
            display: flex;
            flex-direction: row !important;
            align-items: center;
            gap: 10px;
            text-align: right;
            border: 1px solid #3a9a6140;
            background: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            min-height: 70px;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item .service-icon {
            font-size: 1.6rem;
            color: #2b7a4b;
            min-width: 20%;
            flex: 0 0 20%;
            text-align: center;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item .service-info {
            flex: 0 0 80%;
            text-align: right;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item .service-info h4 {
            font-size: 0.9rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 2px;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item .service-info p {
            font-size: 0.65rem;
            color: #555;
            line-height: 1.3;
            margin-bottom: 0;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item:last-child {
            width: 100%;
            grid-column: 1 / -1;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item:last-child .service-icon {
            min-width: 10%;
            flex: 0 0 10%;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item:last-child .service-info {
            flex: 0 0 90%;
        }
        .page-blog .bottom-services-section .course-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item {
            padding: 0 0 0 12px;
            width: 100%;
            border-radius: 10px;
            display: flex;
            flex-direction: row !important;
            align-items: center;
            gap: 10px;
            margin-bottom: 7px;
            text-align: right;
            border: 1px solid #e4f3f4;
            background: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            min-height: 50px;
            text-decoration: none;
            color: inherit;
            transition: all 0.25s ease;
            border-color:#3a9a6140 !important;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item:hover {
            transform: translateY(-2px);
            border-color: #2b7a4b;
            box-shadow: 0 6px 16px rgba(43, 122, 75, 0.1);
        }
        .page-blog .bottom-services-section .section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2b7a4b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'medium';
    border-bottom: 2px solid #ffd966;
    padding: 15px 15px 10px 15px;
    margin-bottom: 18px;
    background: #e4f4f3;
    border-radius: 15px 15px 0 0;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item .course-small-img {
            width: 30%;
            flex: 0 0 30%;
            height: auto;
            aspect-ratio: 1/1;
            object-fit: cover;
            border-radius: 0 10px 10px 0;
            max-width: 70px;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item .course-small-info {
            flex: 0 0 70%;
            text-align: right;
            padding: 0;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item .course-small-info h4 {
            font-size: 1rem;
            font-weight: 700;
            color: #1a3c2c;
            margin-bottom: 2px;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item .course-small-info p {
            font-size: 0.7rem;
            color: #555;
            line-height: 1.8;
            margin-bottom: 0;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item .small-btn {
            display: none;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item:last-child {
            grid-column: 1 / -1;
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .page-blog .sidebar-filter {
            gap: 4px;
            padding: 10px 12px;
        }
        .page-blog .filter-group {
            gap: 6px;
        }
        .page-blog .filter-btn {
            font-size: 0.9rem;
            padding: 6px 6px;
            width: calc(50% - 10px);
            flex: 0 0 calc(50% - 10px);
            margin: 3px 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
        }
        .page-blog .blog-grid {
            gap: 12px;
        }
        .page-blog .blog-item img {
            height: 140px;
        }
        .page-blog .bottom-services-section .services-grid-compact {
            gap: 6px;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item .service-icon {
            font-size: 1.4rem;
            min-width: 20%;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item .service-info h4 {
            font-size: 0.8rem;
        }
        .page-blog .bottom-services-section .services-grid-compact .service-item .service-info p {
            font-size: 0.6rem;
        }
        .page-blog .bottom-services-section .course-grid {
            gap: 6px;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item .course-small-img {
            max-width: 60px;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item .course-small-info h4 {
            font-size: 0.7rem;
        }
        .page-blog .bottom-services-section .course-grid .course-small-item .course-small-info p {
            font-size: 0.55rem;
        }
    }
