/* ملف أنماط الخدمات - شركة السمو العقارية */

/* إصلاح المسافة العلوية للمحتوى - فقط لصفحات الخدمات */
.service-detail-page {
    padding-top: 80px;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #c6ab7b;
    --service-card-bg: #2c3e50;
    --text-dark: #333333;
    --text-light: #666666;
    --border-radius: 30px;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* صفحة الخدمات الرئيسية - تحديث 2025 */
.services-hero {
    background-color: #2c3e50;
    background-image:
        linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
        url('../images/servicesBG.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 100px 0 80px;
    text-align: center !important;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2c3e50;
    opacity: 0.3;
    z-index: 1;
}

.services-hero .container {
    position: relative;
    z-index: 2;
    text-align: center !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.services-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

/* شريط البحث الذكي */
.search-container {
    max-width: 700px;
    margin: 2rem auto 0;
    position: relative;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 55px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #999;
    font-style: normal;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.clear-search:hover {
    background: #e0e0e0;
    color: #333;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
}

.search-result-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.search-result-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.no-results {
    padding: 30px 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* انيميشن للبحث */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* بطاقات الخدمات الرئيسية */
.service-category-card {
    background: var(--service-card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow);
}

.service-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-category-card .card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    transition: var(--transition);
}

.service-category-card:hover .card-background {
    opacity: 0.5;
    transform: scale(1.05);
}

.service-category-card .card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.service-category-card .service-icon {
    font-size: 4rem;
    color: #f5d497;
    margin-bottom: 1rem;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
}

.service-category-card .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

/* تطبيق فلتر للصور العادية */
.service-category-card .service-icon img:not([src$=".svg"]) {
    filter: brightness(0) saturate(100%) invert(85%) sepia(45%) saturate(1500%) hue-rotate(15deg) brightness(105%) contrast(95%);
}

/* تطبيق فلتر مختلف لملفات SVG */
.service-category-card .service-icon img[src$=".svg"] {
    filter: brightness(0) saturate(100%) invert(85%) sepia(45%) saturate(1500%) hue-rotate(15deg) brightness(105%) contrast(95%);
}

.service-category-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.service-category-card:hover .service-icon img:not([src$=".svg"]) {
    filter: brightness(0) saturate(100%) invert(85%) sepia(45%) saturate(1500%) hue-rotate(15deg) brightness(105%) contrast(95%) drop-shadow(0 0 10px rgba(198,171,123,0.5));
}

.service-category-card:hover .service-icon img[src$=".svg"] {
    filter: brightness(0) saturate(100%) invert(85%) sepia(45%) saturate(1500%) hue-rotate(15deg) brightness(105%) contrast(95%) drop-shadow(0 0 10px rgba(198,171,123,0.5));
}

.service-category-card .service-name {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    transition: all 0.15s ease;
}

.service-category-card:hover .service-name {
    color: #fff;
}

/* بطاقات الخدمات الفرعية */
.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-card-horizontal {
    display: flex;
    min-height: 200px;
}

.service-card-image {
    width: 25%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card-content {
    width: 75%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.service-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.service-card-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-card-meta i {
    color: var(--secondary-color);
}

.service-card-meta .separator {
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.service-detail-meta .separator {
    width: 8px;
    height: 8px;
    background: #c6ab7c;
    border-radius: 50%;
    align-self: center;
    flex-shrink: 0;
}

.service-detail-meta .service-rating {
    flex-shrink: 0;
    min-width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

/* في الكمبيوتر - إذا كان النص طويل، التقييم ينزل للسطر الثاني */
@media (min-width: 769px) {
    .service-detail-meta {
        max-width: 600px;
        margin: 0 auto 1.5rem;
    }
}

.service-rating {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    margin: 0 !important;
}

.service-rating .stars {
    color: #ffc107;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.service-action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* أزرار دائرية صغيرة في بطاقات الخدمات - نفس ستايل العقارات */
.service-card-actions .service-action-btn:not(.btn-details) {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    background: #f8f9fa;
    color: #666;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.service-card-actions .service-action-btn:not(.btn-details):hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    background: #f8f9fa;
    color: #333;
}

.service-card-actions .service-action-btn:not(.btn-details) i {
    margin: 0;
}

/* زر التفاصيل الكبير - نفس ستايل العقارات */
.service-card-actions .btn-details {
    flex: 1;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 8px;
    background: linear-gradient(135deg, #c6ab7b, #b8a070);
    color: white;
    text-decoration: none;
    border: none;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    min-width: 80px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.service-card-actions .btn-details:hover {
    background: linear-gradient(135deg, #b8a070, #a89660);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(198, 171, 123, 0.3);
}

/* مجموعة الأزرار الدائرية */
.service-action-buttons {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}



.btn-details {
    background: var(--text-dark);
    color: white;
}

.btn-details:hover {
    background: #555;
    color: white;
}

/* صفحة تفاصيل الخدمة */
.service-detail-hero {
    text-align: center !important;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-detail-image {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius);
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid #c6ab7c;
    box-shadow: var(--shadow);
}

.service-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center !important;
    width: 100%;
}

.service-detail-meta {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem;
    margin: 0 auto 1.5rem !important;
    flex-wrap: wrap;
    text-align: center !important;
    max-width: 600px;
    width: 100%;
}

.service-detail-meta span {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
    font-size: 1rem;
    font-weight: 500;
}

.service-detail-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.service-detail-actions .service-action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    background: #f1f3f4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-detail-actions .service-action-btn:hover {
    background: #e8eaed;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* tooltip رقم الهاتف البسيط */
.phone-tooltip {
    position: fixed;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 0) scale(0.8);
    transition: all 0.2s ease;
    pointer-events: none;
}

.phone-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
}

.phone-tooltip-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e9ecef;
}

.phone-tooltip .phone-number {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    direction: ltr;
    margin: 0;
}

.phone-tooltip .copy-phone-btn {
    background: #c6ab7c;
    color: white;
    border: none;
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.phone-tooltip .copy-phone-btn:hover {
    background: #b8985e;
}

.phone-tooltip-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.phone-tooltip-arrow::before {
    content: '';
    position: absolute;
    top: 1px;
    left: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #e9ecef;
}

.service-detail-description {
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.service-detail-description .description-content {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
}

/* معرض الصور والفيديو */
.gallery-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
}
.media-gallery {
    margin-bottom: 3rem;
}

.gallery-main {
    position: relative;
    margin: 0 auto 1rem;
    border-radius: 40px;
    overflow: hidden;
    height: 500px;
    max-width: 800px;
    border: 2px solid #c6ab7c;
    box-shadow: var(--shadow);
}

.gallery-main img,
.gallery-main video,
.gallery-main iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-thumbnail {
    min-width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

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

.gallery-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-toggle-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-toggle-btn.active,
.gallery-toggle-btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* قسم تقييم الخدمة */
.service-rating-section {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.service-rating-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.rating-stars i {
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ddd;
}

.rating-stars i:hover,
.rating-stars i.active {
    color: #ffc107;
    transform: scale(1.1);
}

.rating-text {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

.submit-rating-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-rating-btn:hover {
    background: #b8985e;
    transform: translateY(-2px);
}

/* منصات التواصل الاجتماعي */
.social-media-section {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.social-media-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.social-media-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    background: #6c757d !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-link i {
    color: white !important;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

.social-link span {
    display: none;
}

/* Hover colors for each platform */
.social-link.website:hover {
    background: linear-gradient(45deg, #6c757d, #495057) !important;
}

.social-link.facebook:hover {
    background: linear-gradient(45deg, #1877f2, #0d47a1) !important;
}

.social-link.whatsapp:hover {
    background: linear-gradient(45deg, #25d366, #128c7e) !important;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #e4405f, #833ab4) !important;
}

.social-link.tiktok:hover {
    background: linear-gradient(45deg, #000000, #ff0050) !important;
}

.social-link.telegram:hover {
    background: linear-gradient(45deg, #0088cc, #005580) !important;
}

.social-link.twitter:hover {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9) !important;
}

.social-link.linkedin:hover {
    background: linear-gradient(45deg, #0077b5, #005885) !important;
}

.social-link.youtube:hover {
    background: linear-gradient(45deg, #ff0000, #cc0000) !important;
}



.rating-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    transform: translateX(100%);
    transition: var(--transition);
}

.rating-notification.show {
    transform: translateX(0);
}

/* التجاوب للهواتف */
@media (max-width: 768px) {
    .service-detail-page {
        padding-top: 70px;
    }

    .service-detail-container {
        display: flex;
        flex-direction: column;
        padding-bottom: 2rem;
    }

    section.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 2rem !important;
    }
    /* تصحيح الهيرو */
    .services-hero {
        padding: 3rem 0 4rem 0;
        text-align: center !important;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 500px;
        background-size: cover !important;
        background-position: center center !important;
        background-attachment: scroll !important;
    }

    .services-hero .container {
        max-width: 100%;
        padding: 0 1rem;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .services-hero .row {
        width: 100%;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .services-hero .col-12 {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .services-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        text-align: center !important;
        color: white !important;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    .services-hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        text-align: center !important;
        color: white !important;
        max-width: 90%;
        line-height: 1.5;
        opacity: 0.95;
    }

    /* تحسين حقل البحث */
    .search-container {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        padding: 0 5px;
    }

    .search-box {
        height: 55px;
        border-radius: 30px;
        position: relative;
        width: 100%;
    }

    .search-input {
        font-size: 1.1rem;
        padding: 0 55px 0 55px;
        height: 100%;
        width: 100%;
        border-radius: 30px;
        text-align: right;
        direction: rtl;
    }

    .search-icon {
        font-size: 1.2rem;
        left: 20px;
        right: auto;
        color: #999;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
    }

    .clear-search {
        right: 20px;
        left: auto;
        font-size: 1rem;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
    }



    .service-category-card {
        margin-bottom: 1.5rem;
        height: auto;
        aspect-ratio: 1 !important;
        padding: 0 !important;
        border-radius: 20px !important;
    }

    /* إضافة CSS للمحتوى */
    .service-category-card .card-content {
        padding: 2rem 1.5rem !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* تصغير الأيقونة واسم الخدمة */
    .service-category-card .service-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 3rem;
        margin: 0 auto 1.2rem auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .service-category-card .service-name {
        font-size: 1.1rem;
        line-height: 1.3;
        font-weight: bold !important;
        text-align: center !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* بطاقات الخدمات الرئيسية فقط - بطاقتين في الخط */
    .services-hero + section .row > .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* تصغير بطاقة الخدمة الرئيسية في الهاتف */
    .services-hero + section .service-category-card {
        padding: 0 !important;
        margin-bottom: 1.2rem;
        aspect-ratio: 1 !important;
        border-radius: 18px !important;
    }

    .services-hero + section .service-category-card .card-content {
        padding: 1.8rem 1.2rem !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .services-hero + section .service-category-card .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 2.5rem;
        margin: 0 auto 1rem auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .services-hero + section .service-category-card .service-name {
        font-size: 1rem;
        line-height: 1.2;
        font-weight: bold !important;
        text-align: center !important;
        margin: 0 !important;
        width: 100% !important;
    }



    .service-name {
        font-size: 0.55rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
        font-weight: bold;
    }

    .service-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.25rem;
        color: #666;
    }

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

    .service-card-header h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
        line-height: 1.3;
        font-weight: bold;
        color: #333;
    }

    .service-meta {
        font-size: 0.75rem;
        gap: 0.2rem;
        margin-bottom: 0.15rem;
    }

    .service-meta span {
        font-size: 0.75rem;
    }

    .service-rating {
        font-size: 0.6rem;
        gap: 0.1rem;
    }

    .service-rating .stars {
        font-size: 0.6rem;
    }

    .service-rating span {
        font-size: 0.55rem;
    }

    .service-card-title {
        font-size: 1rem;
        font-weight: bold;
        line-height: 1.3;
        margin-bottom: 0.2rem;
    }

    .service-card-meta {
        font-size: 0.75rem;
        color: #666;
        margin-bottom: 0.15rem;
    }

    .service-card-meta span {
        font-size: 0.75rem;
    }
    
    .service-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-detail-actions {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .service-detail-actions .service-action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .service-detail-meta {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem auto 1.5rem;
        flex-wrap: wrap;
        text-align: center;
        max-width: 100%;
    }

    .service-detail-meta .separator {
        display: block;
        width: 4px;
        height: 4px;
        background: #c6ab7c;
        border-radius: 50%;
        margin: 0 0.2rem;
    }

    .service-detail-meta .service-rating {
        font-size: 1.1rem;
    }

    .service-detail-meta .service-rating .stars {
        font-size: 1.2rem;
    }

    .service-detail-meta .service-rating .rating-average {
        font-weight: 600;
        font-size: 1.1rem;
    }

    .service-detail-meta .service-rating .rating-count {
        font-size: 1rem;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .social-media-links {
        gap: 0.5rem;
    }

    .social-media-section {
        margin-top: 2rem;
        position: relative;
        z-index: 1;
        clear: both;
        display: block !important;
    }

    .media-gallery {
        position: relative;
        z-index: 0;
        margin-bottom: 2rem;
    }

    .service-rating-section {
        margin-bottom: 2rem;
        clear: both;
    }

    /* ضمان ظهور المحتوى كاملاً في الهاتف */
    .breadcrumb {
        margin-bottom: 1rem;
    }

    .service-detail-hero {
        margin-bottom: 1.5rem;
    }

    .service-detail-description {
        margin-bottom: 1.5rem;
    }

    .media-gallery {
        margin-bottom: 1.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* تحسينات إضافية للمعرض */
.main-image-container,
.main-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.video-embed {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.thumbnail {
    min-width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

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

.video-thumbnail .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.video-thumbnail:hover .video-overlay {
    opacity: 1;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
}

/* تحسين أزرار التبديل */
.gallery-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.gallery-toggle-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-toggle-btn.active,
.gallery-toggle-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 171, 123, 0.3);
}

/* تنسيق عرض روابط الفيديو للمنصات التي لا تدعم التضمين */
.video-link-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    min-height: 300px;
}

.video-platform-info {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.video-platform-info h4 {
    margin: 1rem 0 0.5rem 0;
    color: var(--text-color);
    font-weight: 600;
}

.video-platform-info p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.video-platform-info .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.video-platform-info .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* تنسيق معاينة الفيديوهات الجديدة */
.video-preview-container {
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.video-preview-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-preview-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-preview-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.video-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.video-preview-container:hover .video-preview-overlay {
    opacity: 1;
}

.video-play-button {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-preview-container:hover .video-play-button {
    transform: scale(1.1);
    background: white;
}

.video-platform-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.video-preview-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}
