:root {
	/*--blue : #0c4da2 ;*/
	--blue : #28499b;
	--red : #ff1f2d;
}

#psp-overlay img {max-height:100% !important;}

a , a:hover{color: inherit;text-decoration: none;}
ul {padding-right: 0px;}
.text-left {text-align: left;}
.text-right {text-align: right;}
.text-center {text-align: center;}
.text-primary { color: #0d6efd;}
.text-red {color:var(--red)}
.text-blue {color:var(--blue)}
body {direction: rtl;font-family: YekanBakh;font-size: 15px;line-height: 2.1;}
@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1500px;
    }
}


/* main */
.mybtn {padding:6px 12px;min-width: 160px;display: inline-block;border-radius: 6px;color: #fff;text-align: center;transition: all 0.2s;}
.mybtn:hover {background: #4b4b4b;color: #fff;}
.redbtn {background: var(--red);margin:4px 10px;}
.bluebtn {background: var(--blue);margin:4px 10px;}
.text-justify {text-align: justify;}
.line-head {position: relative;padding-right: 30px;font-size: 18px;}
.line-head::after {content: "";position: absolute;right: 0px;height: 3px;width: 20px;background: var(--red);margin-left: 3px;display: inline-block;top: 49%;}
.blue-title {color:#2B479C; font-weight: bold;font-size: 23px;}

/* header */
#top-part{position: relative;}
.bg-banner {position: absolute;background-repeat: no-repeat;width: 68vw;height: 119%;top: 0px;left: 0px;background-size: contain;}
#header { padding: 2rem 0;  background: #fff;position: relative;}
#menu {display: flex;align-items: center; position: relative;z-index: 999;}
#menu figure img {max-width: 150px;height: auto;}

/* === DESKTOP MENU === */
.header-menu ul.menu {  list-style: none;  margin: 0;padding: 0;display: flex;}
.header-menu ul.menu > li {position: relative;text-align: center;margin: 3px 4px;display: flex;z-index: 2;}
.menu-item-has-children {padding-left:20px;}
.header-menu ul.menu > li > a {display: block;padding: 3px 8px;text-decoration: none;color: #222;font-weight: 500;transition: background 0.3s;}
.header-menu ul.menu > li.menu-item-has-children .before::before {content: "\f107";font-family: 'Font Awesome 5 Free';display: inline-block;position: absolute;left: 9px;top: -9px;margin-left: 2px;margin-right: 5px;line-height: 0;float: left;margin-top: 27px;font-size: 10px;}
.header-menu ul.menu > li:hover , .header-menu ul.menu > li.borderd  {background: #f5f5f5;border-radius: 5px;}
/* Submenu (desktop hover) */
.header-menu ul.sub-menu {position: absolute;top: 100%;right: 0;background: #fff;min-width: 180px;opacity: 0;visibility: hidden;transform: translateY(10px);transition: all 0.3s ease;box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);border-radius: 8px;z-index: 999;list-style: none;}
.header-menu ul.menu > li:hover > ul.sub-menu {opacity: 1;visibility: visible;transform: translateY(0);    text-align: right;}
.header-menu ul.menu > li.tworow:hover > ul.sub-menu {
	width: 500px;
    text-align: right;
    column-count: 2;
    column-rule: groove;
    column-rule-width: thin;
    column-rule-color: #dbdee1;
    border: 1px solid #dad9d9;
}
.header-menu ul.sub-menu li a {display: block;padding: 10px 15px;color: #333;text-decoration: none;transition: background 0.3s;}
.header-menu ul.sub-menu li a:hover {background: rgba(0, 123, 255, 0.05);border-radius: 4px;}
/* === HAMBURGER BUTTON === */
.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; height: 25px; cursor: pointer; margin-right: auto;margin-left:10px;}
.menu-toggle span {display: block;height: 3px;width: 100%;background: #333;border-radius: 2px;transition: 0.3s ease;}
.mobile-close {display: none;}


/* about */
#about::after {content: "";display: inline-block;background: #f6f8fc;position: absolute;right: 0px;top: 0px;width: 100%;height: 87%;z-index: -2;color: #000;font-weight: bold;}
#about h1{z-index: 0;margin-top: 2.2rem;font-weight: bold;/* position: relative; */}
#about h1::after {/* content: ""; */display: inline-block;background: #e7e7e7;position: absolute;right: 0px;top: 21px;width: 44%;height: 36px;z-index: -2;color: #000;font-weight: bold;}
/* heading effect */
.lightning-section {position: relative;overflow: hidden;background-color: #efefef;padding: 21px;text-align: center;font-size: 3em;width: 323px;height: 26px;margin-top: -24px;}
.lightning-section::before {content: '';position: absolute;top: 0;right: -150%;width: 150%;height: 100%;
		background: radial-gradient(
		circle at center,
		rgba(0, 123, 255, 0.4) 0%,
		rgba(0, 123, 255, 0.1) 40%,
		transparent 70%
		);filter: blur(50px);animation: lightning-sweep 4s ease-in-out infinite;pointer-events: none;z-index: 0; }
.lightning-section h1 {position: relative;z-index: 1;}
@keyframes lightning-sweep {
  0% {
    right: -150%;
  }
  100% {
    right: 100%;
  }
}

/* BTN */
.button-row {display: flex;gap: 16px;justify-content: right;flex-wrap: wrap;margin: 20px 0px 30px;}
.button-row .button {display: inline-block;background-color: var(--blue);color: #fff;text-decoration: none;border-radius: 5px;transition: all 0.3s ease;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);border: 2px solid transparent;padding: 3px 11px;}
.button-row .button:hover {background-color: #fff;color: var(--blue);border: 2px solid var(--blue);}
.button-row .button.red {background-color: var(--red);}
.button-row .button.red:hover {background-color: #fff;color: var(--red);border: 2px solid var(--red);}
/* BRAND */
.brand-list li {list-style: none;display: inline-block;background: #fff;width: 139px;height: 86px;margin: 1rem 0px 1rem 0.7rem;border-radius: 14px;border: 1px solid #dddddd;overflow: hidden;text-align: center;transition: all 0.2s;}
.brand-list li img {display: block;margin: 6px auto 3px;max-height: 40px;}
.brand-list li:hover { background: #e6e6e6; }


/* services */
#services {background-repeat: no-repeat;background-position: top right;background-size: contain;font-size: 0.87rem;padding: 4rem 0px 2rem;}
#services h5 {font-size: 0.93rem;font-weight: bold;margin-top: 1.2rem;margin-bottom: 10px;}
.index-slider img {width: 100%;}
/* rasa car */
.gray-bg {background: linear-gradient(to right, #fff 0%, #E0E3E9 50%, #fff 100%);padding-bottom: 26rem;}
.rasa-service {background-size: cover;background-position: center;background-repeat: no-repeat;  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);mask-image: linear-gradient(to bottom, black 70%, transparent 100%);}
.rasa-service .title {position: relative;}
.rasa-service .title h2 {color: var(--red);font-size: 5vw;font-weight: bold;padding-top: 4rem;white-space: nowrap;}
.rasa-service .title h2 span {color: var(--blue);margin-left: 2rem;}
.rasa-service  p.light {color: #D0D0D0;font-size: 8vw;font-weight: bold;margin-bottom: 3rem;white-space: nowrap;margin-top: 8vw;}
.rasa-service {position: relative;overflow: hidden; }
#carToMove {position: absolute;top: 42%;transform: translateY(-50%);transition: left 0.1s ease-out;max-width: 42vw;}

/* last article */
.last-posts .line-head {font-size: 1.5rem;font-weight: bold;padding-right: 6rem;}
.last-posts .line-head::after {width: 5rem;}
.blog-article {background: #fff;text-align: center;border-radius: 6px;height: 100%;min-height: 335px;}
.blog-article:hover	h5{color: var(--red);}
.blog-article	h5{font-size: 15px;font-weight: bold;text-align: right;padding: 1rem;color: #292929;margin-bottom: 0px;transition: all 0.2s;}
.blog-article	.post-meta {font-size: 12px;color: #888888;text-align: right;padding-right: 1.5rem;padding-bottom: 1rem;position: relative;}
.cover {position: relative;}
.triangle  {width: 0;height: 0;border-left: 45px solid transparent;border-right: 45px solid transparent;border-bottom: 22px solid #ffffff;position: absolute;bottom: 0px;right: 0px;}
.triangle-top {width: 0;height: 0;border-left: 45px solid transparent;border-right: 45px solid transparent;border-top: 25px solid white;position: absolute;top: 0px;left: 0px;}
.post-meta::after {content: "";display: inline-block;background: var(--red);position: absolute;right: 0px;top: 10px;width: 5px;height: 5px;right: 0.9rem;z-index: 0;color: #000;font-weight: bold;border-radius: 100%;}


/* footer */
#footer {position: relative;width: 100%;overflow: hidden;padding-top: 13rem;margin-top: -34rem;z-index: 2;}
#footer .row {position: relative;top: 5rem;text-align: justify;}
#footer::after {content: "";position: absolute;top: 310px;z-index: -1;right: -26px;width: 105%;height: 104%;background: #DDDEE2;transform: rotate(-9deg);border-radius: 3rem;}
#footer .about img {max-height: 60px;width: auto;}
#footer .contact {margin-top:70px;}
#footer ul.social , .copy-right p{display: block;text-align: left;position: relative;z-index: 2;list-style: none;font-size: 13px;}
#footer ul.social li {display: inline-block;list-style: none;margin: 1rem 0.2rem;}
#footer .copy-right {text-align: left;color: #bfbfbf;position: relative;z-index: 3;}
#footer .copy-right::after {content: "";position: absolute;top: 18px;z-index: 0;right: -138px;width: 108%;height: 215%;background: var(--blue);transform: rotate(6deg);border-radius: 3rem;}


.back-to-top {position: fixed;bottom: 20px;right: 20px;background: #333;color: #fff;border: none;outline: none;width: 45px;height: 45px;border-radius: 50%;font-size: 22px;cursor: pointer;display: none;   /* اول مخفی */z-index: 999;}
.back-to-top:hover {background: #555;}

/* animate */
/* archive brand */
.float-animation {
  animation: floatUpDown 3s ease-in-out infinite;
}
@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px); /* مقدار حرکت به بالا (می‌تونی تغییر بدی) */
  }
}





@media (max-width: 1300px) {
		.bg-banner{top: 4.5rem;width: 70vw;}
		#header {padding:0.1rem 0px; height: 70px;}
}
@media (max-width: 1024px) {
		body {font-size: 14px;}
		.menu-toggle {display: flex;}
		.header-menu {display: none;flex-direction: column;position: fixed;top: 0;left: 0;background: var(--blue);color: #e4e3e3;width: 100vw;height: 100vh;padding: 80px 20px 20px;z-index: 999;overflow-y: auto;}
		.header-menu ul.menu {flex-direction: column;}
		.header-menu ul.menu > li {position: relative;border-bottom: 1px solid #5d73a7;display: block;}
		.header-menu ul.menu > li > a {padding: 15px 10px;display: inline-block;justify-content: space-between;align-items: center;width: 83%;color: #f6f6f6;}
		/* Submenu */
		.header-menu ul.menu > li.menu-item-has-children .before::before {padding: 14px;left: 0px;top: 13px;margin-top: 0px;}
		.header-menu ul.sub-menu {display: none;flex-direction: column;padding-left: 20px;background: transparent;box-shadow: unset;border:0px;  }
		.header-menu li.open > ul.sub-menu , .header-menu ul.menu > li.tworow:hover > ul.sub-menu {display: block;position: static;width: 100%;column-count: 1;border:0px; column-rule: unset;}
		.header-menu ul.sub-menu li a {color: #fff;padding-right: 23px;}
		.header-menu ul.menu > li:hover, .header-menu ul.menu > li.borderd {background:#3d5eb2; }
		.mobile-close {position: absolute;top: 3px;left: 30px;font-size: 30px;font-weight: bold;color: #ff0000;cursor: pointer;z-index: 1000;}
		#header {padding: 0.2rem 0px;}
		.header-menu ul.menu > li { text-align: right;margin: 0px;}
		.header-menu ul.menu > li.menu-item-has-children::before {margin-top: 40px;}
		.button-row {gap: 8px;}
		.button-row a.button {font-size: 10px;padding: 3px 6px;}
    #footer { margin-top: -30rem;}
		#footer::after {top: 200px;}
		#footer .row {top: 0rem;}
		#footer .copy-right::after {right: -61px;}
}


/* archive */
.two-large-posts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.post-large a {
		display: block;
		position: relative;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-bottom: 4px solid #eaeaea;
}

/* .post-title h2 {
    padding: 20px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    background-color: #fff;
    margin: 0;
} */

.post-large a {
    display: block;
    text-decoration: none;
    color: inherit;
		max-height: 450px;
}


/* Post previews in main loop */
.post-preview {display: flex;flex-wrap: wrap;gap: 20px;margin-bottom: 30px;padding: 20px;background-color: #f9f9f9;border-radius: 8px;box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);transition: transform 0.3s ease, box-shadow 0.3s ease;}
.post-large .post-thumbnail {position: relative;}
.post-large .post-title {position: absolute;bottom: 0px;width: 100%;}
.wp-singular .post-title h2 {font-size: 1.35rem;color: var(--red);margin-top: 2.5rem;margin-bottom: 1rem;font-weight: bold;background: linear-gradient(0deg, #ffffff 30%, transparent);margin: 0px;padding: 4rem 2rem 1.5rem;text-align: center;width: 100%;transition: all 0.2s;}
.wp-singular .post-large a:hover .post-title h2 {padding: 5rem 2rem 4rem;}


/* Sidebar */
#sidebar ul {list-style: none;}
.searchform #searchsubmit {background: var(--red);border: 1px slid var(--red);color: #fff;padding: 4px 10px;}
.searchform #s {border-radius: 5px;border-radius: 5px;border: 1px solid #cdcaca;padding: 3px 10px; }
.wp-singular .sidebar  , .search .sidebar {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.wp-singular .sidebar .widget {
    margin-bottom: 20px;
}

.wp-singular .sidebar .widget-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.wp-singular .sidebar .widget a {
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.wp-singular .sidebar .widget a:hover {
    color: #0073e6;
}



@media (max-width: 767px) {
    .mybtn {padding: 7px 10px;min-width: 117px;font-size: 12px;}
		.bg-banner {display: none;}
		#about .w-50 {width: 100% !important;}
		#about .lightning-section {width: 290px;}

		.brand-list li {width: 115px;}
		.rasa-service p.light {margin-bottom:0px; font-size: 10vw;}
		.rasa-service .title h2 {padding-top: 2rem;font-size:8vw;}
		#carToMove {top: 55%;}
		.last-posts .line-head {font-size: 1.2rem;}
		#footer {background:#e8e8e8;margin-top:0px;padding-top: 3rem; }
		#footer .contact {margin-top: 0px;}
		#footer::after {position: static;}
		.gray-bg {padding-bottom: 0rem;}
		#footer .copy-right::after {right: -11px;transform: rotate(14deg);}
}
