body {
    padding-top: 80px;
}
body,
nav {
    background-color: #f6f4ee;
}
.hr_custom {
    border: 0;
    height: 1px;
    background-color: #ccc;
    margin: 0;
}
.dropdown-menu.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}
.nav-link.title {
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #222;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.45rem;
}
.nav-link.title:focus,
.nav-link.title:hover {
    background: rgba(0, 0, 0, 0.03);
    text-decoration: none;
}
.flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    transform-origin: left center;
    animation: flag-breeze 1.9s ease-in-out infinite;
}
@keyframes flag-breeze {
    0% {
        transform: perspective(600px) rotateY(0deg) translateY(0);
    }
    20% {
        transform: perspective(600px) rotateY(8deg) translateY(-1px);
    }
    40% {
        transform: perspective(600px) rotateY(0deg) translateY(0);
    }
    60% {
        transform: perspective(600px) rotateY(-6deg) translateY(1px);
    }
    80% {
        transform: perspective(600px) rotateY(2deg) translateY(0);
    }
    100% {
        transform: perspective(600px) rotateY(0deg) translateY(0);
    }
}
.nav-link.active {
    background-color: #efede8;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}
.article:hover {
    background-color: #efede8;
    border-radius: 8px;
}
.image_main_article {
    width: 90%;
}
.image_normal_article {
    width: 70%;
}
html[lang="ar"] .custom-border {
    padding-right: 1rem;
}
html[lang="en"] .custom-border {
    border-left: 2px solid #ddd;
    padding-left: 1rem;
}
.title {
    font-family: "Noto Sans Arabic", sans-serif;
    font-optical-sizing: auto;
    font-weight: bolder;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}
/* .card-text-article {
    text-align: justify;
    -moz-text-align-last: justify;
    text-align-last: justify;
} */
.swiper {
    width: 100%;
}
.swiper-slide a {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 400px;
}
.swiper-slide a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}
.swiper-slide h4 {
    font-size: 1rem;
    margin: 5px 0 0 0;
    color: #333;
}
@media (max-width: 768px) {
    .swiper-slide a {
        height: 300px;
    }
}
@media (max-width: 480px) {
    .swiper-slide a {
        height: 250px;
    }
}
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}
.glowing-img {
    border-radius: 50%;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.4),
        0 0 30px 15px rgba(255, 255, 255, 0.2),
        0 0 60px 30px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}
.footer-custom {
    background: linear-gradient(135deg, #111, #1b1b1b);
    position: relative;
    overflow: hidden;
}
.footer-custom::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.05),
        transparent 70%
    );
    animation: rotateGlow 20s linear infinite;
    z-index: 0;
}
@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.footer-custom .container {
    position: relative;
    z-index: 2;
}
.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}
.social-link {
    color: #ccc;
    transition: transform 0.3s ease, color 0.3s ease;
}
.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}
.social-link.facebook:hover {
    color: #1877f2;
}
.social-link.twitter:hover {
    color: #1da1f2;
}
.social-link.instagram:hover {
    color: #e4405f;
}
.social-link.youtube:hover {
    color: #ff0000;
}
.search-container {
    display: flex;
    align-items: center;
    position: relative;
}
.btn-search {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.search-input {
    width: 0;
    opacity: 0;
    border: none;
    border-bottom: 2px solid;
    background: transparent;
    font-size: 16px;
    outline: none;
    transition: all 0.4s ease;
    margin-left: 8px;
    padding: 2px 0;
}
.search-input.active {
    width: 160px;
    opacity: 1;
}
.nav-gap {
    gap: 16px;
}
.custom-dropdown {
    position: relative;
}
.custom-dropdown > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    color: #222;
    transition: color 0.3s ease;
}
.custom-dropdown > a i {
    margin-right: 5px;
    font-size: 13px;
    transition: transform 0.3s ease;
}
.custom-dropdown:hover > a {
    color: #111;
}
.dropdown-toggle::after {
    display: none !important;
}
.custom-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    inset-inline-start: 0;
    z-index: 999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    min-width: 160px;
    background-color: #fff;
    border-radius: 0.6rem;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1),
        opacity 0.2s ease, visibility 0.2s;
}
html[lang="ar"] .custom-dropdown .dropdown-menu {
    left: auto;
    right: 0;
    inset-inline-start: auto;
}
@media (min-width: 992px) {
    .custom-dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .custom-dropdown:hover .icon-toggle {
        transform: rotate(180deg);
    }
}
.dropdown-menu {
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
}
.dropdown-menu .dropdown-item {
    display: flex;
    gap: 0;
    border-radius: 0.45rem;
    padding: 0.45rem 0.8rem !important;
    font-size: 15px;
    color: #222;
    background: transparent;
    transition: background 0.15s ease, transform 0.12s ease;
    transform: none !important;
}
.dropdown-menu .dropdown-item:hover {
    background-color: #f2f2f2 !important;
    transform: none !important;
}
@media (max-width: 991px) {
    .custom-dropdown .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        display: none;
        box-shadow: none;
        visibility: visible;
    }

    .custom-dropdown .dropdown-menu {
        display: none;
        visibility: hidden;
        opacity: 0;
        transform: translateY(8px) scale(0.98);
        transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1),
            opacity 0.2s ease;
    }

    .custom-dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
