/*
Theme Name: Law Firm - داغ
Theme URI: https://example.com
Author: Law Firm
Author URI: https://example.com
Description: قالب WordPress لمكتب داغ للمحاماة والاستشارات القانونية
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: law-firm
*/

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Cairo',sans-serif;
}

body{
direction:rtl;
overflow-x: hidden;
}


/* ========================
   HEADER
======================== */
.header{
position:fixed;
width:100%;
top:0;
z-index:999;
background: transparent;
}

.top-bar{
border-bottom:1px solid rgba(255,255,255,0.15);
border-right: #557FAB 3px solid ;
padding:8px 0;
color:white;
font-size:14px;
width: 100%;
margin-right: 230px;
border-bottom: #557FAB 3px solid;
}

.top-content{
display:flex;
justify-content:flex-start;
}

.top-right{
display:flex;
gap:30px;
align-items:center;
}

.top-right i{
color:#6ea0d8;
margin-left:8px;
}

.main-header{
margin-top:10px;
margin: auto;
backdrop-filter:blur(8px);
width: 100%;
display:flex;
align-items:center;
justify-content:space-between;
}

.logo img{
display: flex;
position: relative;
width: 200px;
height: 150px;
margin-top: -50px;
right: 32px;
opacity: 1;
border-left:  3px solid #557FAB;
padding: 30px;
}

.nav{
display:flex;
align-items:center;
gap:18px;
position: relative;
}

.nav a{
color:white;
text-decoration:none;
font-size:15px;
font-weight:500;
transition:.3s;
cursor: pointer;
}

.nav-item{
display:flex;
align-items:center;
gap:8px;
position:relative;
}

.line{
width:0;
height:3.4px;
background:#5580AB;
transition:.3s;
position: relative;
right: -8px;
}

.separator{
width: 10px;
height: 10px;
background: rgb(255, 255, 255);
transform:rotate(45deg);
opacity:.6;
}

.nav-item.active .separator{
    background:#5580AB;
}

.nav-item:hover .separator{
background:#5580AB;
}

.nav-item:hover .line{
width:25px;
}

.nav-item.active .line{
width:25px;
}

.consult-btn{
background: linear-gradient(90deg, #5580AB 0%, #223445 100%);
color:white;
border:none;
padding:15px 34px;
font-size:15px;
cursor:pointer;
transition:.3s;
margin-left: 200px;
}

.consult-btn:hover{
opacity:.9;
}

.nav-item{
position:relative;
}

.dropdown-menu{
position:absolute;
top:35px;
right:0;
background:rgba(10,20,35,.95);
backdrop-filter:blur(10px);
border-radius:10px;
padding:10px 0;
min-width:180px;
opacity:0;
visibility:hidden;
transform:translateY(10px);
transition:.3s;
box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.dropdown-menu a{
display:block;
padding:10px 18px;
color:white;
font-size:14px;
}

.dropdown-menu a:hover{
background:rgba(255,255,255,.05);
color:#6ea0d8;
}

.dropdown:hover .dropdown-menu{
opacity:1;
visibility:visible;
transform:translateY(0);
}

/* ========================
   FOOTER
======================== */
.footer{
background:#24394b;
color:white;
padding:80px 30px;
direction:rtl;
font-family:'Cairo',sans-serif;
margin-bottom: auto;
}

.footer-grid{
display:grid;
grid-template-columns: 1.3fr 1fr .7fr 1.2fr;
gap:60px;
align-items:start;
}

.footer h3{
font-size:20px;
margin-bottom:25px;
position:relative;
}

.footer h3::after{
content:"";
position:absolute;
right:0;
bottom:-10px;
width:100px;
height:3px;
background: linear-gradient(90deg, #5580AB 0%, #223445 100%);
}

.footer-logo{
width:140px;
margin-bottom:20px;
}

.footer-about p{
line-height:1.8;
color:#ffffff;
}

.footer-menu{
list-style:none;
}

.footer-item{
display:flex;
align-items:center;
gap:10px;
margin-bottom:14px;
cursor:pointer;
}

.footer-item .line{
width:0;
height:3.4px;
background:#5580AB;
transition:.3s;
position: relative;
margin-right: -1px;
}

.footer-item .separator{
width:10px;
height:10px;
background:white;
transform:rotate(45deg);
opacity:.6;
transition:.3s;
}

.footer-item a{
color:#c9d4df;
text-decoration:none;
transition:.3s;
}

.footer-item:hover .line{
width:25px;
}

.footer-item:hover .separator{
background:#5580AB;
}

.footer-item:hover a{
color:white;
}

.social-icons{
display:flex;
flex-direction:column;
gap:18px;
font-size:20px;
color:#557FAB;
}

.social-icons i{
cursor:pointer;
transition:.3s;
}

.social-icons i:hover{
color:white;
transform:translateX(-5px);
}

.footer-address p{
color:#c9d4df;
line-height:1.7;
margin-bottom:20px;
}

.map{
width:100%;
height: 200px;
border-radius:4px;
}

html, body {
height: 100%;
}

body {
display: flex;
flex-direction: column;
}

.footer {
margin-top: auto;
}

/* ========================
   CONTENT AREA
======================== */
.site-content {
flex: 1;
}

/* ========================
   HAMBURGER BUTTON
======================== */
.hamburger {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 6px;
z-index: 1001;
}

.hamburger span {
display: block;
width: 26px;
height: 2.5px;
background: white;
border-radius: 2px;
transition: all .3s ease;
transform-origin: center;
}

.hamburger.open span:nth-child(1) {
transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
opacity: 0;
transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
transform: translateY(-7.5px) rotate(-45deg);
}

/* ========================
   MOBILE NAV DRAWER
======================== */
.mobile-nav {
display: none;
position: absolute;
top: 100%;
right: 0;
left: 0;
background: rgba(10, 20, 35, 0.97);
backdrop-filter: blur(12px);
z-index: 999;
max-height: 0;
overflow: hidden;
transition: max-height .4s ease;
}

.mobile-nav.open {
max-height: 100vh;
}

.mobile-nav-inner {
padding: 20px 24px 30px;
display: flex;
flex-direction: column;
gap: 4px;
}

.mobile-nav-item {
border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mobile-nav-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 0;
}

.mobile-nav-row a {
color: white;
text-decoration: none;
font-size: 16px;
font-weight: 500;
}

.mobile-nav-item.active > .mobile-nav-row a {
color: #6ea0d8;
}

.mobile-arrow {
background: none;
border: none;
color: #6ea0d8;
cursor: pointer;
font-size: 13px;
padding: 4px 8px;
transition: transform .3s;
}

.mobile-arrow.open {
transform: rotate(180deg);
}

.mobile-submenu {
display: none;
padding: 0 0 12px 16px;
flex-direction: column;
gap: 2px;
}

.mobile-submenu.open {
display: flex;
}

.mobile-submenu a {
color: #c9d4df;
text-decoration: none;
font-size: 14px;
padding: 8px 0;
border-bottom: 1px solid rgba(255,255,255,0.05);
transition: color .2s;
}

.mobile-submenu a:last-child {
border-bottom: none;
}

.mobile-submenu a:hover,
.mobile-submenu a.active {
color: #6ea0d8;
}

.mobile-consult {
margin: 20px 0 0;
width: 100%;
text-align: center;
}

/* ========================
   ACTIVE DROPDOWN CHILD
======================== */
.dropdown-menu a.active {
color: #6ea0d8 !important;
background: rgba(255,255,255,0.04);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
    .nav,
    .desktop-consult {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .top-bar {
        margin-right: 0;
    }

    .logo img {
        width: 140px;
        height: 100px;
        margin-top: -20px;
        right: 0;
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .top-right {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .logo img {
        width: 110px;
        height: 80px;
        margin-top: 0;
    }
}

/* ========================
   PAGE HERO SECTION
======================== */
.page-hero {
    position: relative;
    width: 100%;
    height: 530px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(34, 52, 69, 0.55) 0%,
        rgba(34, 52, 69, 0.75) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.page-hero-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color .2s;
}

.page-hero-breadcrumb a:hover {
    color: #6ea0d8;
}

.page-hero-breadcrumb .breadcrumb-sep {
    color: #6ea0d8;
    font-size: 12px;
}

.page-hero-breadcrumb span:last-child {
    color: white;
    font-weight: 600;
}

@media (max-width: 600px) {
    .page-hero {
        height: 320px;
    }

    .page-hero-title {
        font-size: 30px;
    }
}


/* ================================================================
   BLOG — home.php / archive.php / sidebar.php
   ================================================================ */

/* Wrap */
.lf-blog-wrap {
    padding: 70px 30px 80px;
    width: 100%;
}

.lf-archive-desc {
    color: #6b7f8e;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e6ed;
}

/* Layout: posts + sidebar */
.lf-blog-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 50px;
    align-items: start;
    margin: 10px 30px;
}

/* ── Section title ─────────────────────────────────── */
.lf-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #24394b;
    margin: 50px 0 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e0e6ed;
    position: relative;
}

.lf-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #5580AB, #223445);
}

/* ── Featured Post ─────────────────────────────────── */
.lf-featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    margin-bottom: 14px;
    transition: box-shadow .3s;
    margin: 10px 30px;
}

.lf-featured-post:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
}

.lf-featured-img-link {
    display: block;
    overflow: hidden;
    max-height: 360px;
}

.lf-featured-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.lf-featured-post:hover .lf-featured-img {
    transform: scale(1.03);
}

.lf-featured-body {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lf-featured-badge {
    display: inline-block;
    background: linear-gradient(90deg, #5580AB, #223445);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 3px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.lf-card-meta {
    display: flex;
    gap: 18px;
    color: #8a9bb0;
    font-size: 13px;
    margin-bottom: 14px;
}

.lf-card-meta i {
    color: #5580AB;
    margin-left: 5px;
}

.lf-featured-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 14px;
}

.lf-featured-title a {
    color: #24394b;
    text-decoration: none;
    transition: color .2s;
}

.lf-featured-title a:hover { color: #5580AB; }

.lf-featured-excerpt {
    color: #6b7f8e;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ── Posts Grid ────────────────────────────────────── */
.lf-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Card ──────────────────────────────────────────── */
.lf-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e6ed;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.lf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-color: #5580AB;
}

.lf-card-img-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.lf-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.lf-card:hover .lf-card-img {
    transform: scale(1.05);
}

/* Placeholder when no thumbnail */
.lf-card-img-placeholder {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #1a2e45, #0d1b2a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.25);
    font-size: 42px;
}

.lf-card-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(90deg, #5580AB, #223445);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    letter-spacing: .5px;
    pointer-events: none;
}

.lf-card-body {
    padding: 20px 20px 0;
    flex: 1;
}

.lf-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 10px;
}

.lf-card-title a {
    color: #24394b;
    text-decoration: none;
    transition: color .2s;
}

.lf-card:hover .lf-card-title a { color: #5580AB; }

.lf-card-excerpt {
    font-size: 13.5px;
    color: #6b7f8e;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lf-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin-top: 16px;
    border-top: 1px solid #e0e6ed;
    font-size: 13px;
    color: #8a9bb0;
}

.lf-card-date i { color: #5580AB; margin-left: 5px; }

/* ── Read More link ────────────────────────────────── */
.lf-read-more {
    color: #5580AB;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s, color .2s;
}

.lf-read-more:hover {
    color: #223445;
    gap: 10px;
}

/* ── Pagination ────────────────────────────────────── */
.lf-pagination {
    margin: 50px 0 10px;
    display: flex;
    justify-content: center;
}

.lf-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lf-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    color: #6b7f8e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all .2s;
    background: #fff;
}

.lf-pagination .page-numbers:hover {
    background: #24394b;
    border-color: #24394b;
    color: #fff;
}

.lf-pagination .page-numbers.current {
    background: linear-gradient(90deg, #5580AB, #223445);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
}

.lf-no-posts {
    text-align: center;
    color: #5580AB;
    font-size: 20px;
    padding: 60px 0;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .lf-blog-layout {
        grid-template-columns: 1fr;
    }

    .lf-sidebar {
        position: static;
    }

    .lf-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lf-featured-post {
        grid-template-columns: 1fr;
    }

    .lf-featured-img-link {
        max-height: 220px;
    }

    .lf-featured-body {
        padding: 24px 20px;
    }
}

@media (max-width: 600px) {
    .lf-posts-grid {
        grid-template-columns: 1fr;
    }

    .lf-blog-wrap {
        padding: 40px 0 60px;
    }
}


/* ================================================================
   SINGLE POST — single.php
   ================================================================ */

/* ── Hero ──────────────────────────────────────────────────────── */
.single-hero {
    position: relative;
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 27, 42, 0.35) 0%,
        rgba(13, 27, 42, 0.80) 100%
    );
}

.single-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 5%;
    color: white;
}

.single-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-top: 14px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

@media (max-width: 600px) {
    .single-hero       { height: 280px; }
    .single-hero-title { font-size: 24px; }
}

/* ── Layout ────────────────────────────────────────────────────── */
.single-wrap {
    padding: 60px 50px 80px;
}

.single-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 50px;
    align-items: start;
}

@media (max-width: 1024px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
    .lf-sidebar { position: static; }
}

/* ── Article ───────────────────────────────────────────────────── */
.single-article {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    padding: 36px 40px 48px;
    margin-right: 0;
}

@media (max-width: 600px) {
    .single-article { padding: 24px 18px 36px; }
}

/* وقت القراءة */
.single-read-time {
    text-align: center;
    color: #5580AB;
    font-size: 14px;
    margin-bottom: 28px;
    letter-spacing: .3px;
}

.single-read-time i {
    margin-left: 6px;
}

/* صورة المقال */
.single-thumbnail {
    margin-bottom: 32px;
    border-radius: 6px;
    overflow: hidden;
}

.single-thumb-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .single-thumb-img { height: 220px; }
}

/* Meta bar */
.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #8a9bb0;
    margin-bottom: 16px;
}

.single-meta i {
    color: #5580AB;
    margin-left: 6px;
}

.single-cat {
    background: #f0f4f8;
    padding: 3px 12px;
    border-radius: 12px;
    color: #24394b;
    font-weight: 500;
}

/* عنوان المقال */
.single-title {
    font-size: 30px;
    font-weight: 700;
    color: #24394b;
    line-height: 1.55;
    margin-bottom: 28px;
}

@media (max-width: 600px) {
    .single-title { font-size: 22px; }
}

/* ── محتوى المقال (entry-content) ─────────────────────────────── */
.single-content {
    font-size: 16px;
    line-height: 2;
    color: #3a4a58;
}

.single-content p {
    margin-bottom: 22px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    color: #24394b;
    font-weight: 700;
    margin: 36px 0 14px;
    line-height: 1.5;
}

.single-content h2 { font-size: 24px; }
.single-content h3 { font-size: 20px; }
.single-content h4 { font-size: 17px; }

.single-content ul,
.single-content ol {
    padding-right: 24px;
    margin-bottom: 22px;
}

.single-content li {
    margin-bottom: 8px;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    display: block;
}

/* بلوك الاقتباس — زي الـ Figma */
.single-content blockquote,
.wp-block-quote {
    margin: 32px 0;
    padding: 24px 28px 24px 20px;
    border-right: 4px solid #5580AB;
    background: #f4f7fb;
    border-radius: 0 6px 6px 0;
    position: relative;
}

.single-content blockquote::before,
.wp-block-quote::before {
    content: '\201C';
    font-size: 60px;
    color: #5580AB;
    opacity: .2;
    position: absolute;
    top: 6px;
    left: 16px;
    line-height: 1;
    font-family: Georgia, serif;
}

.single-content blockquote p,
.wp-block-quote p {
    font-size: 17px;
    color: #24394b;
    font-weight: 600;
    line-height: 1.8;
    margin: 0;
}

.single-content blockquote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #8a9bb0;
    font-style: normal;
}

/* separator */
.single-content hr {
    border: none;
    border-top: 2px solid #e0e6ed;
    margin: 36px 0;
}

/* ── الوسوم ────────────────────────────────────────────────────── */
.single-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e0e6ed;
    font-size: 14px;
    color: #8a9bb0;
}

.single-tags i {
    color: #5580AB;
    margin-left: 4px;
}

.single-tag {
    padding: 5px 14px;
    border: 1px solid #d0dae6;
    border-radius: 20px;
    color: #4a6070;
    text-decoration: none;
    font-size: 13px;
    transition: all .2s;
}

.single-tag:hover {
    background: #24394b;
    border-color: #24394b;
    color: #fff;
}

/* ── التنقل بين المقالات ───────────────────────────────────────── */
.single-nav {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e6ed;
}

.single-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s;
    border: 1px solid #e0e6ed;
    color: #24394b;
    background: #f8fafc;
}

.single-nav-btn:hover {
    background: linear-gradient(90deg, #5580AB, #223445);
    border-color: transparent;
    color: #fff;
}

.single-nav-btn i {
    font-size: 16px;
    flex-shrink: 0;
    color: #5580AB;
    transition: color .25s;
}

.single-nav-btn:hover i { color: #fff; }

.single-nav-btn span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}

.single-nav-btn small {
    font-size: 11px;
    font-weight: 400;
    opacity: .7;
    display: block;
}

.single-nav-next {
    justify-content: flex-end;
    text-align: left;
}

@media (max-width: 600px) {
    .single-nav        { flex-direction: column; }
    .single-nav-next   { justify-content: flex-start; text-align: right; }
}

/* ── التعليقات ─────────────────────────────────────────────────── */
.single-comments {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e0e6ed;
}

.single-comments .comments-title {
    font-size: 22px;
    font-weight: 700;
    color: #24394b;
    margin-bottom: 28px;
}

.single-comments .comment-body {
    background: #f8fafc;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.single-comments .comment-author b {
    color: #24394b;
    font-size: 15px;
}

.single-comments .comment-content p {
    color: #4a6070;
    font-size: 15px;
    line-height: 1.8;
    margin-top: 8px;
}

/* comment form */
.single-comments .comment-form input[type="text"],
.single-comments .comment-form input[type="email"],
.single-comments .comment-form input[type="url"],
.single-comments .comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e0e6ed;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: #24394b;
    outline: none;
    transition: border-color .2s;
    margin-bottom: 12px;
}

.single-comments .comment-form input:focus,
.single-comments .comment-form textarea:focus {
    border-color: #5580AB;
}

.single-comments .comment-form .submit {
    background: linear-gradient(90deg, #5580AB, #223445);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.single-comments .comment-form .submit:hover { opacity: .88; }

/* ── مقالات ذات صلة ────────────────────────────────────────────── */
.single-related {
    margin-top: 60px;
    padding-top: 10px;
}

/* ================================================================
   SINGLE POST — RESPONSIVE
   ================================================================ */

/* ── iPad / Tablet (≤ 1024px) ──────────────────────────────────── */
@media (max-width: 1024px) {

    .single-hero { height: 360px; }
    .single-hero-title { font-size: 28px; }

    .single-wrap { padding: 40px 30px 60px; }

    .single-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .single-article { padding: 30px 32px 40px; }
    .single-thumb-img { height: 340px; }
    .single-title { font-size: 26px; }
    .single-content { font-size: 15.5px; }

    .single-nav-btn {
        padding: 14px 16px;
        font-size: 13px;
    }

    .single-related .lf-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ── Small Tablet / Large Mobile (≤ 768px) ─────────────────────── */
@media (max-width: 768px) {

    .single-hero { height: 300px; }
    .single-hero-title { font-size: 24px; }
    .single-hero-content { padding: 30px 5%; }

    .single-wrap { padding: 30px 20px 50px; }

    .single-article {
        padding: 26px 24px 36px;
        border-radius: 6px;
    }

    .single-meta { gap: 14px; font-size: 13px; }
    .single-title { font-size: 23px; margin-bottom: 22px; }
    .single-thumb-img { height: 260px; }

    .single-content { font-size: 15px; line-height: 1.9; }
    .single-content h2 { font-size: 21px; }
    .single-content h3 { font-size: 18px; }
    .single-content h4 { font-size: 16px; }

    .single-tags { margin-top: 32px; padding-top: 20px; }

    .single-nav {
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
        padding-top: 24px;
    }
    .single-nav-next { justify-content: flex-start; text-align: right; }

    .single-related .lf-posts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .single-related .lf-section-title {
        font-size: 20px;
        margin: 0 0 22px;
    }
}

/* ── Mobile (≤ 600px) ──────────────────────────────────────────── */
@media (max-width: 600px) {

    .single-hero { height: 240px; }
    .single-hero-title { font-size: 20px; margin-top: 10px; }
    .page-hero-breadcrumb { font-size: 13px; gap: 6px; }

    .single-wrap { padding: 20px 14px 40px; }

    .single-article {
        padding: 20px 16px 30px;
        box-shadow: 0 1px 10px rgba(0,0,0,.06);
    }

    .single-read-time { font-size: 13px; margin-bottom: 20px; }

    .single-thumbnail { margin-bottom: 22px; }
    .single-thumb-img { height: 200px; }

    .single-meta {
        gap: 10px;
        font-size: 12.5px;
        flex-direction: column;
        align-items: flex-start;
    }

    .single-title {
        font-size: 20px;
        margin-bottom: 18px;
        line-height: 1.6;
    }

    .single-content { font-size: 14.5px; line-height: 1.85; }
    .single-content p { margin-bottom: 16px; }
    .single-content h2 { font-size: 19px; }
    .single-content h3 { font-size: 16px; }
    .single-content h4 { font-size: 15px; }

    .single-content blockquote,
    .wp-block-quote {
        padding: 18px 20px 18px 14px;
        margin: 22px 0;
    }

    .single-content blockquote p,
    .wp-block-quote p { font-size: 15px; }

    .single-tags {
        margin-top: 26px;
        padding-top: 16px;
        font-size: 13px;
        gap: 6px;
    }
    .single-tag { padding: 4px 11px; font-size: 12px; }

    .single-nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 26px;
        padding-top: 20px;
    }
    .single-nav-btn { padding: 14px 16px; font-size: 13px; gap: 10px; }

    .single-comments { margin-top: 36px; padding-top: 28px; }
    .single-comments .comments-title { font-size: 19px; margin-bottom: 20px; }

    .single-comments .comment-form input[type="text"],
    .single-comments .comment-form input[type="email"],
    .single-comments .comment-form input[type="url"],
    .single-comments .comment-form textarea {
        font-size: 13.5px;
        padding: 10px 12px;
    }

    .single-related { margin-top: 40px; }
    .single-related .lf-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


.latest-posts{
width:90%;
margin:80px auto;
}

.latest-posts .container{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.post-card{
border:1px solid #E5E5E5;
border-radius:16px;
overflow:hidden;
background:#fff;
transition:.3s;
height:100%;
display:flex;
flex-direction:column;
}

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

.post-content{
padding:20px;
text-align:right;
flex:1;
}

.post-content h3{
font-size:20px;
margin-bottom:15px;
line-height:1.6;
}

.post-content p{
color:#777;
line-height:1.8;
margin-bottom:20px;
}

.read-more{
color:#3b6ea8;
text-decoration:none;
font-weight:600;
display:inline-flex;
gap:8px;
align-items:center;
}

.post-date{
padding:15px 20px;
border-top:1px solid #eee;
color:#999;
font-size:14px;
}


/* tablet */
@media (max-width: 992px){
.latest-posts .container{
grid-template-columns:repeat(2,1fr);
}
}


/* mobile */
@media (max-width: 600px){
.latest-posts .container{
grid-template-columns:1fr;
}
}


.contact-elementor{
margin-top:100px;
margin-bottom: 100px;
}

.contact-elementor .elementor-section{
width:100% !important;
max-width:100% !important;

}






/* خدماتنا */

.x, .y {
    opacity: 0;
    visibility: hidden;
}
.xy:hover .text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s ease;
}

.xy:hover .y {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.10s ease;
    visibility: visible;
}

.xy:hover .x {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s ease;
    visibility: visible;
}