
/* ==========================================
   STUDYEG FOOTER
   Dark Brown & Gold Animated Design
========================================== */

.eg-footer {
    --footer-brown: #68451E;
    --footer-deep: #2B1D12;
    --footer-gold: #C99543;
    --footer-light: #E5BD76;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    direction: rtl;
    color: #fff;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(201,149,67,.16), transparent 36%),
        radial-gradient(ellipse at 85% 85%, rgba(128,80,29,.24), transparent 40%),
        linear-gradient(125deg, #24180F 0%, #392516 48%, #24180F 100%);
    font-family: 'Alexandria', sans-serif;
    padding: 85px 25px 0;
}

.eg-footer,
.eg-footer * {
    box-sizing: border-box;
}

.eg-footer a {
    text-decoration: none !important;
    color: inherit;
}

.eg-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Animated Background */

.eg-footer-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.eg-footer-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .15;
    animation: egFooterGlow 12s ease-in-out infinite alternate;
}

.eg-footer-glow-1 {
    background: #C99543;
    top: -240px;
    right: -100px;
}

.eg-footer-glow-2 {
    background: #A66B2A;
    bottom: -260px;
    left: 5%;
    animation-delay: -5s;
}

.eg-footer-orbit {
    position: absolute;
    border: 1px solid rgba(229,189,118,.12);
    border-radius: 50%;
}

.eg-footer-orbit-1 {
    width: 700px;
    height: 270px;
    top: 8%;
    right: -250px;
    animation: egFooterOrbit 35s linear infinite;
}

.eg-footer-orbit-2 {
    width: 520px;
    height: 200px;
    bottom: 3%;
    left: -180px;
    animation: egFooterOrbit 42s linear infinite reverse;
}

.eg-footer-pattern {
    position: absolute;
    width: 430px;
    height: 430px;
    top: 25%;
    left: -180px;
    color: rgba(229,189,118,.09);
    animation: egFooterRotate 75s linear infinite;
}

.eg-footer-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #E5BD76;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(229,189,118,.8);
    opacity: .5;
    animation: egFooterFloat 7s ease-in-out infinite;
}

.eg-footer-dot-1 { top: 18%; left: 15%; }
.eg-footer-dot-2 { top: 65%; left: 38%; animation-delay: -2s; }
.eg-footer-dot-3 { top: 30%; right: 22%; animation-delay: -4s; }
.eg-footer-dot-4 { bottom: 13%; right: 12%; animation-delay: -1s; }

/* Container */

.eg-footer-inner {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
}

/* Top CTA */

.eg-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding-bottom: 45px;
}

.eg-footer-top-text {
    max-width: 680px;
}

.eg-footer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--footer-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 17px;
}

.eg-footer-eyebrow span {
    width: 24px;
    height: 2px;
    background: var(--footer-gold);
    border-radius: 5px;
}

.eg-footer-top h2 {
    color: #fff !important;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.7;
    margin: 0 0 10px;
}

.eg-footer-top p {
    color: rgba(255,255,255,.67);
    font-size: 13px;
    line-height: 2.1;
    margin: 0;
    max-width: 650px;
}

.eg-footer-main-btn {
    flex-shrink: 0;
    min-height: 55px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid rgba(229,189,118,.65);
    border-radius: 8px;
    background: linear-gradient(135deg, #C99543, #A66D2B);
    color: #24180F !important;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    transition: .35s ease;
}

.eg-footer-main-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(201,149,67,.23);
    background: linear-gradient(135deg, #E5BD76, #C99543);
}

.eg-footer-main-btn svg {
    width: 19px;
    height: 19px;
    transition: transform .3s ease;
}

.eg-footer-main-btn:hover svg {
    transform: translateX(-5px);
}

/* Divider */

.eg-footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229,189,118,.35), transparent);
}

/* Main Grid */

.eg-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 55px 0 45px;
    align-items: start;
}

.eg-footer-about,
.eg-footer-col {
    min-width: 0;
}

/* Logo */

.eg-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    max-width: 200px;;
    height: auto;
    margin-bottom: 22px;
}

.eg-footer-logo-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-light);
    border: 1px solid rgba(229,189,118,.35);
    border-radius: 12px;
    background: rgba(229,189,118,.07);
}

.eg-footer-logo-icon svg {
    width: 40px;
    height: 40px;
}

.eg-footer-logo-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eg-footer-logo-name strong {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .5px;
}

.eg-footer-logo-name small {
    color: var(--footer-light);
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 600;
}

.eg-footer-about-text {
    max-width: 310px;
    color: rgba(255,255,255,.65);
    font-size: 11px;
    line-height: 2.3;
    margin: 0 0 23px;
}

/* Social Icons */

.eg-footer-socials {
    display: flex;
    align-items: center;
    gap: 9px;
}

.eg-footer-socials a {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(229,189,118,.22);
    border-radius: 8px;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.035);
    transition: .3s ease;
}

.eg-footer-socials a:hover {
    color: #24180F;
    background: var(--footer-gold);
    border-color: var(--footer-gold);
    transform: translateY(-4px);
}

.eg-footer-socials svg {
    width: 17px;
    height: 17px;
}

/* Footer Columns */

.eg-footer-col h3 {
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    margin: 5px 0 13px;
}

.eg-footer-heading-line {
    display: block;
    width: 37px;
    height: 2px;
    background: linear-gradient(90deg, var(--footer-light), var(--footer-gold));
    border-radius: 5px;
    margin-bottom: 22px;
}

.eg-footer-col li {
    margin: 0 0 12px;
}

.eg-footer-col li a {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255,255,255,.68) !important;
    font-size: 12.5px;
    line-height: 1.7;
    transition: .3s ease;
}

.eg-footer-col li a::before {
    content: "";
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    margin-top: 9px;
    border: 1px solid var(--footer-gold);
    border-radius: 50%;
    transition: .3s ease;
}

.eg-footer-col li a:hover {
    color: var(--footer-light) !important;
    transform: translateX(-4px);
}

.eg-footer-col li a:hover::before {
    background: var(--footer-gold);
    box-shadow: 0 0 8px rgba(201,149,67,.5);
}

/* Contact Strip */

.eg-footer-contact-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    padding: 25px 20px;
    margin: 0 0 10px;
    border-top: 1px solid rgba(229,189,118,.16);
    border-bottom: 1px solid rgba(229,189,118,.16);
    background: rgba(255,255,255,.025);
}

.eg-footer-contact-strip > a {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: .3s ease;
}

.eg-footer-contact-strip > a:hover {
    transform: translateY(-3px);
}

.eg-footer-strip-icon {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(229,189,118,.24);
    border-radius: 9px;
    color: var(--footer-light);
    background: rgba(229,189,118,.07);
}

.eg-footer-strip-icon svg {
    width: 19px;
    height: 19px;
}

.eg-footer-contact-strip > a > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eg-footer-contact-strip small {
    color: rgba(255,255,255,.48);
    font-size: 10px;
}

.eg-footer-contact-strip strong {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    direction: ltr;
    text-align: right;
}

/* Bottom Bar */

.eg-footer-bottom {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.eg-footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,.53);
    font-size: 11px;
}

.eg-footer-bottom p strong {
    color: var(--footer-light);
}

.eg-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.eg-footer-bottom-links a {
    color: rgba(255,255,255,.55) !important;
    font-size: 10px;
    transition: .3s ease;
}

.eg-footer-bottom-links a:hover {
    color: var(--footer-light) !important;
}

.eg-footer-bottom-links span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--footer-gold);
}

.eg-footer-back-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-light) !important;
    font-size: 10px;
    transition: .3s ease;
}

.eg-footer-back-top:hover {
    transform: translateY(-3px);
}

.eg-footer-back-top svg {
    width: 17px;
    height: 17px;
}

/* Animations */

@keyframes egFooterGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: .1;
    }
    100% {
        transform: translate(50px, 35px) scale(1.2);
        opacity: .23;
    }
}

@keyframes egFooterOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes egFooterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes egFooterFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: .25;
    }
    50% {
        transform: translateY(-22px);
        opacity: .8;
    }
}

/* Tablet */

@media (max-width: 1100px) {
    .eg-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 28px;
    }

    .eg-footer-about {
        grid-column: span 3;
        max-width: 650px;
    }

    .eg-footer-about-text {
        max-width: 500px;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .eg-footer {
        padding: 60px 20px 0;
    }

    .eg-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        padding-bottom: 35px;
    }

    .eg-footer-top h2 {
        font-size: 23px;
    }

    .eg-footer-top p {
        font-size: 12px;
    }

    .eg-footer-main-btn {
        width: 100%;
    }

    .eg-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 18px;
        padding: 40px 0;
    }

    .eg-footer-about {
        grid-column: span 2;
    }

    .eg-footer-about-text {
        max-width: 100%;
    }

    .eg-footer-col h3 {
        font-size: 12px;
        white-space: normal;
    }

    .eg-footer-col li a {
        font-size: 10px;
    }

    .eg-footer-contact-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 22px 5px;
    }

    .eg-footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 20px 0;
        gap: 16px;
    }

    .eg-footer-bottom p {
        width: 100%;
    }

    .eg-footer-bottom-links {
        gap: 10px;
    }

    .eg-footer-back-top {
        display: none;
    }
}

/* Small Mobile */

@media (max-width: 380px) {
    .eg-footer {
        padding-right: 15px;
        padding-left: 15px;
    }

    .eg-footer-grid {
        gap: 30px 12px;
    }

    .eg-footer-logo-name strong {
        font-size: 21px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .eg-footer *,
    .eg-footer *::before,
    .eg-footer *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
