/* Header Top Section Responsive Fixes */
/* Only apply fixes for screens 1440px and below to prevent layout issues on larger screens */

/* Base improvements for all screens - non-breaking */
.header-top-section .header-top-wrapper ul li {
    display: flex;
    align-items: center;
}

.header-top-section .header-top-wrapper ul li i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-top-section .header-top-wrapper ul li a {
    color: var(--header);
    transition: all 0.3s ease;
}

.header-top-section .header-top-wrapper ul li a:hover {
    color: var(--theme);
}

.header-top-section .header-top-wrapper .social-icon {
    flex-shrink: 0;
}

.header-top-section .header-top-wrapper .social-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Responsive adjustments - ONLY for screens 1440px and below */
@media (max-width: 1440px) {
    .header-top-section .header-top-wrapper ul {
        gap: 18px;
    }

    .header-top-section .header-top-wrapper ul li {
        font-size: 15px;
    }

    .header-top-section .header-top-wrapper ul li:not(:last-child) {
        padding-right: 18px;
    }

    .header-top-section .header-top-wrapper ul li i {
        margin-right: 8px;
        font-size: 14px;
    }
}

@media (max-width: 1399px) {
    .header-top-section .header-top-wrapper ul {
        gap: 15px;
    }

    .header-top-section .header-top-wrapper ul li {
        font-size: 14px;
    }

    .header-top-section .header-top-wrapper ul li:not(:last-child) {
        padding-right: 15px;
    }

    .header-top-section .header-top-wrapper ul li i {
        margin-right: 6px;
        font-size: 13px;
    }

    .header-top-section .header-top-wrapper .social-icon a {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 1299px) {
    .header-top-section .header-top-wrapper ul {
        gap: 12px;
        flex-wrap: nowrap;
    }

    .header-top-section .header-top-wrapper ul li {
        font-size: 13px;
        white-space: nowrap;
    }

    .header-top-section .header-top-wrapper ul li:not(:last-child) {
        padding-right: 12px;
    }

    .header-top-section .header-top-wrapper ul li i {
        margin-right: 5px;
        font-size: 12px;
    }

    .header-top-section .header-top-wrapper .social-icon {
        gap: 8px;
    }

    .header-top-section .header-top-wrapper .social-icon a {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 11px;
    }
}

/* Hide email on smaller screens to prevent overflow */
@media (max-width: 1250px) {
    .header-top-section .header-top-wrapper ul li:nth-child(2) {
        display: none;
    }
}

/* Further adjustments for very small desktop screens */
@media (max-width: 1220px) {
    .header-top-section .header-top-wrapper ul li {
        font-size: 12px;
    }

    .header-top-section .header-top-wrapper ul li i {
        font-size: 11px;
        margin-right: 4px;
    }

    .header-top-section .header-top-wrapper .social-icon a {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 10px;
    }
}