/* ===================================================
   Tema 1 - Hero Slider (Slayt) Custom Styles
   =================================================== */

.welcome-slider-main {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #052A23;
}

.welcome-slider-main .welcome5-scetion-area {
    position: relative;
    width: 100%;
    background: #052A23;
    padding: 200px 0 70px;
}

@media (max-width: 767px) {
    .welcome-slider-main .welcome5-scetion-area {
        padding: 140px 0 50px;
    }
}

.welcome-slider-main .welcome5-textarea h1 img {
    display: none !important;
}

.hero-single-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    display: block;
}

@media (max-width: 991px) {
    .hero-single-img {
        height: 380px;
    }
}

@media (max-width: 767px) {
    .hero-single-img {
        height: 280px;
    }
}

.welcome-slider-main .welcome5-images-area .content5-counter-area {
    position: absolute !important;
    top: auto !important;
    bottom: 24px !important;
    right: auto !important;
    left: 20px !important;
    width: auto !important;
    min-width: 280px !important;
    max-width: calc(100% - 40px) !important;
    background: #ffffff !important;
    padding: 14px 22px !important;
    border-radius: 10px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 5 !important;
}

[dir="rtl"] .welcome-slider-main .welcome5-images-area .content5-counter-area,
html[lang="ar"] .welcome-slider-main .welcome5-images-area .content5-counter-area {
    left: auto !important;
    right: 20px !important;
}

@media (max-width: 767px) {
    .welcome-slider-main .welcome5-images-area .content5-counter-area {
        position: relative !important;
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
        margin-top: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.welcome-slider-main .welcome5-images-area .content5-counter-area .content-counter {
    padding: 0 12px !important;
}

.welcome-slider-main .welcome5-images-area .content5-counter-area .content-counter:first-child {
    border-right: 1px solid rgba(0, 0, 0, 0.12) !important;
}

[dir="rtl"] .welcome-slider-main .welcome5-images-area .content5-counter-area .content-counter:first-child,
html[lang="ar"] .welcome-slider-main .welcome5-images-area .content5-counter-area .content-counter:first-child {
    border-right: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.welcome-slider-main .welcome5-images-area .content5-counter-area h3 {
    font-size: 26px !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    color: #052A23 !important;
}

.welcome-slider-main .welcome5-images-area .content5-counter-area p {
    font-size: 13px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    color: #555555 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.welcome-slider-main .owl-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.welcome-slider-main .owl-dots button.owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    outline: none;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.welcome-slider-main .owl-dots button.owl-dot.active {
    background: #C5A880;
    width: 28px;
    border-radius: 10px;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.welcome-slider-main .fadeIn {
    animation-name: fadeIn;
    animation-duration: 0.8s;
}

/* ===================================================
   Tema 1 - About Section (Hakkımızda) Custom Styles
   =================================================== */

.about5-sction-area {
    position: relative;
    padding: 100px 0;
    background: #ffffff;
}

.about5-sction-area .about5-images-area .about5-img1 img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.about5-sction-area .about5-images-area .about5-img1.about5-textarea {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(5, 42, 35, 0.15);
}

.about5-sction-area .about5-images-area .about5-img1.about5-textarea img {
    width: auto !important;
    height: 38px !important;
    object-fit: contain !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 14px 0 10px !important;
}

.about5-sction-area .about5-content-area h2 img {
    display: none !important;
}

.about5-sction-area .about5-content-area .about5-lists ul li {
    font-size: 15px;
    font-weight: 600;
    color: #08111C;
}

.about5-sction-area .about5-content-area .about5-lists ul li img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* RTL Support for About Section */
[dir="rtl"] .about5-sction-area .about5-content-area {
    padding: 0 100px 0 0;
}

[dir="rtl"] .about5-sction-area .about5-images-area .about5-img1.about5-textarea {
    margin: 0 50px 0 0;
}

[dir="rtl"] .about5-sction-area .about5-content-area .about5-lists ul {
    margin: 0 0 0 50px;
}

[dir="rtl"] .about5-sction-area .about5-content-area .about5-lists ul li img {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .about5-sction-area .about5-images-area .about5-img1 .quito5 {
    left: auto;
    right: -28px;
}

@media (max-width: 991px) {
    .about5-sction-area {
        padding: 60px 0;
    }
    .about5-sction-area .about5-content-area,
    [dir="rtl"] .about5-sction-area .about5-content-area {
        padding: 0;
        margin-top: 40px;
    }
    .about5-sction-area .about5-images-area .about5-img1.about5-textarea,
    [dir="rtl"] .about5-sction-area .about5-images-area .about5-img1.about5-textarea {
        margin: 0;
        margin-top: 20px;
    }
}

/* Client Avatar Stack */
.client-avatar-stack {
    display: inline-flex;
    align-items: center;
    margin: 16px 0 14px;
}

.client-avatar-stack .avatar-pill {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #ffffff !important;
    margin-right: -10px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    transition: transform 0.2s ease;
}

.client-avatar-stack .avatar-pill:hover {
    transform: translateY(-3px) scale(1.1);
    z-index: 10;
}

[dir="rtl"] .client-avatar-stack .avatar-pill {
    margin-right: 0 !important;
    margin-left: -10px !important;
}

.client-avatar-stack .avatar-pill-plus {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #C5A880;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    margin-right: -10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

/* ===================================================
   Tema 1 - Practice Areas (Faaliyet Alanlarımız) Styles
   =================================================== */

.practice-areas-section {
    background: #FBFBFA;
    padding: 85px 0 100px;
    position: relative;
}

.practice-law-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.practice-law-card {
    background: #F7F7F6;
    border-radius: 24px;
    padding: 44px 34px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-bottom: 5px solid #C5A880;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.practice-law-card:hover {
    transform: translateY(-8px);
    background: #FFFFFF;
    box-shadow: 0 20px 42px rgba(5, 42, 35, 0.09);
    border-bottom-color: #052A23;
}

.practice-law-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}

.practice-law-card:hover .practice-law-icon-wrap {
    background: #052A23;
    transform: scale(1.08);
}

.practice-law-icon-wrap i {
    font-size: 26px;
    color: #C5A880;
    transition: all 0.35s ease;
}

.practice-law-card:hover .practice-law-icon-wrap i {
    color: #E5B472;
}

.practice-law-title {
    font-size: 22px;
    font-weight: 700;
    color: #052A23;
    line-height: 1.35;
    margin-bottom: 14px;
    font-family: 'Playfair Display', serif;
    transition: color 0.25s ease;
}

.practice-law-card:hover .practice-law-title {
    color: #C5A880;
}

.practice-law-desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: #72777D;
    margin-bottom: 0;
    flex-grow: 1;
}

.practice-areas-cta {
    background: linear-gradient(135deg, #052A23 0%, #031B16 100%);
    border-radius: 20px;
    padding: 48px 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 45px;
    box-shadow: 0 20px 45px rgba(5, 42, 35, 0.25);
    border: 1px solid rgba(197, 168, 128, 0.25);
}

.practice-areas-cta::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.practice-areas-cta h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.practice-areas-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin-bottom: 0;
    max-width: 650px;
}

.practice-areas-cta-btn {
    background: linear-gradient(135deg, #C5A880 0%, #DFCAAB 100%);
    color: #052A23 !important;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.practice-areas-cta-btn:hover {
    background: #ffffff;
    color: #052A23 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* Practice Area Show Detail Page Enhancements */
.practice-show-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px;
    border: 1px solid #ECEAE4;
    box-shadow: 0 8px 24px rgba(5, 42, 35, 0.05);
    margin-bottom: 30px;
}

.practice-show-sidebar-card h4 {
    font-size: 19px;
    font-weight: 700;
    color: #052A23;
    padding-bottom: 12px;
    border-bottom: 2px solid #C5A880;
    margin-bottom: 18px;
}

.practice-show-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-show-sidebar-list li {
    margin-bottom: 10px;
}

.practice-show-sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    background: #F9F9F8;
    color: #052A23;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

[dir="rtl"] .practice-show-sidebar-list a,
html[lang="ar"] .practice-show-sidebar-list a {
    border-left: none;
    border-right: 3px solid transparent;
}

.practice-show-sidebar-list a:hover,
.practice-show-sidebar-list a.active {
    background: #052A23;
    color: #C5A880;
    border-left-color: #C5A880;
    transform: translateX(4px);
}

[dir="rtl"] .practice-show-sidebar-list a:hover,
[dir="rtl"] .practice-show-sidebar-list a.active,
html[lang="ar"] .practice-show-sidebar-list a:hover,
html[lang="ar"] .practice-show-sidebar-list a.active {
    border-left-color: transparent;
    border-right-color: #C5A880;
    transform: translateX(-4px);
}

.practice-show-contact-box {
    background: linear-gradient(135deg, #052A23 0%, #031B16 100%);
    border-radius: 16px;
    padding: 30px 24px;
    color: #ffffff;
    text-align: center;
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.practice-show-contact-box .icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.15);
    color: #C5A880;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

/* ===================================================
   Ultra-Premium Law Practice Areas - Index Redesign (v2)
   =================================================== */

.law-practice-main {
    background: #F8F7F4;
    padding: 70px 0 90px 0;
    position: relative;
}

/* Header Typography & Badges - High Contrast */
.law-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: 30px;
    background: #052A23;
    color: #C5A880;
    border: 1px solid rgba(197, 168, 128, 0.5);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(5, 42, 35, 0.12);
}

.law-header-badge i {
    color: #C5A880;
    font-size: 14px;
}

.law-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 800;
    color: #052A23;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .law-header-title {
        font-size: 28px;
    }
}

.law-header-desc {
    color: #2D3748;
    font-size: 16px;
    line-height: 1.75;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
}

/* Search Bar */
.law-filter-strip {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px 22px;
    border: 1px solid #E2DCD2;
    box-shadow: 0 10px 25px rgba(5, 42, 35, 0.05);
    margin-bottom: 40px;
}

.law-search-box {
    position: relative;
    width: 100%;
}

.law-search-box input {
    height: 50px;
    border-radius: 10px;
    border: 1.5px solid #DDD6CB;
    padding-left: 48px;
    padding-right: 20px;
    font-size: 15px;
    color: #052A23;
    background: #FAFAFA;
    transition: all 0.25s ease;
}

[dir="rtl"] .law-search-box input,
html[lang="ar"] .law-search-box input {
    padding-left: 20px;
    padding-right: 48px;
}

.law-search-box input:focus {
    background: #FFFFFF;
    border-color: #052A23;
    box-shadow: 0 0 0 3px rgba(5, 42, 35, 0.1);
    outline: none;
}

.law-search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #A3845B;
    font-size: 18px;
    pointer-events: none;
}

[dir="rtl"] .law-search-box .search-icon,
html[lang="ar"] .law-search-box .search-icon {
    left: auto;
    right: 18px;
}

.law-stat-badge {
    background: #052A23;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: 1px solid #C5A880;
}

.law-stat-badge .stat-count {
    color: #C5A880;
    font-size: 16px;
    font-weight: 800;
}

/* Ultra-Prestigious Card (v2 - No Clipping, Perfect Icon) */
.law-card-link-v2 {
    text-decoration: none;
    display: block;
    height: 100%;
    color: inherit;
}

.law-card-v2 {
    background: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #E6E0D5;
    box-shadow: 0 8px 24px rgba(5, 42, 35, 0.05);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.law-card-v2:hover {
    transform: translateY(-7px);
    border-color: #C5A880;
    box-shadow: 0 20px 40px rgba(5, 42, 35, 0.12);
}

/* Image Header */
.law-card-v2-media {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #052A23;
}

.law-card-v2-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.law-card-v2:hover .law-card-v2-media img {
    transform: scale(1.06);
}

.law-card-v2-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 42, 35, 0.1) 0%, rgba(5, 42, 35, 0.7) 100%);
    pointer-events: none;
}

/* Number watermark badge */
.law-card-v2-num {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(5, 42, 35, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(197, 168, 128, 0.5);
    color: #C5A880;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    z-index: 2;
}

[dir="rtl"] .law-card-v2-num,
html[lang="ar"] .law-card-v2-num {
    right: auto;
    left: 16px;
}

/* Card Body */
.law-card-v2-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #FFFFFF;
}

/* Icon & Category Header Row (Inside Body - Never Clipped!) */
.law-card-v2-top-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.law-card-v2-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #F7F5F0;
    border: 1.5px solid #C5A880;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(5, 42, 35, 0.06);
}

.law-card-v2-icon-wrap i {
    font-size: 22px;
    color: #052A23;
    transition: all 0.3s ease;
}

/* Hover: dark emerald background, brilliant luxury gold icon */
.law-card-v2:hover .law-card-v2-icon-wrap {
    background: #052A23;
    border-color: #052A23;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(5, 42, 35, 0.25);
}

.law-card-v2:hover .law-card-v2-icon-wrap i {
    color: #C5A880;
}

.law-card-v2-meta {
    display: flex;
    flex-direction: column;
}

.law-card-v2-badge {
    color: #8C7653;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Title */
.law-card-v2-title {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 700;
    color: #052A23;
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color 0.25s ease;
}

.law-card-v2:hover .law-card-v2-title {
    color: #A3845B;
}

.law-card-v2-divider {
    width: 35px;
    height: 2px;
    background: #C5A880;
    margin-bottom: 14px;
    transition: width 0.3s ease;
}

.law-card-v2:hover .law-card-v2-divider {
    width: 65px;
    background: #052A23;
}

/* Description Text - Crisp & Readable */
.law-card-v2-desc {
    font-size: 14.5px;
    line-height: 1.68;
    color: #374151;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Service Pills */
.law-card-v2-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-top: 12px;
    border-top: 1px dashed #E2DCD2;
}

.law-card-v2-pill {
    font-size: 12px;
    font-weight: 600;
    color: #052A23;
    background: #F8F6F1;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.law-card-v2-pill i {
    color: #C5A880;
    font-size: 11px;
}

/* Footer Action */
.law-card-v2-footer {
    padding-top: 14px;
    border-top: 1px solid #EDE8DE;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.law-card-v2-action-text {
    font-size: 14px;
    font-weight: 700;
    color: #052A23;
    transition: color 0.25s ease;
}

.law-card-v2:hover .law-card-v2-action-text {
    color: #A3845B;
}

.law-card-v2-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F7F5F0;
    color: #052A23;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 1px solid rgba(197, 168, 128, 0.4);
    transition: all 0.3s ease;
}

.law-card-v2:hover .law-card-v2-arrow {
    background: #052A23;
    color: #C5A880;
    border-color: #052A23;
    transform: translateX(4px);
}

[dir="rtl"] .law-card-v2:hover .law-card-v2-arrow,
html[lang="ar"] .law-card-v2:hover .law-card-v2-arrow {
    transform: translateX(-4px);
}

/* Bottom Gold Stripe */
.law-card-v2-bottom-line {
    height: 3px;
    width: 0;
    background: #C5A880;
    transition: width 0.35s ease;
}

.law-card-v2:hover .law-card-v2-bottom-line {
    width: 100%;
}

/* Trust Strip (Neden Bizi Seçmelisiniz?) */
.law-trust-strip {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 38px 30px;
    border: 1px solid rgba(197, 168, 128, 0.22);
    box-shadow: 0 10px 30px rgba(5, 42, 35, 0.04);
    margin-top: 55px;
    margin-bottom: 45px;
}

.law-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.law-trust-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(197, 168, 128, 0.12);
    border: 1.5px solid rgba(197, 168, 128, 0.35);
    color: #8C7653;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.law-trust-item:hover .law-trust-icon {
    background: #052A23;
    color: #C5A880;
    border-color: #052A23;
    transform: translateY(-3px);
}

.law-trust-item h4 {
    font-size: 16.5px;
    font-weight: 700;
    color: #052A23;
    margin-bottom: 4px;
}

.law-trust-item p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #555555;
    margin-bottom: 0;
}

/* RTL Adjustments for Service Carousel */
[dir="rtl"] .service5-section-area .service5-carousel-area .owl-nav {
    position: absolute;
    top: -130px;
    right: auto !important;
    left: 0 !important;
}

[dir="rtl"] .service5-section-area .service5-boxarea .service5-content-area {
    text-align: right;
}

[dir="rtl"] .service5-section-area .service5-boxarea .service5-content-area::after {
    left: auto;
    right: 0;
    border-radius: 643px 0 0 0;
}

[dir="rtl"] .service5-section-area .service5-boxarea .service-content {
    text-align: right;
}

/* Equal height and image consistency for service cards */
.service5-section-area .service5-boxarea {
    border-radius: 8px;
    overflow: hidden;
    background: #052A23;
}

.service5-section-area .service5-boxarea .service5-images {
    width: 100%;
    height: 370px;
    overflow: hidden;
}

.service5-section-area .service5-boxarea .service5-images img {
    width: 100% !important;
    height: 370px !important;
    object-fit: cover !important;
    display: block;
}

/* Testimonial slider RTL adjustments */
[dir="rtl"] .testimonial5-section-area .testimonial-content-slider .testimonial-slider-boxarea {
    position: relative;
    text-align: right !important;
    padding: 35px 35px 35px 35px !important;
}

[dir="rtl"] .testimonial5-section-area .testimonial-content-slider .testimonial-slider-boxarea .testimonila-img img {
    position: absolute !important;
    top: 35px !important;
    right: 35px !important;
    left: auto !important;
    width: 44px !important;
    height: auto !important;
    opacity: 0.8 !important;
}

[dir="rtl"] .testimonial5-section-area .testimonial-content-slider .testimonial-slider-boxarea .testimonial5-all-content {
    padding-left: 0 !important;
    padding-right: 65px !important;
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .testimonial5-section-area .testimonial-content-slider .testimonial-slider-boxarea .testimonial5-all-content p {
    text-align: right !important;
    font-size: 21px !important;
    line-height: 1.8 !important;
    margin-bottom: 24px !important;
    color: var(--Second-Color, #052A23) !important;
}

[dir="rtl"] .testimonial5-section-area .testimonial-content-slider .testimonial-slider-boxarea .testimonial5-all-content .mans-slider-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
}

.testimonial5-section-area .testimonial-content-slider .testimonial-slider-boxarea .testimonial5-all-content .mans-slider-info img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

[dir="rtl"] .testimonial5-section-area .testimonial-content-slider .testimonial-slider-boxarea .testimonial5-all-content .mans-slider-info img {
    margin-left: 18px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
}

[dir="rtl"] .testimonial5-section-area .testimonial-content-slider .testimonial-slider-boxarea .testimonial5-all-content .mans-slider-info .content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: right !important;
}

[dir="rtl"] .testimonial5-section-area .testimonial-content-slider .testimonial-slider-boxarea .testimonial5-all-content .mans-slider-info .content a {
    text-align: right !important;
    display: block !important;
    font-size: 22px !important;
    margin-bottom: 4px !important;
    color: var(--Second-Color, #052A23) !important;
}

[dir="rtl"] .testimonial5-section-area .testimonial-content-slider .testimonial-slider-boxarea .testimonial5-all-content .mans-slider-info .content p {
    text-align: right !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    opacity: 0.8 !important;
}

.teimonial-slider-nav-area.foter-carousel .testimonial-slider-img img {
    border-radius: 12px;
    object-fit: cover;
    width: 100%;
}

/* ===================================================
   Tema 1 - Contact Form & NiceSelect Fixes
   =================================================== */

.contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select {
    width: 100% !important;
    height: 48px !important;
    line-height: 48px !important;
    padding-left: 18px !important;
    padding-right: 48px !important;
    margin-top: 20px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    position: relative !important;
    float: none !important;
    display: block !important;
}

.contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select span.current {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding: 0 !important;
    line-height: 46px !important;
    height: 46px !important;
    font-size: 15px !important;
    color: #595E65 !important;
    opacity: 0.9 !important;
}

.contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select:after {
    right: 20px !important;
    left: auto !important;
    top: 50% !important;
    margin-top: -4px !important;
    border-bottom: 2px solid #052A23 !important;
    border-right: 2px solid #052A23 !important;
    width: 7px !important;
    height: 7px !important;
}

.contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select ul.list {
    width: 100% !important;
    border-radius: 6px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    margin-top: 6px !important;
    z-index: 50 !important;
}

.contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select ul.list li.option {
    font-size: 15px !important;
    color: #08111C !important;
    line-height: 42px !important;
    min-height: 42px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select ul.list li.option:hover,
.contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select ul.list li.option.selected.focus,
.contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select ul.list li.option.focus {
    background-color: #F4F3EF !important;
    color: #052A23 !important;
    font-weight: 600 !important;
}

/* RTL Support for Contact NiceSelect */
[dir="rtl"] .contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select,
html[lang="ar"] .contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select {
    padding-right: 20px !important;
    padding-left: 48px !important;
    text-align: right !important;
}

[dir="rtl"] .contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select:after,
html[lang="ar"] .contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select:after {
    right: auto !important;
    left: 20px !important;
}

[dir="rtl"] .contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select span.current,
html[lang="ar"] .contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select span.current {
    text-align: right !important;
}

[dir="rtl"] .contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select ul.list,
html[lang="ar"] .contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select ul.list {
    text-align: right !important;
}

[dir="rtl"] .contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select ul.list li.option,
html[lang="ar"] .contact5-section-area .contact5-content-area .input-area .first-name-input .nice-select ul.list li.option {
    text-align: right !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

/* ===================================================
   Tema 1 - CTA Section RTL Support
   =================================================== */

[dir="rtl"] .cta5-section-area .cta-contact-area .cta5-author-area,
html[lang="ar"] .cta5-section-area .cta-contact-area .cta5-author-area {
    direction: rtl !important;
}

[dir="rtl"] .cta5-section-area .cta-contact-area .cta5-author-area .cta5-content,
html[lang="ar"] .cta5-section-area .cta-contact-area .cta5-author-area .cta5-content {
    margin-left: 0 !important;
    margin-right: 16px !important;
    text-align: right !important;
}

[dir="rtl"] .cta5-section-area .cta5-header-area h2,
html[lang="ar"] .cta5-section-area .cta5-header-area h2 {
    text-align: right !important;
}

/* ===================================================
   Tema 1 - Contact Page (contact1) RTL Support
   =================================================== */

[dir="rtl"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-submit-area,
html[lang="ar"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-submit-area {
    margin: 0 0 0 50px !important;
    text-align: right !important;
}

@media (max-width: 991px) {
    [dir="rtl"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-submit-area,
    html[lang="ar"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-submit-area {
        margin: 0 0 30px 0 !important;
    }
}

[dir="rtl"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-widget-area,
html[lang="ar"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-widget-area {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-widget-area .clock-img,
html[lang="ar"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-widget-area .clock-img {
    right: 24px !important;
    left: auto !important;
}

[dir="rtl"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-widget-area .content,
html[lang="ar"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-widget-area .content {
    padding-left: 0 !important;
    padding-right: 75px !important;
    text-align: right !important;
}

[dir="rtl"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-widget-area .content h4,
[dir="rtl"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-widget-area .content a,
html[lang="ar"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-widget-area .content h4,
html[lang="ar"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-widget-area .content a {
    text-align: right !important;
}

[dir="rtl"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-submit-area .contact-inner button i,
html[lang="ar"] .inner-pages .contact1-section-area .contact-auhtor-area .contact-submit-area .contact-inner button i {
    margin-left: 0 !important;
    margin-right: 6px !important;
}



