/* =================================================== */
/* ============== الفوتر =================== */
/* =================================================== */

/* Footer Section */
.ks-footer {
    padding: 2rem;
    margin: 2rem 0.5rem;
    color: var(--ks-glass-text-primary);
    position: relative;
    overflow: hidden;
}

.ks-footer-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .ks-footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .ks-footer-container {
        grid-template-columns: 1.5fr 2fr 1fr;
    }
}

.ks-footer-column .ks-footer-logo {
    height: 100px;
    margin-bottom: 1.5rem;
}

.ks-footer-column .ks-footer-about-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ks-footer-text-light);
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 0;
}

.ks-footer-column .ks-footer-about-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(0%);
    width: 70px;
    height: 3px;
    margin-bottom: 1rem;
    background: linear-gradient(to right,
            rgba(255, 209, 102, 0),
            var(--ks-footer-brand-gold),
            rgba(255, 209, 102, 0));
}

.ks-footer-column h3,
.ks-footer-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ks-footer-brand-blue);
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ks-footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--ks-footer-brand-gold);
}

.ks-footer-links {
    list-style: none;
    padding: 0;
}

.ks-footer-links li:not(:last-child) {
    margin-bottom: 1rem;
}

.ks-footer-links a {
    text-decoration: none;
    color: var(--ks-footer-text-light);
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0.25rem 0;
    transition: color 0.3s ease, padding-right 0.4s ease;
}

.ks-footer-links a::before {
    content: '‹';
    position: absolute;
    right: -10px;
    top: 52%;
    transform: translateY(-50%);
    opacity: 0;
    color: var(--ks-footer-brand-gold);
    font-weight: 900;
    font-size: 1.2rem;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.ks-footer-links a:hover {
    color: var(--ks-footer-brand-blue);
    padding-right: 1.2rem;
}

.ks-footer-links a:hover::before {
    opacity: 1;
    right: 0;
}

.ks-footer-horizontal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding-top: 1rem;
}

.ks-footer-horizontal-links li {
    margin-bottom: 0 !important;
}

.ks-footer-section-title {
    justify-content: center;
}

.ks-footer-section-title::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.ks-footer-sections-container {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--ks-footer-border-color);
    padding-top: 1.5rem;
    justify-content: center;
}

.ks-footer-sections-container .ks-footer-links:first-child,
.ks-footer-sections-container .ks-footer-links:nth-child(2) {
    padding-left: 1rem;
    position: relative;
}

.ks-footer-sections-container .ks-footer-links:first-child::after,
.ks-footer-sections-container .ks-footer-links:nth-child(2)::after {
    content: '•\a•\a•';
    white-space: pre;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--ks-footer-brand-gold);
    font-size: 1.2rem;
    line-height: 0.8;
    opacity: 0.6;
    font-family: sans-serif;
}


@media only screen and (max-width: 600px) {

    .ks-footer-sections-container .ks-footer-links:first-child,
    .ks-footer-sections-container .ks-footer-links:nth-child(2) {
        padding-left: 0;
    }

    .ks-footer-sections-container .ks-footer-links:first-child::after,
    .ks-footer-sections-container .ks-footer-links:nth-child(2)::after {
        left: -22%;
    }

    .ks-footer-container>*:nth-child(1) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ks-footer-horizontal-links {
        justify-content: center;
    }

    .ks-footer-column .ks-footer-about-text::after {
        transform: translateX(-50%);
    }
}

.ks-footer-social-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 0;
    flex-wrap: wrap;
}

.ks-footer-social-links a {
    text-decoration: none;
    color: var(--ks-footer-text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.ks-footer-social-links a:hover {
    color: var(--ks-footer-brand-blue);
    background-color: #e9ecef;
    transform: translateX(-5px);
}

.ks-footer-social-links svg {
    width: 24px;
    height: 24px;
    fill: var(--ks-footer-text-light);
    transition: fill 0.3s ease, transform 0.3s ease;
}

.ks-footer-social-links a:hover svg {
    fill: var(--ks-footer-brand-blue);
    transform: rotate(-10deg) scale(1.1);
}

.ks-copyright-bar {
    padding: 1rem 1rem;
    color: var(--ks-footer-brand-blue);
    margin: -1rem 0.5rem 1rem 0.5rem;
    font-weight: 600;
}

.glass-effect {
    background: var(--ks-glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--ks-glass-border-color);
    box-shadow: 0 8px 32px 0 rgb(0 0 0 / 12%);
    border-radius: 15px;
}

.ks-copyright-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ks-copyright-container p {
    margin: 0;
    font-size: 0.9rem;
}

.ks-copyright-container img {
    height: 25px;
    opacity: 0.7;
}

@keyframes ks-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ks-footer-column,
.ks-footer-sections-wrapper {
    animation: ks-fadeInUp 0.7s ease-out forwards;
    opacity: 0;
}

.ks-footer-container>*:nth-child(1) {
    animation-delay: 0.1s;
}

.ks-footer-container>*:nth-child(2) {
    animation-delay: 0.3s;
}

.ks-footer-container>*:nth-child(3) {
    animation-delay: 0.5s;
}

@media (max-width: 992px) {
    .ks-copyright-container {
        text-align: center;
        flex-direction: column;
    }
}