*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f4f7fb;
    color: #1e293b;
    line-height: 1.7;
}

a {
    color: #0f4c81;
    text-decoration: none;
}

a:hover {
    color: #0b3a63;
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 3px solid #0f4c81;
    box-shadow: 0 2px 12px rgba(15, 76, 129, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    border-bottom: 1px solid #e2e8f0;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.85rem 0;
}

.header-banner {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.top-banner {
    max-height: 94px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.header-nav {
    background: #f8fafc;
}

.header-nav .main-nav {
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.75rem 0;
}

.site-logo {
    height: 130px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.main-nav a {
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0f4c81;
    border-bottom-color: #0f4c81;
}

.site-main {
    min-height: calc(100vh - 280px);
    padding: 2.5rem 0 3rem;
}

.page-title {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    color: #0f4c81;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.06);
    border: 1px solid #e2e8f0;
}

.news-list {
    display: grid;
    gap: 1rem;
}

.news-item h2,
.news-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.news-item p {
    margin: 0 0 0.75rem;
    color: #475569;
}

.read-more {
    display: inline-block;
    font-weight: 600;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.06);
}

.members-table th,
.members-table td {
    padding: 1rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

.member-name-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: right;
}

.member-website-link {
    word-break: break-all;
    font-size: 0.9rem;
}

.table-responsive {
    overflow-x: auto;
}

.members-table th {
    background: #0f4c81;
    color: #fff;
    font-weight: 600;
}

.members-table tr:last-child td {
    border-bottom: none;
}

.member-logo {
    max-height: 56px;
    max-width: 120px;
    object-fit: contain;
}

.btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-primary {
    background: #0f4c81;
    color: #fff;
}

.btn-primary:hover {
    background: #0b3a63;
    color: #fff;
}

.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 2rem;
}

.footer-section--info {
    max-width: 520px;
}

.footer-section h3 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #93c5fd;
}

.footer-org {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.footer-org-en {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.hero {
    background: linear-gradient(135deg, #0f4c81 0%, #1e6bb8 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: 1.85rem;
}

.hero p {
    margin: 0;
    opacity: 0.95;
}

.news-content {
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-content ul,
.news-content ol {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-content a {
    color: #2563eb;
    text-decoration: underline;
}

.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.news-content th,
.news-content td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
}

.meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.pagination .active span {
    background: #0f4c81;
    color: #fff;
    border-color: #0f4c81;
}

@media (max-width: 768px) {
    .header-top-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-banner {
        width: 100%;
        justify-content: flex-start;
    }


    .top-banner {
        max-height: 73px;
    }

    .members-table {
        font-size: 0.9rem;
    }

    .members-table th,
    .members-table td {
        padding: 0.75rem 0.5rem;
    }

    .member-name-cell {
        flex-direction: column;
        gap: 0.5rem;
    }
}
