/* dadgosha_platform/static/css/style.css */

/* --- تنظیمات عمومی و فونت --- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* --- تعریف متغیرهای اصلی رنگ بوت‌استرپ و متغیرهای نئونی جدید --- */
:root {
    --bs-primary: #003366; /* رنگ آبی تیره اصلی */
    --bs-primary-rgb: 0, 51, 102; /* معادل RGB رنگ */
    --bs-blue: #003366; 

    /* --- متغیرهای نئونی جدید --- */
    --color-primary-blue: #003366; /* آبی تیره سازمانی */
    --color-accent-gold: #ffcc00; /* طلایی سازمانی (نئون) */
    --color-card-dark: #003366;  /* آبی تیره برای کارت‌ها */
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f0f2f5; /* پس‌زمینه روشن‌تر */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

/* --- استایل‌های ناوبار (Header) --- */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--bs-primary) !important;
}

.navbar-brand img {
    height: 45px;
    margin-left: 10px;
}

.nav-link {
    color: var(--bs-primary) !important;
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #002244 !important;
}

.nav-item .nav-link.active {
    color: #002244 !important;
    font-weight: 700;
}


/* --- استایل‌های دکمه‌ها --- */
.btn-primary, .btn-outline-primary {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: white !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}
.btn-primary:hover {
    background-color: #ffcc00 !important;
    border-color: #002244 !important;
    color: #002244 !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
.btn-outline-primary:hover {
    background-color: #ffcc00 !important;
    color: #003366 !important;
}
/* --- استایل‌های نهایی و قطعی برای اسلایدر --- */
.hero-section {
    position: relative;
    height: 50vh;
    min-height: 200px;
    color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.2);
}

.hero-section .carousel-item {
    height: 100%;
}

.hero-background-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
}

.hero-divider {
    width: 80%;
    margin: 1.5rem 0;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-content-bottom {
    font-size: 1rem;
}

.carousel-control-prev, .carousel-control-next {
    z-index: 4;
}
/* --- بخش موضوعات (Topic Boxes) --- */
.topics-section {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}

.topics-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
.topics-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--bs-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}


.topics-grid-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 768px) {
    .topics-grid-container {
        grid-template-areas:
            "box1 box2"
            "box3 box4 box5";
        grid-template-columns: repeat(3, 1fr);
    }
    .topics-grid-container .topic-box:nth-child(1) {
        grid-area: box1;
    }
    .topics-grid-container .topic-box:nth-child(2) {
        grid-area: box2;
    }
    .topics-grid-container .topic-box:nth-child(3) {
        grid-area: box3;
    }
    .topics-grid-container .topic-box:nth-child(4) {
        grid-area: box4;
    }
    .topics-grid-container .topic-box:nth-child(5) {
        grid-area: box5;
    }

    .topics-grid-container .topic-box:nth-child(1),
    .topics-grid-container .topic-box:nth-child(2) {
        max-width: 100%;
    }
}

.topic-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 220px;
}

.topic-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    border-color: var(--bs-primary);
}

.topic-box h3 {
    margin-top: 0;
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.topic-box p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    flex-grow: 1;
}

.topic-box .btn {
    margin-top: 15px;
}


/* --- استایل‌های جدید برای باکس‌های خدمات ویژه (4x2 Grid) --- */
.special-services-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.special-services-section h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
.special-services-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--bs-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}


.service-box-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-box-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    border-color: var(--bs-primary);
}

.service-box-content {
    width: 100%;
}

.service-box-item h4 {
    font-size: 1.35rem;
    margin-top: 0;
    color: var(--bs-primary);
}

.service-box-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .row.row-cols-lg-4 > .col {
        flex: 0 0 auto;
        width: 25%;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .row.row-cols-md-3 > .col {
        flex: 0 0 auto;
        width: 33.333%;
    }
}
@media (min-width: 576px) and (max-width: 767px) {
    .row.row-cols-sm-2 > .col {
        flex: 0 0 auto;
        width: 50%;
    }
}

.service-box-item .bi {
    color: var(--bs-primary);
}

.topic-box i.bi {
    color: var(--bs-primary);
}

.text-primary {
    color: var(--bs-primary) !important;
}


/* --- استایل‌های جدید برای بخش لیست وکلا (Lawyer List) --- */
.lawyer-search-card {
    background-color: #003366;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.lawyer-search-card .input-group-text {
    background-color: #ffcc00;
    border-color: #ced4da;
    color: #495057;
}

.lawyer-search-card .form-control,
.lawyer-search-card .form-select {
    border-radius: 8px;
    padding: 10px 15px;
}

.lawyer-list-grid .lawyer-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}
.lawyer-list-grid .lawyer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    border-color: var(--bs-primary);
}

.lawyer-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bs-primary);
    box-shadow: 0 0 0 5px rgba(var(--bs-primary-rgb), 0.1);
}

.lawyer-card .card-title {
    font-size: 1.6rem;
    margin-top: 15px;
}

.lawyer-card .badge {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
}

.lawyer-card .btn-outline-primary {
    padding: 8px 20px;
    font-size: 0.9rem;
}


/* --- استایل برای بخش تصاویر جاذبه‌های ایران در صفحه ثبت نام و ورود --- */
.attractions-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}
.attractions-section h3 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}
.attractions-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.attractions-grid img:hover {
    transform: scale(1.03);
}

/* --- فوتر --- */
.main-footer {
    background-color: #003366;
    color: #ecf0f1;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
}

.main-footer .footer-widgets-area {
    margin-bottom: 30px;
}

.main-footer .widget-title {
    color: #ffcc00;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.main-footer .footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(236, 240, 241, 0.9);
}

.main-footer .app-download-links img.app-icon {
    height: 40px;
    transition: transform 0.2s ease;
}
.main-footer .app-download-links img.app-icon:hover {
    transform: translateY(-3px);
}

.main-footer .footer-links {
    padding-right: 0;
}

.main-footer .footer-links li {
    margin-bottom: 10px;
}

.main-footer .footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.main-footer .footer-links a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.main-footer .enamad-logos img.enamad-icon {
    width: 100px;
    height: auto;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 5px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}
.main-footer .enamad-logos img.enamad-icon:hover {
    transform: scale(1.05);
}

.main-footer .social-icons .social-icon {
    color: #ecf0f1;
    font-size: 1.8rem;
    margin: 0 8px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.main-footer .social-icons .social-icon:hover {
    color: #ffcc00;
    transform: translateY(-2px);
}

.main-footer .contact-details {
    font-size: 0.9rem;
    color: rgba(236, 240, 241, 0.9);
}
.main-footer .contact-details i {
    color: #ffcc00;
    font-size: 1.1rem;
    vertical-align: middle;
}


.main-footer .footer-divider {
    border-top: 1px solid rgba(236, 240, 241, 0.1);
}

.main-footer .copyright-area p {
    color: rgba(236, 240, 241, 0.7);
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .main-footer .footer-widget {
        text-align: center;
    }
    .main-footer .footer-links, .main-footer .social-icons {
        justify-content: center;
        display: flex;
        padding-right: 0;
    }
    .main-footer .enamad-logos {
        display: flex;
        justify-content: center;
        margin-right: -10px;
    }
    .main-footer .contact-details {
        text-align: center;
    }
}
/* In main_app/static/css/new_style.css */

/* --- Corrected Styles for Feature Cards --- */

.feature-card {
    background-color: #003366;
    color: #ffffff;
    border: 1px solid #003366;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.feature-card .feature-card-icon {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.feature-card:hover {
    background-color: #ffcc00;
    border-color: #ffcc00;
    color: #003366;
}

.feature-card:hover .feature-card-icon {
    color: #003366;
}

.feature-card:hover p {
    color: #003366;
}
/* استایل‌های بخش سامانه‌های قضایی */

.feature-card h3 {
    color: #ffffff; /* تنظیم رنگ عنوان در حالت عادی */
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: #003366; /* تنظیم رنگ عنوان در حالت هاور */
}


/* حالت عادی دکمه‌ها */
#judicial-systems a.btn-outline-secondary {
    background-color: #003366;
    border-color: #003366;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* حالتی که موس روی دکمه می‌رود (هاور) */
#judicial-systems a.btn-outline-secondary:hover {
    background-color: #ffcc00;
    border-color: #ffcc00;
    color: #003366;
}
/* استایل برای آیکون‌های شبکه‌های اجتماعی که تصویر هستند */
.social-icon-link img {
    width: 30px;
    height:30px;
    transition: all 0.3s ease;
}

.social-icon-link:hover img {
    transform: scale(1.2);
}
/* Add to the end of new_style.css */

/* Remove underline from social media icons */
.social-icons a {
    text-decoration: none;
}
/* در انتهای فایل CSS اضافه شود */

/* --- شروع: حذف قطعی خط زیر لینک‌های فوتر --- */

.site-footer .list-unstyled li a {
    text-decoration: none !important;
}

.site-footer .list-unstyled li a:hover {
    text-decoration: none !important;
    color: white;
}
/* --- پایان: حذف قطعی خط زیر لینک‌های فوتر --- */
/* Add to the end of your CSS file */

.designer-logo-link img {
    width: 100px;
    height: 100px;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

.designer-logo-link:hover img {
    opacity: 0.8;
}
/* Add to the end of your CSS file */

/* --- Interactive Map Styles --- */
.map-container-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2rem;
    text-align: center;
}

.map-header {
    margin-bottom: 1.5rem;
}

#iran-map {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.province-path {
    fill: #003366;
    stroke: #ffffff;
    stroke-width: 2;
    transition: fill 0.3s ease;
    cursor: pointer;
}

.province-path:hover {
    fill: #ffcc00;
}

/* =================================================== */
/* --- استایل‌های Luxury Dark و Neon جدید (برای تطبیق کارشناسان و قضات) --- */
/* =================================================== */

/* Neon Header */
.neon-header-dark-text {
    color: var(--color-accent-gold) !important;
    text-shadow: 
        0 0 5px rgba(255, 204, 0, 0.3), 
        0 0 10px rgba(255, 204, 0, 0.1); 
}

/* Search Bar (White Square) */
.search-bar-white-square {
    background: #ffffff; 
    border: 3px solid var(--color-accent-gold); 
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); 
    padding: 20px !important;
}

/* Standardized Input Group (for correct size) */
.input-group-square-fixed .input-group-text {
    background-color: var(--color-primary-blue); 
    border: 1px solid var(--color-primary-blue);
    color: #ffffff;
    padding: 14px 18px; 
    border-radius: 0; 
    height: 100%; 
    font-weight: 700;
    width: 55px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group-square-fixed .form-control,
.input-group-square-fixed .form-select {
    background-color: #ffffff; 
    color: #333; 
    border: 1px solid var(--color-primary-blue); 
    border-right: none; 
    border-radius: 0; 
    padding: 14px 15px; 
    height: 100%;
    transition: all 0.3s;
    font-weight: 500;
}

/* Input Corner adjustments (for full look) */
.input-group-square-fixed:first-child .input-group-text {
    border-radius: 0;
    border-right: none;
}
.input-group-square-fixed:first-child .form-control,
.input-group-square-fixed:first-child .form-select {
    border-radius: 0 8px 8px 0;
    border-right: 1px solid var(--color-primary-blue); 
    border-left: none;
}
.input-group-square-fixed:last-child .input-group-text {
    border-radius: 0; 
    border-right: none;
}
.input-group-square-fixed:last-child .form-control,
.input-group-square-fixed:last-child .form-select {
    border-radius: 8px 0 0 8px; 
    border-left: 1px solid var(--color-primary-blue); 
    border-right: none;
}


/* Gold Neon Button (Search and Profile View) */
.btn-gold-neon {
    background-color: var(--color-accent-gold);  
    border-color: var(--color-accent-gold);
    color: var(--color-primary-blue); 
    font-weight: 800;
    transition: all 0.3s ease;
    border-radius: 8px;  
    padding: 14px 15px;
    height: 100%;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.6); 
}

/* **هاور سفید مورد درخواست کاربر** */
.btn-gold-neon:hover {
    background-color: #ffffff !important;  
    border-color: #ffffff !important;
    color: var(--color-primary-blue) !important; /* متن به آبی تیره تغییر می‌کند */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 204, 0, 0.5) !important; 
    transform: translateY(-2px); 
}

/* Luxury Dark Card Style (برای هر دو لیست) */
.expert-card-luxury-dark {
    background-color: var(--color-card-dark);  
    border: 1px solid var(--color-accent-gold); 
    border-radius: 15px; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative; 
    overflow: hidden; 
}

.expert-card-luxury-dark:hover {
    transform: translateY(-6px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 204, 0, 0.6); 
    border-color: #fff; 
}

/* رینگ عکس پروفایل */
.profile-img-luxury-ring {
    width: 90px; 
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-accent-gold); 
    box-shadow: 0 0 0 5px rgba(255, 204, 0, 0.2); 
    padding: 3px; 
}

/* جداکننده نئونی */
.separator-neon {
    border: none;
    height: 1px;
    background-color: var(--color-accent-gold);
    box-shadow: 0 0 5px var(--color-accent-gold);
    opacity: 0.8; 
}

/* کلاس رنگ طلایی نئونی برای متن توضیحات تخصص */
.text-gold-accent {
    color: var(--color-accent-gold) !important;
}

/* Alert/Pagination styles for dark theme */
.pagination-dark-neon .page-item .page-link {
    background-color: var(--color-primary-blue);
    border-color: #335588;
    color: #ffffff;
    transition: all 0.3s;
    border-radius: 8px;
    margin: 0 3px;
}

.pagination-dark-neon .page-item.active .page-link {
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    color: var(--color-primary-blue);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.8);
}

.alert-luxury-dark {
    background-color: var(--color-card-dark) !important; 
    border: 2px solid var(--color-accent-gold) !important; 
    border-radius: 15px !important;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4); 
    color: #ffffff !important;
}
/* --- استایل‌های اختصاصی نهایی Lawyer Detail (کد جامع و نهایی) --- */

/* تعریف رنگ اصلی پروژه */
:root {
    --dark-blue: #003366; /* آبی نفتی اصلی */
    --dark-blue-lighter: #004d99; 
    --gold-constant: #ffcc00; /* طلایی ثابت و نهایی */
    --gold-accent-light: #ffeb3b; /* برای سایه‌های نئونی نگه داشته می‌شود */
    --white-neon-hover: #ffffff; /* رنگ هاور دکمه‌ها */
    --box-border-white: #ffffff; /* حاشیه سفید نهایی */
}

/* کارت اصلی هدر وکیل (آبی نفتی) */
.lawyer-header-card-super {
    background-color: var(--dark-blue); 
    border: 2px solid var(--gold-constant); 
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.6), 0 0 10px rgba(0, 51, 102, 0.9); 
    text-align: right !important; 
}

/* باکس‌های طلایی (نام و مشخصات + خلاصه تخصص) */
.lawyer-info-box.gold-background,
.lawyer-bio-summary-box.gold-background {
    background-color: var(--gold-constant) !important;
    color: var(--dark-blue) !important; 
    border: 3px solid var(--box-border-white); /* حاشیه سفید */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); 
    height: 100%;
}

/* متن‌ها و آیکون‌های داخل باکس طلایی: آبی نفتی #003366 */
.lawyer-info-box.gold-background h1, 
.lawyer-info-box.gold-background p, 
.lawyer-info-box.gold-background i, 
.lawyer-bio-summary-box.gold-background h6,
.lawyer-bio-summary-box.gold-background p,
.lawyer-bio-summary-box.gold-background i {
    color: var(--dark-blue) !important; 
}

/* تصویر پروفایل (حاشیه زرد) */
.profile-img-super-neon {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 7px solid var(--gold-constant); 
    box-shadow: 0 0 15px var(--gold-constant), 0 0 30px rgba(255, 204, 0, 0.6); 
    margin: 0;
}

/* دکمه اصلی دعوت به خرید (CTA) */
.btn-purchase-cta {
    background-color: var(--dark-blue); 
    color: white !important;
    border: 2px solid var(--gold-constant); 
    font-weight: 900;
    font-size: 1.1rem; 
    box-shadow: 0 0 10px var(--gold-constant), 0 0 25px rgba(255, 204, 0, 0.8);
    transition: all 0.2s ease-in-out;
    padding: 1rem 1.5rem; 
}
.btn-purchase-cta.pulse-effect {
    animation: pulse-gold 2s infinite;
}
@keyframes pulse-gold {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); box-shadow: 0 0 15px var(--gold-constant), 0 0 35px rgba(255, 204, 0, 0.8); }
    100% { transform: scale(1); }
}
.btn-purchase-cta:hover, .btn-purchase-cta:active, .btn-purchase-cta:focus {
    background-color: var(--white-neon-hover);
    color: var(--dark-blue) !important;
    border-color: var(--white-neon-hover);
    box-shadow: 0 0 20px var(--white-neon-hover), 0 0 30px rgba(255, 255, 255, 0.9);
}


/* === بخش خدمات (طلایی نئونی) === */

.card-services-super-featured {
    background-color: #002d5c; 
    border: 3px solid var(--gold-accent-light);
    box-shadow: 0 0 25px rgba(0, 51, 102, 0.9), 0 0 15px var(--gold-accent-light);
}

/* کارت‌های خدمات (طلایی نئونی) - با حاشیه سفید */
.service-item-card-gold-neon {
    background-color: var(--gold-constant); 
    border: 3px solid var(--box-border-white); /* حاشیه سفید */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); 
    transition: all 0.3s ease;
    border-radius: 10px !important;
}

/* متن‌های اصلی سرویس‌ها و نوع خدمت با رنگ آبی نفتی #003366 */
.text-dark-blue-text {
    color: var(--dark-blue) !important;
    font-weight: bold;
}
.text-dark-blue-custom {
    color: var(--dark-blue) !important;
}

/* باکس مبلغ */
.price-tag-super-final {
    font-size: 1.6rem !important; 
    padding: 0.75rem 1.5rem !important; 
    background-color: var(--dark-blue) !important; 
    color: var(--gold-constant) !important; 
    border-radius: 8px; 
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
}


/* 📌 مرتب شدن باکس موضوع و دکمه خرید (ظاهر چسبیده و شیک) */
.service-input-area-final {
    flex-grow: 1; /* اجازه رشد به کادر موضوع می‌دهیم */
    max-width: 60%; /* یک حد بالا برای کنترل اندازه نهایی */
}
.input-subject-styled-small {
    width: 100%;
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important; 
    border: 2px solid var(--dark-blue);
    background-color: #f8f9fa;
    color: #212529;
    /* برای چسباندن به دکمه: */
    border-top-left-radius: 0 !important; 
    border-bottom-left-radius: 0 !important; 
    border-left: none; /* حذف خط جداکننده بین فیلد و دکمه */
}


/* دکمه‌های خرید */
.btn-buy-primary {
    background-color: var(--dark-blue);
    color: white !important;
    border: 2px solid var(--dark-blue);
    font-weight: bold;
    transition: all 0.2s;
}

/* هاور دکمه‌های خرید */
.btn-buy-primary:hover {
    background-color: var(--white-neon-hover); 
    color: var(--dark-blue) !important;
    border-color: var(--white-neon-hover);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
/* دکمه چسبیده (بررسی پرونده) */
.btn-sm-custom {
    padding: 0.5rem 1rem !important; 
    font-size: 0.9rem !important;
    border-top-right-radius: 0 !important; 
    border-bottom-right-radius: 0 !important;
}
/* دکمه مستقل (مشاوره تلفنی) - رفع مشکل فاصله */
.btn-lg-custom {
    padding: 0.7rem 1.5rem !important; 
    font-size: 1rem !important;
    border-radius: 6px !important; 
}


/* دکمه بازگشت به لیست */
.btn-return-neon-gold-final {
    background-color: transparent; 
    color: var(--dark-blue) !important; 
    border: 2px solid var(--dark-blue) !important; 
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-return-neon-gold-final:hover {
    color: var(--dark-blue) !important; 
    background-color: var(--gold-constant); 
    border-color: var(--gold-constant) !important;
    box-shadow: 0 0 10px var(--gold-constant);
}
/* --- استایل جدید برای مرکزیت تضمینی و ابعاد کوچک/مستطیلی --- */
/* --- استایل‌های ضروری برای کارکرد مرکزیت قاطع --- */

/* 1. تنظیم ارتفاع و مبنای مرکزیت برای کارت خدمات (عنصر والد) */
.min-height-services {
    /* ارتفاع حداقلی کارت را تضمین می‌کند تا مرکزیت عمودی قابل مشاهده باشد */
    min-height: 400px; 
}

/* 2. کلاس نهایی برای مرکزیت مطلق پیام */
.centered-absolute-message {
    /* مرکزیت مطلق (Absolute Center) */
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    
    /* تنظیم عرض برای نمایش کامل و جلوگیری از شکستن در اندازه‌های بزرگ */
    width: 90%; 
    max-width: 900px; 
    
    text-align: center;
}

/* 3. استایل برای جلوگیری از شکسته شدن خطوط در متون بزرگ */
.centered-absolute-message h2,
.centered-absolute-message p {
    white-space: nowrap; 
}

/* --- استایل‌های رنگی نئونی --- */
.text-gold-accent-light {
    color: var(--gold-constant) !important; 
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); 
}
/* --- ۱. تعریف متغیرهای رنگی (برای سادگی در تغییرات آینده) --- */
:root {
    --primary-navy: #003366;       /* آبی نفتی اصلی (جایگزین تیره) */
    --gold-neon: #FFD700;          /* طلایی نئونی (رنگ اصلی نئون) */
    --dark-navy-bg: #ffffff;       /* آبی نفتی بسیار تیره (پس زمینه سایت) */
    --white-soft: #F0F0F0;         /* سفید نرم برای متن‌های عادی */
}

/* --- ۲. تنظیم پس‌زمینه و رنگ‌های اصلی المان‌ها --- */
body {
    background-color: var(--dark-navy-bg) !important;
    color: var(--white-soft); /* تنظیم رنگ متن اصلی برای خوانایی */
}
.bg-primary-navy {
    background-color: var(--primary-navy) !important;
}
.bg-dark-navy-bg {
    background-color: var(--dark-navy-bg) !important;
}


/* انیمیشن پالس برای نام برند (اختیاری) */
@keyframes brand-pulse-formal {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}
.brand-name-glow-pulse {
    animation: brand-pulse-formal 3s infinite ease-in-out;
}

/* --- ۴. استایل‌های نوار ناوبری و فوتر --- */

/* لینک‌های منو */
.nav-link-neon {
    color: #fff !important; 
    transition: all 0.3s;
}
.nav-link-neon:hover {
    color: var(--gold-neon) !important;
    text-shadow: 0 0 7px var(--gold-neon);
}

/* فوتر */
.footer-super-navy {
    background-color: var(--primary-navy);
    /* جایگزین سایه مشکی با سایه آبی نفتی برای عمق */
    box-shadow: 0 -5px 20px rgba(0, 51, 102, 0.5); 
}
.hover-neon-link:hover, .hover-neon-icon:hover {
    color: var(--gold-neon) !important;
    text-shadow: 0 0 8px var(--gold-neon) !important;
}
.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }

/* --- ۵. باکس‌های نئونی (مثل سامانه‌ها و کدمات) --- */

/* استایل باکس‌ها و کدمات */
.shadow-neon-box, .map-container-card {
    background-color: var(--dark-navy-bg) !important; /* پس زمینه داخلی آبی نفتی */
    border: 1px solid var(--gold-neon);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); /* افکت نئون طلایی روی باکس */
    transition: all 0.3s;
}

/* هاور روی باکس‌های نئونی */
.shadow-neon-box:hover, .map-container-card:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
    transform: translateY(-2px);
}

/* --- ۶. دکمه‌های ورود/ثبت نام و سامانه‌ها --- */

/* دکمه اصلی (ورود) */
.btn-neon-gold-primary {
    background-color: var(--gold-neon);
    color: var(--primary-navy);
    border: none;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    transition: all 0.3s;
}
.btn-neon-gold-primary:hover {
    background-color: #FFEC8B;
    box-shadow: 0 0 20px var(--gold-neon);
    color: var(--primary-navy);
    transform: translateY(-2px);
}

/* دکمه فرعی (ثبت نام) و سامانه‌های پرکاربرد */
.btn-neon-gold-secondary, .btn-system-tools {
    background-color: var(--primary-navy) !important;
    color: var(--gold-neon) !important;
    border: 2px solid var(--gold-neon) !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
}
.btn-neon-gold-secondary:hover, .btn-system-tools:hover {
    background-color: var(--gold-neon) !important;
    color: var(--primary-navy) !important;
    box-shadow: 0 0 20px var(--gold-neon);
    transform: translateY(-2px);
}

/* --- ۷. تنظیم استایل دکمه‌های پیش‌فرض Bootstrap (برای صفحات جزئیات) --- */

/* هدف قرار دادن دکمه‌های پیش‌فرض مانند .btn-primary و .btn-dark که در کدهای شما استفاده شده‌اند */
.btn-primary, .btn-dark, .btn-info { 
    background-color: var(--primary-navy) !important;
    border-color: var(--gold-neon) !important;
    color: var(--gold-neon) !important;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}
.btn-primary:hover, .btn-dark:hover, .btn-info:hover {
    background-color: var(--gold-neon) !important;
    color: var(--primary-navy) !important;
    box-shadow: 0 0 15px var(--gold-neon);
}

/* --- ۸. اصلاح استایل نقشه ایران (IranMap) --- */

#IranMap .map .province path { 
    fill: var(--primary-navy) !important; /* آبی نفتی برای استان‌های غیرفعال */ 
    stroke: var(--gold-neon) !important; 
    stroke-width: 1px !important;
    transition: fill 0.3s, filter 0.3s;
}
#IranMap .map .province path:hover { 
    fill: #004488 !important; /* رنگ هاور کمی روشن‌تر */
    filter: drop-shadow(0 0 8px var(--gold-neon)); /* سایه نئونی هنگام هاور */
    cursor: pointer;
}

/* اگر دکمه‌های ورود/ثبت نام شما هنوز فاصله کافی ندارند */
.auth-buttons-container {
    margin-right: 1.5rem !important; 
}