/* Site footer — educational theme */
#rs-footer.site-footer,
.site-footer-shell {
    margin-top: 0 !important;
}

.site-footer-shell {
    position: relative;
    background: linear-gradient(180deg, #04121c 0%, #061a28 55%, #04121c 100%);
}

.site-footer-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #04121c 0%, #f9c833 50%, #04121c 100%);
    z-index: 2;
}

.site-footer {
    position: relative;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    overflow: visible;
}

.site-footer-contact {
    position: relative;
    z-index: 5;
    margin-top: -64px;
    padding-bottom: 18px;
}

.site-footer-contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    row-gap: 20px;
}

.site-footer-contact-col {
    display: flex;
}

.site-footer-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 22px 20px;
    background: #ffffff;
    border: 1px solid rgba(6, 26, 40, 0.08);
    border-left: 4px solid #f9c833;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(4, 18, 28, 0.16);
}

.site-footer-contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #061a28;
    background: linear-gradient(135deg, #f9c833 0%, #f0b429 100%);
    border-radius: 12px;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(249, 200, 51, 0.28);
}

.site-footer-contact-title {
    margin: 0 0 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #061a28;
}

.site-footer-contact-text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #475569;
}

.site-footer-contact-text a {
    color: #061a28;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-contact-text a:hover {
    color: #92400e;
}

.site-footer-main {
    position: relative;
    z-index: 1;
    padding: 28px 0 46px;
}

.site-footer-main-row {
    row-gap: 32px;
}

.site-footer-logo-link {
    display: inline-block;
    margin-bottom: 18px;
}

.site-footer-logo {
    max-height: 72px;
    width: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.site-footer-about {
    margin: 0 0 20px;
    max-width: 360px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(249, 200, 51, 0.25);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.site-footer-social a:hover {
    background: linear-gradient(135deg, #f9c833 0%, #f0b429 100%);
    border-color: #f9c833;
    color: #061a28;
    transform: translateY(-2px);
}

.site-footer-title {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.site-footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f9c833 0%, #f0b429 100%);
}

.site-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-links li {
    margin-bottom: 10px;
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer-links a i {
    color: #f0b429;
    font-size: 0.82rem;
    transition: transform 0.2s ease;
}

.site-footer-links a:hover {
    color: #f9c833;
}

.site-footer-links a:hover i {
    transform: translateX(3px);
}

.site-footer-news {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-news-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.site-footer-news-item:last-child {
    margin-bottom: 0;
}

.site-footer-news-date {
    flex-shrink: 0;
    width: 52px;
    padding: 8px 6px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(249, 200, 51, 0.2);
    border-radius: 10px;
}

.site-footer-news-date span {
    display: block;
    line-height: 1.1;
}

.site-footer-news-date span:first-child {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f9c833;
}

.site-footer-news-date span:last-child {
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer-news-title {
    display: block;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-news-title:hover {
    color: #f9c833;
}

.site-footer-news-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.48);
}

.site-footer-empty,
.site-footer-newsletter-text {
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
}

.site-footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.site-footer-newsletter-input {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid rgba(6, 26, 40, 0.12);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-footer-newsletter-input:focus {
    border-color: #f9c833;
    box-shadow: 0 0 0 3px rgba(249, 200, 51, 0.18);
}

.site-footer-newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #061a28;
    background: linear-gradient(135deg, #f9c833 0%, #f0b429 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(249, 200, 51, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(249, 200, 51, 0.34);
}

.site-footer-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-portal-link:hover {
    color: #f9c833;
}

.site-footer-bottom {
    position: relative;
    z-index: 1;
    padding: 18px 0;
    border-top: 1px solid rgba(249, 200, 51, 0.14);
    background: rgba(0, 0, 0, 0.18);
}

.site-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.site-footer-copyright,
.site-footer-tagline {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.58);
}

.site-footer-copyright a {
    color: #f9c833;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-copyright a:hover {
    color: #ffffff;
}

.site-footer-tagline {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(249, 200, 51, 0.72);
}

@media (max-width: 991px) {
    .site-footer-contact {
        margin-top: 0;
        padding: 36px 0 20px;
    }

    .site-footer-main {
        padding-top: 24px;
    }
}

/* Override legacy template footer rules */
#rs-footer.site-footer > .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1140px;
    box-shadow: none;
}

@media (max-width: 575px) {
    .site-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
