* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
    box-shadow: 0 4px 12px rgba(49, 46, 129, 0.45);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 30px;
    font-weight: 700;
    color: #e0e7ff;
    letter-spacing: 0.5px;
    transition: color .25s;
}

.logo h1:hover {
    color: #ffffff;
    /* pure white on hover */
}


.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #c7cbd3;
    text-shadow: 0 0 8px #c4b5fd;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

/* ----  hamburger  ---- */
.hamburger span {
    background: #fff;
    width: 28px;
    height: 3px;
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    text-align: center;
    padding: 64px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    margin: 0 -24px;
    margin-bottom: 48px;
}

.hero h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.articles-section {
    padding: 32px 0 64px;
}

.articles-section h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.article-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 24px;
}

.article-category {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
    display: inline-block;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== Back-to-Home button text ===== */
.content-container .btn-primary {
    color: #ffffff !important;
    /* force white text */
}

.content-container .btn-primary:hover {
    color: #ffffff !important;
    /* stay white on hover */
}

.article-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.article-meta .date {
    font-size: 14px;
    color: var(--text-light);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
    border: none;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
}

.footer {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
    color: #ffffff;
    /* white text so it’s readable */
    padding: 25px 0 15px;
    margin-top: 64px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.content-container h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.content-container h2 {
    display: block;
    /* shrink-wrap to text */
    width: 100%;
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
    color: #ffffff !important;
    padding: 10px 20px;
    /* top 8, bottom 10 → optical centre */
    margin: 32px 0 16px 24px;
    /* breathing space */
    margin-right: -24px;
    /* align with content edge */
    border-radius: 12px;
    /* full pill */
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 16px;
    /* breathing space */
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
    transition: transform .2s;
}

.content-container h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-dark);
}

.content-container p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.content-container ul,
.content-container ol {
    margin: 16px 0;
    padding-left: 32px;
}

.content-container li {
    margin-bottom: 8px;
    line-height: 1.8;
    color: var(--text-light);
}

.content-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-container a:hover {
    text-decoration: underline;
}

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 64px 0;
    margin: 0 0 48px;
    border-radius: 5%;
}

.article-header h1 {
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-form {
    max-width: 600px;
    margin: 32px auto;
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.table-responsive {
    overflow-x: auto;
    margin: 24px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
    color: var(--white);
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
}

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

tbody tr:hover {
    background-color: var(--bg-light);
}

.info-box {
    background-color: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 4px;
}

.info-box p {
    color: var(--text-dark);
    margin: 0;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-light);
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
}

@media (max-width: 768px) {
    .nav-links {
        background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
        box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
        position: fixed;
        top: 76px;
        right: -100%;
        width: 75%;
        height: calc(100vh - 76px);
        backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 32px;
        transition: right 0.35s ease;
    }

    .nav-links .nav-link {
        color: #ffffff;
        /* white text */
        border-bottom: 1px solid rgba(255, 255, 255, .15);
    }

    .nav-links .nav-link:hover {
        background: rgba(255, 255, 255, .1);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .content-container h1 {
        font-size: 32px;
    }

    .content-container h2 {
        font-size: 26px;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .hero {
        padding: 48px 16px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .articles-section h3 {
        font-size: 26px;
    }

    .contact-form {
        padding: 24px 16px;
    }
}

/* ---------- ARTICLE HERO IMAGE – NEVER OVERFLOW ---------- */
.content-container article img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Artical css code  */
.entry-title {
    margin-bottom: 0;
}

/* ===== Related Articles ===== */
.related-articles {
    margin: 60px -24px -48px;
    /* full-width bleed */
    padding: 48px 24px;
    background: #f3f4f6;
    /* subtle grey separator */
}

.related-articles h2 {
    display: block;
    width: 100%;
    margin: 0 0 32px -24px;
    margin-right: -24px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.rel-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.rel-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.rel-content {
    padding: 16px 20px 20px;
}

.rel-cat {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.rel-content h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: #1f2937;
}

.rel-content p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 10px;
    line-height: 1.5;
}

.rel-date {
    font-size: 13px;
    color: #9ca3af;
}

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

/* ===== LOADING STATES ===== */
.loading {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-light);
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-articles {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-light);
    font-size: 18px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.error-message {
    text-align: center;
    padding: 48px 24px;
    color: #ef4444;
    font-size: 18px;
    background: #fef2f2;
    border-radius: 12px;
    border: 2px solid #fecaca;
}

#pagination {
    margin-top: 48px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-btn {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
    color: var(--white);
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
    color: var(--white);
    border-color: #4f46e5;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.pagination-ellipsis {
    color: var(--text-light);
    padding: 0 8px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 38px;
    }

    .pagination-wrapper {
        gap: 8px;
    }
}

/* ===== MINI LANGUAGE UNDER LOGO ===== */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    /* tight spacing */
}

.lang-mini {
    position: relative;
    display: inline-flex;
    /* keeps it small */
    align-items: center;
    margin: -15px;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.lang-trigger:hover {
    transform: translateY(-1px);
    /* box-shadow: 0 4px 12px rgba(79, 70, 229, .35) */
}

.lang-trigger .flag {
    font-size: 14px
}

.lang-trigger .chevron {
    font-size: 9px;
    transition: transform .2s
}

.lang-mini:hover .chevron {
    transform: rotate(180deg)
}

.lang-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    list-style: none;
    padding: 6px 0;
    min-width: 140px;
    display: none;
    z-index: 1001;
}

.lang-mini:hover .lang-menu {
    display: block
}

.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: #312e81;
    text-decoration: none;
    font-size: 12px;
    transition: background .2s;
}

.lang-menu li a:hover {
    background: #e0e7ff
}

/* ===== SOCIAL ICONS ===== */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-links a svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

/* Facebook Color */
.social-links a:hover .fb-icon {
    fill: #1877F2;
}

/* Telegram Color */
.social-links a:hover .tg-icon {
    fill: #229ED9;
}

/* Instagram Gradient (simulated with solid color) */
.social-links a:hover .ig-icon {
    fill: #E1306C;
}