/*
   Cape Institute of Technology — footer.css
   Footer · Announcement Sidebar
   ──────────────────────────────────────────
   Included on every page via footer.php
   Requires: global.css (variables)
*/

/* ═══════════════════════════════════════════════════════════
   FOOTER — legacy rules (kept for backward compat)
═══════════════════════════════════════════════════════════ */
.footer { background: #040D40; color: var(--text-on-dark); padding-top: 80px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(201,151,58,0.15);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer h3 {
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201,151,58,0.2);
}
.footer ul  { display: flex; flex-direction: column; gap: 11px; }
.footer a   { color: var(--text-on-dark); font-size: 0.92rem; transition: all var(--t-fast); }
.footer a:hover { color: var(--gold-light); padding-left: 6px; }
.footer p   { font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }

.footer .social-links { display: flex; gap: 10px; }
.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-sm);
    color: var(--text-on-dark);
    font-size: 0.9rem;
    transition: all var(--t-fast);
}
.footer .social-links a:hover {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
    padding: 0;
    transform: translateY(-3px);
}

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; line-height: 1.6; }
.contact-info li i { color: var(--gold-light); margin-top: 3px; font-size: 0.85rem; flex-shrink: 0; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom a       { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: var(--gold-light); padding-left: 0; }

/* ═══════════════════════════════════════════════════════════
   FOOTER — new BEM footer (footer.php)
═══════════════════════════════════════════════════════════ */
.footer { background: #1a3a8c; color: #fff; font-family: sans-serif; padding: 3rem 0 0; }
.footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.footer__col h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; color: #fff; }
.footer__divider { border: none; border-top: 2px solid rgba(255,255,255,0.35); margin: 0 0 1.2rem; }

.footer__phone-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 1rem; }
.footer__phone-row span:first-child { font-size: 1.2rem; }
.footer__phone-row span:last-child  { font-size: .875rem; color: rgba(255,255,255,0.9); }

.footer__label { font-weight: 700; font-size: .9rem; margin: 0 0 .5rem; }

.footer__ol { padding-left: 1.1rem; margin: 0 0 1rem; }
.footer__ol li { font-size: .82rem; color: rgba(255,255,255,0.85); margin-bottom: .3rem; }

.footer__social { margin-top: .75rem; }
.footer__social-label { font-weight: 700; font-size: .9rem; margin: 0 0 .75rem; }
.footer__social-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__social-icons a {
    width: 34px; height: 34px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.footer__info-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 1.2rem; }
.footer__info-row .icon { font-size: 1.1rem; flex-shrink: 0; }
.footer__info-row span,
.footer__info-row a { font-size: .875rem; color: rgba(255,255,255,0.9); text-decoration: none; line-height: 1.6; }

.footer__download-title { font-size: 1rem; font-weight: 700; margin: 2rem 0 .5rem; color: #fff; }

.footer__linklist { list-style: none; padding: 0; margin: 0; }
.footer__linklist li { margin-bottom: .45rem; }
.footer__linklist a { font-size: .875rem; color: rgba(255,255,255,0.85); text-decoration: none; transition: color .2s; }
.footer__linklist a:hover { color: #fff; }
.footer__linklist a.highlight { color: #fff; font-weight: 700; }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.footer__bottom p { font-size: .8rem; color: rgba(255,255,255,0.7); }
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bottom-links a { font-size: .8rem; color: rgba(255,255,255,0.7); text-decoration: none; transition: color .2s; }
.footer__bottom-links a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENT SIDEBAR
═══════════════════════════════════════════════════════════ */
.announcement-sidebar {
    position: fixed; top: 0; right: -410px;
    width: 390px; height: 100vh;
    background: white; z-index: 10000;
    box-shadow: -8px 0 32px rgba(2,20,126,0.18);
    transition: right var(--t-slow);
    display: flex; flex-direction: column;
}
.announcement-sidebar.active { right: 0; }

.sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(2,20,126,0.45);
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: all var(--t-fast);
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-header {
    padding: 22px 24px;
    background: var(--primary); color: white;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 3px solid var(--gold);
}
.sidebar-header h3 { color: white; margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.sidebar-header h3 i { color: var(--gold-light); }
.close-sidebar {
    background: transparent; border: none;
    color: rgba(255,255,255,0.7); font-size: 1.3rem;
    cursor: pointer; transition: all var(--t-fast); padding: 4px;
}
.close-sidebar:hover { color: var(--gold-light); transform: rotate(90deg); }

.sidebar-content { padding: 24px; overflow-y: auto; flex-grow: 1; }
.announcement-item { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
.announcement-item.new {
    background: var(--primary-light);
    border-left: 3px solid var(--gold);
    padding: 16px;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    border-bottom: none;
}
.announcement-date { font-size: 0.75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 6px; }
.announcement-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.announcement-item p  { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid  { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer h3  { font-size: 0.74rem; }
    .footer a   { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .footer__bottom { flex-direction: column; align-items: flex-start; }
}