/* 
Theme Name: Coreit
Theme URI: https://themeforest.net/user/steelthemes/portfolio
Author: SteelThemes
Author URI: https://themeforest.net/category/wordpress?term=steelthemes&view=grid#content
Description: Core IT - Business Consulting & IT Agency WordPress Theme.
Version: 1.1.6
Requires at least: 5.8
Tested up to: 6.8.3
Requires PHP: 7.4
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coreit
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
*/


.rtl-form * {
    direction: rtl !important;
    text-align: right !important;
}

.rtl-form input,
.rtl-form textarea,
.rtl-form select {
    direction: rtl !important;
    text-align: right !important;
}

.rtl-form label {
    text-align: right !important;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

/* en */
.page-id-5149 .grecaptcha-badge {
    visibility: visible !important;
}

/* tr */
.page-id-20456 .grecaptcha-badge {
    visibility: visible !important;
}

/* fa */
.page-id-20290 .grecaptcha-badge {
    visibility: visible !important;
}


.related-pages .cardNews {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.related-pages .image-box {
  width: 100%;
  height: 220px; 
  overflow: hidden;
  border-radius: 10px;
}

.related-pages .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform 0.3s ease;
}

.related-pages .cardInfo {
  padding-top: 15px;
  flex-grow: 1;
}

.related-pages .cardInfo .font-26 {
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-pages .cardNews:hover .image-box img {
  transform: scale(1.05);
}

.related-pages .cardInfo h4.short-description {
    color: #888;       
    font-weight: normal; 
    font-size: 18px; 
    margin-top: 5px;
    margin-bottom: 10px;
}
/* GRID */
.dpv2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* -------------------------------------------------------------
   Dubai Projects Grid v2 - CSS
------------------------------------------------------------- */

/* CARD اصلی */
.dpv2-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dpv2-image-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: block;
}
.dpv2-image {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(1);
    transition: transform .55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.dpv2-image-wrapper:hover .dpv2-image {
    transform: translate(-50%,-50%) scale(1.09);
}
.dpv2-title {
    margin: 30px 18px 6px; 
    font-size: 19px;
    font-weight: 600; 
    color: #111;
    text-decoration: none;
    line-height: 1.45;
    font-family: inherit;
}
.dpv2-desc {
    margin: 0 18px 16px;
    color: #555;
    min-height: 62px;
}

/* گرید دسکتاپ */
.dpv2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* موبایل */
@media (max-width: 768px) {
    .dpv2-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        box-shadow: 0 4px 18px rgba(0,0,0,.05);
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    .dpv2-grid::-webkit-scrollbar { display: none; }
    .dpv2-card {
        flex: 0 0 100%;
        margin: 0;
    }
    /* دکمه‌ها زیر کارت‌ها */
    .dpv2-nav-container {
        display: flex;
        margin-top: 10px;
        justify-content: center;
        gap: 2rem !important;
    }
    .dpv2-nav-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #fff;
        color: #004d25;
        border: none;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
        padding: 0;
    }
}

/* دسکتاپ دکمه‌ها مخفی */
@media (min-width: 769px) {
    .dpv2-nav-container { display: none; }
}


/* DEV2 ARCHIVE */
.dev2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.dev2-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: 0.25s;
}

.dev2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.dev2-thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 22px;
}

.dev2-body {
    padding: 22px;
}

.dev2-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.dev2-description {
    font-size: 16px;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

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