.site-header {
    color: var(--text) !important;
    min-height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1030;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.1);
}

.site-header .nav-link.active {
    font-weight: 600;
    color:#4169ff;
}

.site-header .nav-link.active::after {
    width: 100%;
   
}

.site-header .navbar {
    min-height: var(--header-height);
}

.site-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;

    color: var(--black);

    font-size: 1.70rem;
    font-weight: 700;

    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-logo-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-gradient);
    color: var(--white);
}

.site-nav .nav-link {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    padding-inline: 0.8rem !important;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: transparent;
    color: var(--text);
}

.header-icon-btn:hover {
    background: var(--background-soft);
    color: var(--primary);
}

.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    padding: 0.2rem;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--background-soft);
    border: 1px solid var(--border);
}



/* =========================================
   ARTICLES MEGA MENU
========================================= */

.articles-menu {
    position: static;
}

.articles-toggle {
    cursor: pointer;
}

.articles-arrow {
    font-size: 0.65rem;
    margin-left: 0.15rem;
    transition: transform 0.2s ease;
}

.articles-menu.is-open .articles-arrow {
    transform: rotate(180deg);
}


/* =========================================
   MEGA MENU CONTAINER
========================================= */

.articles-mega-menu {

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    width: 100%;

    background: var(--white);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    box-shadow:
        0 15px 35px rgba(17, 17, 17, 0.10);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 1029;
}


.articles-menu.is-open .articles-mega-menu {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================
   MEGA MENU INNER
========================================= */

.articles-mega-inner {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(320px, 0.85fr);

    gap: 1.5rem;

    padding: 2rem 0 2.25rem;
}


/* =========================================
   COLUMNS
========================================= */

.mega-column {

    padding-right: 1.5rem;

    border-right: 1px solid var(--border);
}


.mega-heading {

    margin: 0 0 1rem;

    color: var(--text-muted);

    font-size: 0.75rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


/* =========================================
   ARTICLE CARDS
========================================= */

.mega-card {
    
    text-decoration: none;

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    padding: 1rem;

    margin-bottom: 0.75rem;

    background: var(--background-soft);

    border: 1px solid transparent;

    border-radius: var(--radius-md);

    color: var(--text);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.mega-card:hover {

    background: var(--primary-soft);

    border-color: rgba(63, 111, 255, 0.15);

    color: var(--primary);

    transform: translateX(3px);
}


.mega-card > div {

    display: flex;

    flex-direction: column;

    gap: 0.2rem;
}


.mega-card strong {

    font-size: 0.95rem;

    font-weight: 600;

    color: var(--text);
}


.mega-card span {

    color: var(--text-muted);

    font-size: 0.78rem;

    line-height: 1.4;
}


.mega-card i {

    flex-shrink: 0;

    color: var(--primary);

    font-size: 0.9rem;
}


/* =========================================
   ACCENT CARD
========================================= */

.mega-card-accent {

    background: var(--primary-soft);

    border-color: rgba(63, 111, 255, 0.12);
}


.mega-card-accent strong {

    color: var(--primary);
}


/* =========================================
   FEATURED ARTICLE
========================================= */

.mega-featured {

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    background: var(--background-soft);

    border-radius: var(--radius-lg);

    border: 1px solid var(--border);
}


.mega-featured-content {

    padding: 1.5rem 1.5rem 1.25rem;
}


.mega-featured-label {

    display: inline-block;

    margin-bottom: 0.65rem;

    color: var(--primary);

    font-size: 0.7rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.mega-featured h4 {

    margin: 0 0 0.65rem;

    color: var(--text);

    font-size: 1.25rem;

    line-height: 1.25;

    font-weight: 600;
}


.mega-featured p {

    margin: 0 0 1rem;

    color: var(--text-muted);

    font-size: 0.82rem;

    line-height: 1.5;
}


.mega-featured-link {

    display: inline-flex;

    align-items: center;

    gap: 0.4rem;

    color: var(--primary);

    font-size: 0.85rem;

    font-weight: 600;
}


.mega-featured-link:hover {

    color: var(--primary-dark);
}


/* =========================================
   FEATURED IMAGE
========================================= */

.mega-featured-image {

    height: 150px;

    overflow: hidden;

    background: var(--black);
}


.mega-featured-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}



@media (max-width: 768px) {

.site-header .navbar {
    padding-bottom: 20px;
}


.articles-mega-inner {
    display: grid;
    grid-template-columns: 1fr;

}



}
