/* === Navbar LTR Fixes === */
body { font-family:Tahoma, sans-serif; background-color: #fff; }
.bg-dark-custom { background-color: rgba(52, 55, 59, 0.94) !important; }
.text-gold { color: #d4a74c; }
.btn-gold { background-color: #d4a74c; color: #34373b; }
.btn-gold:hover { background-color: #b88d3f; color: #fff; }
.btn-outline-gold { border: 1px solid #d4a74c; color: #d4a74c; }
.btn-outline-gold:hover { background-color: #d4a74c; color: #34373b; }
.service-box { background: #fff; padding: 20px; border-radius: 8px; text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: 0.3s; }
.service-box:hover { transform: translateY(-5px); color: #d4a74c;cursor: pointer /* طلایی روی هاور */}
.about-images { position: relative; }
.about-images img.img-overlay { position: absolute; top: 20px; left: 20px; width: 80%; opacity: 0.9; }
.text-justify {
    text-align: justify !important;
}

/*__________________________ slider btn ------------------------*/

.carousel-item {
    position: relative;
}

.slider-btn {
    position: absolute;
    bottom: 30px; /* فاصله از پایین عکس */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    color: #fff;
    border: 2px solid #fff;
    background: transparent;
    font-family: 'Vazir', sans-serif;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #d4af37; /* طلایی */
    color: #000; /* مشکی */
    border-color: #d4af37;
}

/*__________________________ slider btn ------------------------*/



/*------------------------------------- header -----------------------------------------*/
.navbar-nav {
    display: flex;
    gap: 20px; /* فاصله بین آیتم‌ها */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item .nav-link {
    padding: 8px 12px;
}

.navbar .d-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-gold,
.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    border-radius: 8px;
}

.btn-gold {
    background-color: #c5a15a;
    color: #000;
    border: none;
}

.btn-outline-gold {
    background: transparent;
    color: #c5a15a;
    border: 2px solid #c5a15a;
}

/* Hover state */
.btn-gold:hover,
.btn-outline-gold:hover {
    opacity: 0.85;
}
/*------------------------------------- header -----------------------------------------*/


/*---------------------------- footer -----------------------------*/
/* Footer LTR adjustments */
footer.bg-dark-custom {
    background-color: #121212 !important; /* رنگ پس‌زمینه مشکی تیره */
    color: #d4af37; /* رنگ طلایی متن */
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

footer.bg-dark-custom p {
    margin: 0;
    font-size: 0.9rem;
    color: #d4af37; /* رنگ طلایی */
}

footer.bg-dark-custom a.text-gold {
    color: #d4af37;
    transition: color 0.3s ease;
    font-size: 1.3rem;
}

footer.bg-dark-custom a.text-gold:hover,
footer.bg-dark-custom a.text-gold:focus {
    color: #f8c04e; /* طلایی روشن‌تر روی هاور */
    text-decoration: none;
}

footer.bg-dark-custom div > a.me-3 {
    margin-right: 1rem !important; /* فاصله سمت راست برای LTR */
}

/* اگر می‌خواهی کمی فضای بالاتر در فوتر باشه */
footer.bg-dark-custom .container {
    padding-top: 0.5rem;
}
/*---------------------------- footer -----------------------------*/


/*---------------------------- breadcrumb -----------------------------*/

/* Page Header LTR Styling */
.page-header {
    background-color: #111;
    border-bottom: 1px solid #d4a74c;
    color: #d4af37; /* طلایی */
    margin-top: 85px; /* یا همون ارتفاع منو */
}

.page-header .page-title {
    font-weight: 700;
    font-size: 2rem;
    color: #d4af37;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #d4af37;
    padding: 0 0.5rem;
}

.breadcrumb .breadcrumb-item a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb .breadcrumb-item a:hover,
.breadcrumb .breadcrumb-item a:focus {
    color: #f8c04e; /* طلایی روشن‌تر */
}

.breadcrumb .breadcrumb-item.active {
    color: #fff;
}

/* برای فاصله مناسب در جهت LTR */
.text-md-start {
    text-align: left !important;
}
.text-md-end {
    text-align: right !important;
}


/*---------------------------- breadcrumb -----------------------------*/


/*---------------------------- login box -----------------------------*/

/* Login Box Container */
.login-box {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 30px;

    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 80px auto;
    color: #000; /* رنگ طلایی متن */
}

.login-box h3 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
}
.form-control {
    border-radius: 8px;
}
/* فرم و label */
.login-box label.form-label {
    color: #d4af37;
    font-weight: 600;
}

/* گروه ورودی با آیکون */
.login-box .input-group-text {
    background-color: #d4a74c;
    color: #000;
    border-radius: 8px 0 0 8px;
    border-top-right-radius:5px;
    border-bottom-right-radius:5px;
}

/* فیلد ورودی */
.login-box .form-control {
    background: #fff;
    border: 1px solid #d4a74c;
    color: #f8c04e;
    padding-left: 0.8rem;
    border-radius: 0 0.25rem 0.25rem 0;
}
.btn-gold:hover {
    background-color: #e6c200;
}
.login-box .form-control::placeholder {
    color: #c9a84f;
    opacity: 0.7;
}



/* دکمه ورود */
.login-box button.btn-gold {
    background-color: #d4a74c;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.login-box button.btn-gold:hover,
.login-box button.btn-gold:focus {
    background-color: #f8c04e;
    color: #121212;
}

/* خطاها */
.login-box .text-danger {
    color: #ff6b6b !important;
}


/*---------------------------- login box -----------------------------*/


/*---------------------------- services -----------------------------*/

/* Services Section – LTR English */
#services {
    direction: ltr;
    background-color: #f8f9fa; /* light bg */
}

#services h2 {
    font-weight: bold;
    color: #d4af37; /* gold */
    text-transform: uppercase;
}

#services .service-box {
    background: #fff; padding: 20px; border-radius: 8px; text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: 0.3s;
}

#services .service-box i {
    color: #000; /* gold icons */
}
#services .service-box i:hover {
    color: #d4af37; /* gold icons */
}

#services .service-box h5 {
    margin-top: 10px;
    font-weight: 500;
    color: #000;
}

#services .service-box h5:hover{
    color: #d4af37; /* gold */

}

#services .service-box:hover {
    transform: translateY(-5px);
    color: #d4af37 !important; /* gold */

    cursor: pointer /* طلایی روی هاور */
}


/*---------------------------- services -----------------------------*/


/*---------------------------- About -----------------------------*/

/* About Section – LTR English */
#about {
    direction: ltr;
    background-color: #000; /* black */
    color: #fff;
}

#about h3 {
    font-weight: bold;
    color: #d4af37; /* gold */
    text-transform: uppercase;
}

#about p {
    color: #ddd;
    line-height: 1.8;
    text-align: justify;
}

#about .about-images img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#about .about-images img:hover {
    transform: scale(1.02);
    transition: all 0.3s ease-in-out;
}
/*---------------------------- About -----------------------------*/


/*---------------------------- Portfolio -----------------------------*/

/* Portfolio Section – LTR English */
#portfolio {
    direction: ltr;
    background-color: #f8f9fa; /* light background */
}

#portfolio h2 {
    font-weight: bold;
    color: #d4af37; /* gold heading */
    text-transform: uppercase;
}

#portfolio .card {
    border: none;
    background-color: #000; /* black card */
    color: #fff;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#portfolio .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

#portfolio .card-title {
    color: #d4af37; /* gold title */
    font-weight: 600;
}

#portfolio .card-text {
    color: #ddd;
}

#portfolio .img-overlay-container {
    position: relative;
}

#portfolio .img-overlay-container img {
    border-radius: 6px;
}

#portfolio .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #d4af37;
    padding: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#portfolio .img-overlay-container:hover .overlay {
    opacity: 1;
}
/*---------------------------- Portfolio -----------------------------*/


/*---------------------------- article -----------------------------*/

/* Articles Section – LTR English */
#articles {
    direction: ltr;
    background-color: #f8f9fa; /* light background */
}

#articles h2 {
    font-weight: bold;
    color: #d4af37 !important; /* gold heading */
    text-transform: uppercase;
}

#articles .card {
    border: none;
    background-color: #fff; /* black */
    color: #000 !important;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#articles .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#articles .card-img-top {
    border-bottom: 2px solid #d4af37; /* gold divider */
}

#articles .card-body {
    font-weight: 500;
    color: #000; /* gold text */
    padding: 10px;
}

/*---------------------------- article -----------------------------*/



/*---------------------------- services -----------------------------*/


.services-section a{
    text-decoration: none;
}

/* Services Section – LTR English */
.services-section {
    direction: ltr;
    background-color: #fff; /* black background */
    padding: 60px 0;
}

.services-box {
    background-color: #111; /* slightly lighter than pure black */
    border: 1px solid #d4af37; /* gold border */
    border-radius: 8px;
    text-align: center;
    padding: 25px 15px;
    transition: all 0.3s ease-in-out;
}

.services-box:hover {
    background-color: #1a1a1a;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.services-icon {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.services-title {
    font-size: 14px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.services-desc {
    font-size: 0.95rem;
    color: #ccc; /* light gray text */
    line-height: 1.5;
}

/*---------------------------- services -----------------------------*/


/*---------------------------- about us -----------------------------*/

/* About Us Section – LTR English */
.about-content {
    direction: ltr;
    background-color: #fff; /* black background */
    padding: 60px 0;
}

.about-text p {
    color: #000; /* light grey text */
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}

.feature-box {
    background-color: #111; /* dark card */
    border: 1px solid #d4af37; /* gold border */
    border-radius: 8px;
    padding: 25px 15px;
    transition: all 0.3s ease-in-out;
}

.feature-box:hover {
    background-color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.feature-box h5 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.feature-box p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}


/*---------------------------- about us -----------------------------*/


/*---------------------------- contact us -----------------------------*/

/* Contact Form – LTR English */
.contact-section {
    direction: ltr;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    color: #000 !important;
}

.contact-form h2 {
    color: #000 !important;
    font-weight: bold;
    text-transform: uppercase;
}

.contact-form {
    background-color: #ffffff;
    border: 1px solid #d4a74c !important;
    border-radius: 10px;
    padding: 30px;
    color: #000 !important;
}

.contact-form .form-label {
    color: #000;
    font-weight: 500;
}

/* استایل زمینه مشکی و متن طلایی برای فیلدها */
.contact-form .form-control {
    background-color: transparent;
    border: 1px solid #d4a74c;
    color: #d4a74c; /* متن داخل فیلد طلایی */
    border-radius: 8px;
}

.contact-form .form-control::placeholder {
    color: #999;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: #ffdb58;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.btn-gold {
    background-color: #d4af37;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 10px 25px;
    transition: background-color 0.3s ease-in-out;
}

.btn-gold:hover {
    background-color: #ffdb58;
}
/*---------------------------- contact us -----------------------------*/


/*---------------------------- consulting -----------------------------*/

/* Consultation Box – LTR English */
.consult-box {
    direction: ltr;
    max-width: 450px;
    margin: 60px auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
}

.consult-box h2 {
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 16px;
}

.consult-box .form-label {
    color: #000;
    font-weight: 500;
}

.consult-box .input-group-text {
    background-color: #d4a74c;
    border: 1px solid #d4af37;
    color: #000;
}

.consult-box .form-control,
.consult-box .form-select {
    background-color: #fff;
    color: #000;
    border: 1px solid #d4af37;
}

.consult-box .form-control:focus,
.consult-box .form-select:focus {
    border-color: #ffdb58;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    outline: none;
}

.btn-gold {
    background-color: #d4af37;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.btn-gold:hover {
    background-color: #ffdb58;
}


/*---------------------------- consulting -----------------------------*/


/*---------------------------- portfolio -----------------------------*/

/* Portfolio Section – LTR English */
.portfolio-section {
    direction: ltr;
    padding: 50px 0;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #111;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: #d4af37;
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background-color: #111;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 10px;
    background-color: #111;
    border: 1px solid #d4a74c;
    flex: 0 0 auto; /* مهم برای اسکرول افقی */
    width: 80%; /* عرض کارت در موبایل */
    max-width: 350px; /* در دسکتاپ محدودیت */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}
.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    filter: brightness(0.85);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.portfolio-info {
    padding: 15px;
    text-align: center;
}

.portfolio-title {
    font-size: 18px;
    font-weight: bold;
    color: #d4a74c;
    margin-bottom: 5px;
}

.portfolio-tech {
    font-size: 14px;
    color: #bbb;
}


/* Horizontal Scroll in Mobile */
.horizontal-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
.horizontal-scroll .portfolio-item {
    scroll-snap-align: start;
}

/* Hide scrollbar in Webkit browsers */
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .horizontal-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        overflow: visible;
    }
    .portfolio-item {
        width: 100%;
        max-width: 100%;
    }
}
@media (min-width: 576px) and (max-width: 767px) {
    .horizontal-scroll {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-item {
        width: 100%;
        max-width: 100%;
    }
}


/*---------------------------- portfolio -----------------------------*/


/*---------------------------- posts -----------------------------*/

/* Articles Section – LTR English */
.articles-section {
    direction: ltr;
    background-color: #fff;
}

.article-card {
    background-color: #fff;
    border: 1px solid #d4af37;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #d4af37;
}

.article-card-body {
    padding: 15px;
    color: #000;
}

.article-card-body h5 {
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 10px;
}

.article-card-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn-gold {
    background-color: #d4af37;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    transition: background-color 0.3s ease-in-out;
}

.btn-gold:hover {
    background-color: #ffdb58;
}


/*---------------------------- posts -----------------------------*/


/*---------------------------- post detail -----------------------------*/

/* Article Detail Page – LTR English */
.article-detail-section {
    direction: ltr;
    background-color: #fff;
    color: #fff;
}

.article-title {
    margin-top: 20px;
    font-weight: bold;
    color: #d4af37;
}

.article-meta {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

.article-meta .author,
.article-meta .date {
    margin-right: 15px;
}

.article-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #000;
}

.article-tags {
    margin-top: 20px;
}

.article-tags span {
    display: inline-block;
    background-color: #d4af37;
    border: 1px solid #ccc;
    color: #000;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.category-list,
.recent-articles {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.category-list h5,
.recent-articles h5 {
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 15px;
}

.category-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
    color: #000;
}

.recent-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.recent-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #d4af37;
    margin-right: 10px;
    border-radius: 4px;
}

.recent-item h6 {
    color: #000;
    font-size: 0.9rem;
}


/*---------------------------- post detail -----------------------------*/
