/* ============================================================
   NAMILYANGO COLLEGE — FOOTER STYLES
   Covers: footer grid, logo, links, contact, newsletter,
           map, copyright, back-to-top, whatsapp float
   ============================================================ */

/* ---------- FOOTER WRAPPER ---------- */
.footer {
    background: linear-gradient(160deg, #051e3e 0%, #00274c 60%, #0a3560 100%);
    color: #ffffff;
    padding: 64px 0 0;
    font-family: 'Fira Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Top gold accent line */
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f2cb3f 0%, #e67e22 50%, #f2cb3f 100%);
}

/* Decorative background circles */
.footer::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242,203,63,0.04) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}

/* ---------- GRID ---------- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.1fr 1.2fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2.5rem;
    position: relative;
    z-index: 1;
}

/* ---------- SHARED COLUMN HEADING ---------- */
.footer-col-title {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1.2rem;
    padding-bottom: 0.65rem;
    position: relative;
}
.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 2px;
    background: #f2cb3f;
    border-radius: 2px;
}

/* ---------- LOGO COLUMN ---------- */
.footer-logo-col { display: flex; flex-direction: column; }

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}
.footer-logo-wrap img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.footer-logo-wrap img:hover { transform: scale(1.05); }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand-name {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}
.footer-brand-year { font-size: 0.72rem; color: rgba(255,255,255,0.55); }

.footer-tagline {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.social-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-btn:hover {
    transform: translateY(-3px);
    color: #00274c;
}
.social-btn.fb:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-btn.tw:hover  { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.social-btn.ig:hover  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; color: #fff; }
.social-btn.yt:hover  { background: #ff0000; border-color: #ff0000; color: #fff; }

/* ---------- QUICK LINKS COLUMN ---------- */
.footer-links-list { display: flex; flex-direction: column; gap: 0.1rem; }
.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all 0.25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.footer-link i {
    font-size: 0.65rem;
    color: #f2cb3f;
    width: 12px;
    transition: transform 0.25s ease;
}
.footer-link:hover {
    color: #f2cb3f;
    padding-left: 6px;
}
.footer-link:hover i { transform: translateX(3px); }

/* ---------- CONTACT COLUMN ---------- */
.footer-contact-list { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}
.footer-contact-icon {
    width: 32px; height: 32px;
    background: rgba(242,203,63,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #f2cb3f;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    margin-top: 1px;
}
.footer-contact-item:hover .footer-contact-icon {
    background: #f2cb3f;
    color: #00274c;
    transform: rotate(10deg);
}

/* ---------- NEWSLETTER COLUMN ---------- */
.footer-newsletter-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.newsletter-form input {
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 0.87rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus {
    border-color: #f2cb3f;
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(242,203,63,0.15);
}
.newsletter-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1rem;
    background: #f2cb3f;
    color: #00274c;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.87rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.newsletter-form button:hover {
    background: #d4a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(242,203,63,0.3);
}

/* ---------- MAP ---------- */
.footer-map-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    position: relative;
    z-index: 1;
}
.footer-map-section iframe {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 10px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    display: block;
}
.footer-map-section iframe:hover { opacity: 1; }

/* ---------- DIVIDER ---------- */
.footer-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- COPYRIGHT BAR ---------- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1;
}
.footer-copyright {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.footer-copyright a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-copyright a:hover { color: #f2cb3f; }
.footer-bottom-links {
    display: flex;
    gap: 1.2rem;
}
.footer-bottom-links a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-bottom-links a:hover { color: #f2cb3f; }

/* ---------- BACK TO TOP BUTTON ---------- */
#backToTop {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #00274c;
    color: #ffffff;
    border: 2px solid #f2cb3f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 900;
}
#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTop:hover {
    background: #f2cb3f;
    color: #00274c;
    transform: translateY(-3px);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    z-index: 900;
    text-decoration: none;
}
.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1) translateY(-2px);
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}

/* Pulse animation on WhatsApp button */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: rgba(37,211,102,0.4);
    animation: waPulse 2.5s ease infinite;
}
@keyframes waPulse {
    0%   { transform: scale(1); opacity: 0.7; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-logo-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .footer { padding-top: 48px; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-logo-col { grid-column: auto; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .footer-socials { justify-content: flex-start; }
}
