body{
background-color: #FBFCFE;
}
/* ================= Hero Section ================= */
.hero-section {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
padding: 40px;
align-items: stretch;
}
.hero-container{
height: unset;
}
.card-container{
margin: 40px;
border: 1px solid #EBEEF3;
background-color: #FFFFFF;
border-radius: 25px;
}
@media (min-width: 992px) {
.hero-section {
grid-template-columns: 1fr 2fr;
}
}

.media-card img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.service-card {
background-color: #FFFFFF;
border-radius: 14px;
padding: 20px;
border: 1px solid #E7E9F25C;
box-shadow: 0px 4px 10px 0px #00000014;
display: flex;
flex-direction: column;
align-items: flex-start;
}

.service-heading,
.service-info,
.service-notices,
.service-details,
.media-card {
width: 100%;
}

.card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1rem;
width: 100%;
}
.user-profile {
display: flex;
gap: 10px;
align-items: center;
}
.user-info {
text-align: right;
}

.user-name {
font-size: 12px;
font-weight: 700;
color: #1e293b;
}

.user-role {
font-size: 12px;
font-weight: 600;
color: #00000070;
}

.avatar-wrapper {
position: relative;
}

.user-avatar {
width: 52px;
height: 52px;
border-radius: 50%;
object-fit: cover;
}

.favorite-icon {
background: #EAEAEA;
border-radius: 50%;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
color: #ff4d4f;
font-size: 20px;
cursor: pointer;
}

.service-title {
font-size: 18px;
font-weight: 700;
color: #0f172a;
margin-bottom: 0px;
}

.service-subtitle {
font-size: 12px;
font-weight: 400;
color: #010304;
}

.rating-box {
display: flex;
align-items: center;
gap: 0.5rem;
margin-top: 10px;
margin-bottom: 10px;
}

.rating-count {
font-size: 0.85rem;
color: #94a3b8;
}

.stars {
color: #f59e0b;
font-size: 0.85rem;
}

.meta-info {
display: flex;
flex-direction: column;
gap: 10px;
font-size: 0.85rem;
color: #64748b;
align-items: flex-start;
width: 100%;
}

.meta-item {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 5px;
font-size: 14px;
font-weight: 600;
color: #4a4e68;
width: 100%;
}
.meta-item:last-child {
justify-content: space-between;
margin-top: -12px;
margin-bottom: 7px;
}
.price-val {
font-size: 25px;
font-weight: 700;
color: #0f172a;
}

.price-lbl {
font-size: 14px;
font-weight: 300;
color: #94a3b8;
}

.action-buttons {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: auto;
width: 100%;
}

.btn {
width: 100%;
padding:10px;
border-radius: 59px;
font-weight: 700;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap:5px;
transition: all 0.2s ease;
border: none;
}

.btn-primary {
background-color: #FF4A1D;
color: #ffffff;
}

.btn-primary:hover {
background-color: #e03e0a;
}

.btn-outline {
background-color: transparent;
border: 1px solid #ff4d15;
color: #ff4d15;
}

.btn-outline:hover {
background-color: #fff5f2;
}

/* ================= Tabs Nav ================= */
.tabs-nav {
background-color: #ffffff;
border-radius:15px;
padding: 10px;
display: flex;
align-items: center;
justify-content: space-between;
border: 1px solid #0000000A;
margin:20px 40px;
}

.tab-item {
flex: 1;
background: none;
border: none;
border-radius: 13px;
padding: 5px;
font-weight: 600;
font-size: 16px;
color: #8A92A6;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
white-space: nowrap;
transition: all 0.2s ease;
}
.services-header-row{
flex-direction: row;
justify-content: space-between;
}
.details-card.card-container{
background-color: #EEEEEE;
}
.tab-item.active {
background-color: #FDE3D7;
color: #FE5512;
font-weight: 700;
}

/* ================= Details Card ================= */
.details-card {
background-color: #ffffff;
border-radius: 1rem;
padding: 2rem;
border: 1px solid #f1f5f9;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
}

@media (min-width: 992px) {
.details-card {
grid-template-columns: 1.2fr 0.8fr;
align-items: center;
}
}

.about-text h2 {
font-size: 26px;
font-weight: 700;
color: #0f172a;
margin-bottom: 10px;
}

.about-text p {
color: #7D828D;
line-height: 1.8;
font-size: 16px;
font-weight: 400;
}

.stats-box {
background-color: #FFF1EB7D;
border-radius:13px;
padding: 25px;
border-radius: 13px;
}

.stats-header {
margin-bottom: 1.25rem;
}

.stats-header h3 {
font-size: 16px;
font-weight: 700;
color: #0f172a;
}

.stats-header p {
font-size: 10px;
font-weight: 400;
color: #637088;
}

.stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
}

.stat-card {
background-color: #ffffff;
border-radius:17px;
padding: 15px;
display: flex;
align-items: center;
gap: 0.75rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.stat-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
flex-shrink: 0;
}

.icon-orange {
background-color: #FFF2ED;
color: #ff4d15;
}

.icon-green {
background-color: #FFF2ED;
color: #22c55e;
font-size: 0.6rem;
}

.stat-content {
display: flex;
flex-direction: column;
}

.stat-value {
font-weight: 700;
font-size: 12px;
color: #FF580A;
}

.stat-value.text-green {
color: #14BB69;
}

.stat-label {
font-size: 0.7rem;
color: #94a3b8;
}
.card {
width: 100%;
background-color: #FFFFFF;
border-radius: 10px;
border: 1px solid #EBEEF3;
padding: 15px;
}

/* حاوية الصورة */
.card-image {
width: 100%;
height: 220px;
border-radius: 12px;
overflow: hidden;
background-color: #0084ff;
}

.card-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

/* المحتوى */
.card-content {
padding: 16px 8px 8px 8px;
}

.card-title {
font-size: 16px;
font-weight: 700;
color: #0f172a;
text-align: right;
}
.services-section .card-title{
font-size: 14px;
font-weight: 700;
}
.card-description {
font-size: 12px;
color: #010304;
text-align: right;
font-weight: 400;
}
.rating {
display: flex;
align-items: center;
gap: 6px;
}

.rating-value {
font-size: 18px;
font-weight: 700;
color: #0f172a;
}

.star-icon {
color: #ffc107;
font-size: 1.2rem;
}

.price {
font-size: 16px;
font-weight: 700;
color: #0f172a;
}

.price .currency {
font-size: 1.1rem;
font-weight: 700;
}

/* زر طلب الخدمة */
.order-btn {
width: 100%;
padding: 5px;
background-color: #FFFFFF;
border: 2px solid #FE865D;
color: #FE4404;
border-radius: 10px;
font-size:16px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s ease-in-out;
}

.order-btn:hover {
background-color: #ff4d15;
color: #ffffff;
}
.portfolio-card {
width: 100%;
background-color: #ffffff;
border-radius: 16px;
border: 1px solid #e2e8f0;
padding: 14px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* حاوية الصورة */
.card-image {
width: 100%;
height: 250px;
border-radius: 12px;
overflow: hidden;
background-color: #1a1a1a;
}

.card-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

/* الجزء السفلي (الفوتر) */
.card-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
margin-bottom: 10px;
padding: 2px 4px;
}

/* الشارة / Tag */
.badge {
background-color: #f3e8ff;
color: #0059FF;
font-size: 10px;
font-weight: 600;
padding: 8px;
border-radius: 7px;
display: inline-block;
}

/* العنوان والأيقونة */
.title-wrapper {
display: flex;
align-items: center;
gap: 8px;
}

.external-link {
color: #0f172a;
font-size: 1.1rem;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s ease;
}

.external-link:hover {
color: #2563eb;
}

@media (max-width: 767px) {
.hero-section {
display: flex;
flex-direction: column;
}

.service-card {
align-items: stretch;
}

.service-heading {
order: 1;
}

.media-card {
order: 2;
}

.service-info {
order: 3;
display: flex;
flex-direction: column;
}

.card-header {
margin-bottom: 1rem;
}
}

@media (min-width: 992px) {
.service-card {
grid-column: 1 / -1;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
grid-template-rows: auto auto auto auto;
column-gap: 1.5rem;
row-gap: 0;
padding: 0;
background: transparent;
border: 0;
box-shadow: none;
}

.service-info {
display: contents;
}

.service-notices {
grid-column: 1;
grid-row: 1;
}

.card-header {
grid-column: 1;
grid-row: 2;
margin-bottom: 1rem;
padding: 20px 20px 0;
background-color: #FFFFFF;
border: 1px solid #E7E9F25C;
border-bottom: 0;
border-radius: 14px 14px 0 0;
}

.service-heading {
grid-column: 1;
grid-row: 3;
padding: 0 20px;
background-color: #FFFFFF;
border-left: 1px solid #E7E9F25C;
border-right: 1px solid #E7E9F25C;
}

.service-details {
grid-column: 1;
grid-row: 4;
padding: 0 20px 20px;
background-color: #FFFFFF;
border: 1px solid #E7E9F25C;
border-top: 0;
border-radius: 0 0 14px 14px;
box-shadow: 0px 4px 10px 0px #00000014;
}

.media-card {
grid-column: 2;
grid-row: 1 / 5;
}
}

.reviews-container {
background-color: #ffffff;
border-radius: 20px;
border: 1px solid #f1f5f9;
padding: 24px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* الهيدر العلوي */
.reviews-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}

.section-title {
font-size: 28px;
font-weight: 700;
color: #0f172a;
}

.reviews-count {
color: #ff4d15;
font-weight: 700;
font-size: 18px;
}

.view-all {
color: #ff4d15;
font-size:14px;
font-weight: 600;
text-decoration: none;
transition: opacity 0.2s ease;
}

.view-all:hover {
opacity: 0.8;
}

/* شبكة التقييمات */
.reviews-grid {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}

@media (min-width: 850px) {
.reviews-grid {
grid-template-columns: 1fr 360px;
}
}

/* ================= ملخص التقييم الإحصائي ================= */
.summary-card {
border: 1px solid #f1f5f9;
border-radius: 12px;
padding:16px;
display: flex;
align-items: center;
gap: 16px;
background-color: #ffffff;
}

.score-box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 100px;
}

.overall-rating {
font-size: 60px;
font-weight: 700;
color: #0f172a;
line-height: 1;
margin-bottom: 8px;
}

.score-stars {
color: #FFA100;
margin-bottom: 6px;
display: flex;
gap: 2px;
font-size: 15px;
}

.rating-subtext {
font-size: 11px;
color: #7B859B;
font-weight: 400;
}

/* أشرطة التقييم */
.rating-bars {
flex: 1;
display: flex;
flex-direction: column;
gap: 8px;
}

.bar-row {
display: flex;
align-items: center;
gap: 8px;
}

.count {
font-size: 0.8rem;
font-weight: 700;
color: #0f172a;
width: 12px;
text-align: center;
}

.progress-bar {
flex: 1;
height: 8px;
background-color: #f1f5f9;
border-radius: 10px;
overflow: hidden;
direction: ltr;
}

.progress-fill {
height: 100%;
background-color: #ff4d15;
border-radius: 10px;
}

.row-stars {
display: flex;
gap: 2px;
font-size: 0.65rem;
color: #e2e8f0;
}

.row-stars .active {
color: #FFAA00;
}
.rating-date{
display: flex;
align-items: center;
gap: 15px;
margin-top: -7px;
}
/* ================= قائمة التعليقات ================= */
.comments-list {
display: flex;
flex-direction: column;
gap: 12px;
}

.comment-card {
border: 1px solid #EEF0F4;
border-radius: 10px;
padding: 16px;
background-color: #ffffff;
}

.comment-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 10px;
}

.user-meta {
display: flex;
align-items: center;
gap: 10px;
}

.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}

.user-details {
display: flex;
flex-direction: column;
gap: 2px;
}

.user-name {
font-size: 0.95rem;
font-weight: 700;
color: #0f172a;
}

.comment-stars {
color: #ffc107;
font-size: 0.75rem;
display: flex;
gap: 2px;
}

.comment-date {
font-size: 10px;
font-weight: 400;
color: #9CA3AF;
}

.comment-text {
font-size: 12px;
font-weight: 400;
color: #374151;
line-height: 1.6;
}
@media (max-width: 480px) {
.summary-card {
flex-direction: column;
align-items: unset;
}
.tabs-nav{
flex-direction: column;
}
.stats-grid{
grid-template-columns: 1fr;
}
.reviews-header{
flex-direction: column;
}
.meta-item:last-child{
flex-direction: column;
align-items: flex-start;
margin-top: 0px;
}
.portfolio-card .card-footer{
flex-direction: column;
gap: 10px;
}
.hero-section{
padding: 40px 20px;
}
.tabs-nav,.card-container{
margin: 20px;
}
.swiper{
padding: 0px 0px 50px 0px !important;
}
.section-title{
font-size: 20px;
}
.tab-item{
width: 100%;
}
.tabs-nav{
gap: 10px;
}
.services-header-row{
flex-direction: column;
}
.section-header{
margin-bottom: 0px;
}
}

.tab-content {
display: none;
}

.tab-content.active {
display: block;
}

.media-card {
min-width: 0;
overflow: hidden;
}

.media-card .serviceGallerySwiper {
width: 100%;
aspect-ratio: 16 / 10;
/* the swiper owns the height */
max-height: 520px;
overflow: hidden;
border-radius: inherit;
position: relative;
}

.media-card .serviceGallerySwiper .swiper-wrapper,
.media-card .serviceGallerySwiper .swiper-slide {
height: 100%;
}

.media-card .serviceGallerySwiper .swiper-slide img {
width: 100%;
height: 100%;
/* now resolves against a fixed-ratio box */
object-fit: cover;
display: block;
}

.media-card .serviceGallerySwiper .swiper-button-prev,
.media-card .serviceGallerySwiper .swiper-button-next {
color: #fff;
width: 36px;
height: 36px;
background: rgba(0, 0, 0, .4);
border-radius: 50%;
}

.media-card .serviceGallerySwiper .swiper-button-prev::after,
.media-card .serviceGallerySwiper .swiper-button-next::after {
font-size: 15px;
}

.media-card .serviceGallerySwiper .swiper-pagination-bullet-active {
background: #fff;
}

@media (max-width: 640px) {

.media-card .serviceGallerySwiper .swiper-button-prev,
.media-card .serviceGallerySwiper .swiper-button-next {
display: none;
}
}

.favorite-icon {
cursor: pointer;
}

.favorite-icon.active i {
color: #e53935;
}

.favorite-icon.loading {
opacity: .5;
pointer-events: none;
}

.fav-popup-overlay {
position: fixed;
inset: 0;
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
background: rgba(0, 0, 0, .45);
opacity: 0;
visibility: hidden;
transition: opacity .25s, visibility .25s;
}

.fav-popup-overlay.show {
opacity: 1;
visibility: visible;
}

.fav-popup {
background: #fff;
width: 100%;
max-width: 380px;
border-radius: 16px;
padding: 28px 24px 22px;
text-align: center;
box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
transform: scale(.9);
transition: transform .25s;
}

.fav-popup-overlay.show .fav-popup {
transform: scale(1);
}

.fav-popup-icon {
width: 64px;
height: 64px;
margin: 0 auto 14px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
color: #fff;
}

.fav-popup-icon.success {
background: #198754;
}

.fav-popup-icon.error {
background: #dc3545;
}

.fav-popup-message {
margin: 0 0 18px;
font-size: 16px;
line-height: 1.7;
color: #222;
}

.fav-popup-close {
border: 0;
border-radius: 8px;
padding: 10px 28px;
font-family: inherit;
font-size: 15px;
color: #fff;
background: #222;
cursor: pointer;
}
.cv-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999; /* below the result popup (9999) so the success message shows on top */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.cv-modal-overlay.show { opacity: 1; visibility: visible; }
.cv-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    transform: scale(.95);
    transition: transform .25s;
}
.cv-modal-overlay.show .cv-modal { transform: scale(1); }
.cv-close {
    position: absolute;
    top: 10px;
    inset-inline-start: 14px;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #777;
    cursor: pointer;
}
.cv-title { margin: 0 0 18px; font-size: 20px; color: #222; text-align: center; }
.cv-field { margin-bottom: 16px; }
.cv-field > label { display: block; margin-bottom: 6px; font-size: 14px; color: #333; }
.cv-field textarea,
.cv-field input[type="email"],
.cv-field input[type="tel"],
.cv-field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
    resize: vertical;
}
.cv-field textarea:focus,
.cv-field input:focus { outline: none; border-color: #222; }
.cv-field .invalid { border-color: #dc3545 !important; }
.cv-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-method { flex: 1 1 140px; cursor: pointer; margin: 0; }
.cv-method input { position: absolute; opacity: 0; pointer-events: none; }
.cv-method span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-size: 14px;
    transition: .2s;
}
.cv-method input:checked + span { border-color: #222; background: #222; color: #fff; }
.cv-method input:focus-visible + span { outline: 2px solid #222; outline-offset: 2px; }
.cv-hint { display: block; margin-top: 4px; font-size: 12px; color: #777; }
.cv-error { display: block; margin-top: 4px; font-size: 13px; color: #dc3545; }
.cv-error:empty { display: none; }
.cv-general-error {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecea;
    color: #b02a37;
    font-size: 14px;
}
.cv-general-error[hidden] { display: none; }
.cv-submit {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 16px;
    color: #fff;
    background: #222;
    cursor: pointer;
}
.cv-submit:disabled { opacity: .6; cursor: not-allowed; }
