/* Add these styles to your CSS file */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    /* Red color for errors */
}

.form-input.error input,
.form-input.error select,
.form-input.error textarea {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-input.success input,
.form-input.success select,
.form-input.success textarea {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* For RTL support */
[dir="rtl"] .invalid-feedback {
    text-align: right;
}

.lang-link {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: background-color 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

.lang-link img {
    width: 24px;
    object-fit: cover;
    border-radius: 4px;
    border: none;
}

.lang-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-link.active {
    background-color: #0d6efd20;
    color: #0d6efd;
    font-weight: 600;
    border-radius: 2rem;
}

.flag-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .lang-link span {
        font-size: 0.9rem;
    }
}

/* active language highlight */
/* .lang-link.active img {
} */
.project-description {
    font-size: 1rem;
}

.embed-item {
    padding: 8px;
    background-color: #343434;
    border-radius: 8px;
    max-width: 100%;
    overflow: hidden;
    display: block;
}

.tj-entry-content {
    line-height: 2rem;
}

/* Beautiful custom list style for .tj-entry-content ul */
.tj-entry-content ul {
    list-style: none;
    /* remove default bullets */
    padding-left: 0;
    /* we’ll build our own indentation */
    margin: 1.5em 0;
    /* spacing around the list */
}

.tj-entry-content ul li {
    position: relative;
    padding-left: 2rem;
    /* space for the custom bullet */
    margin-bottom: 1em;
    /* vertical rhythm between items */
    line-height: 1.7;
    color: #2c3e50;
    /* dark, readable text colour */
}

[dir="rtl"] .tj-entry-content ul li {
    padding-left: 0rem;
    padding-right: 2rem;
}

/* Custom bullet using a gradient circle */
.tj-entry-content ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0.6em;
    /* vertically centred with the first line */
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[dir="rtl"] .tj-entry-content ul li::before {
    left: auto;
    right: 6px;
}

/* Subtle hover lift on the bullet for interactive feel */
.tj-entry-content ul li:hover::before {
    transform: scale(1.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Remove extra margin from paragraphs inside list items
   so that spacing is controlled purely by the li margin */
.tj-entry-content ul li p {
    margin: 0;
}

#nav-desc-description {
    line-height: 2rem;
}

#nav-desc-description h2,
#nav-desc-description h3,
#nav-desc-description h4,
#nav-desc-description h5,
#nav-desc-description h6 {
    margin-top: 1.2rem;
}