/* Reset و فونتها */
@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb.eot');
    src: url('../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSansWeb.woff2') format('woff2'),
         url('../fonts/IRANSansWeb.woff') format('woff'),
         url('../fonts/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    direction: rtl;
}

/* هدر و نویگیشن */
.header {
    background-color: #000000;    
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: 1rem;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 5%;
    max-width: fixed;
    margin: 0 auto;
}

.logo h1 {
    color: #f6ff00;
    font-size: 2.2rem;
	font-weight: 900;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 1.5rem;
	border-radius: 3px;
    font-weight: 900;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 900;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #3498db;
	background-color: #2980b9;
	border-radius: 5px;
}

.btn-register, .btn-admin {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-register {
    color: white;
}

.btn-register:hover {
    background-color: #2980b9;
}

.btn-admin {
    color: white;
}

.btn-admin:hover {
    background-color: #27ae60;
}

/* بخش قهرمان */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/law-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 0.5rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* بخش خدمات */
.services {
    padding: rem 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* بخش وکلا */
.lawyers {
    padding: 0.3rem 0;
    background-color: #afafaf;
}

.lawyers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lawyer-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.lawyer-card:hover {
    transform: translateY(-10px);
}

.lawyer-img {
    height: 250px;
    overflow: hidden;
}

.lawyer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.lawyer-card:hover .lawyer-img img {
    transform: scale(1.1);
}

.lawyer-info {
    padding: 1.5rem;
}

.lawyer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.lawyer-info p {
    color: #777;
    margin-bottom: 0.5rem;
}

.lawyer-specialty {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.btn-primary {
    background-color: #2ecc71;
}

.btn-primary:hover {
    background-color: #27ae60;
}

.text-center {
    text-align: center;
    margin-top: 1rem;
}

/* فوتر */
.footer {
	width: 100%;
    background-color: #000000;
    color: white;
    padding: 0.5rem 0 0;
	font-size: 0.6rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.footer-section h3 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #003cff;
}

.footer-section p, .footer-section li {
    margin-bottom: 0.3rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-section i {
    margin-left: 0.5rem;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding: 0.5rem 0;
    background-color: #ffffff;
    margin-top: 0.5rem;
	    color: #000000;
}

/* صفحه ثبت نام وکیل */
.register-container {
    max-width: 800px;
    margin: 5rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.register-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    font-weight: 600;
}

.btn-submit:hover {
    background-color: #2980b9;
}

/* صفحه مدیریت */
.admin-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-logo h2 {
    font-size: 1.5rem;
}

.admin-menu {
    display: flex;
    list-style: none;
}

.admin-menu li {
    margin-left: 1.5rem;
}

.admin-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.admin-menu a:hover {
    color: #3498db;
}

.dashboard {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 250px;
    background-color: #34495e;
    color: white;
    padding: 2rem 0;
}

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

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: #2c3e50;
    color: white;
}

.sidebar-menu i {
    margin-left: 0.5rem;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #f5f5f5;
}

.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0.8rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.table tr:hover {
    background-color: #f5f5f5;
}

.btn-action {
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    margin-left: 0.5rem;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.stat-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.stat-card p {
    color: #777;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0.5rem;
    }
    
    .services-container, .lawyers-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}