/* =========================================================
   CS Study Corner – shared student site header + footer
   ========================================================= */

/* ---------- Header ---------- */
.hx-nav{
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(90deg, #0b5ed7 0%, #0d6efd 60%, #2b7fff 100%);
    box-shadow: 0 8px 24px -14px rgba(13,110,253,.8);
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.hx-nav-inner{ display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }

.hx-brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.hx-brand:hover{ color: #fff; }
.hx-brand-logo{ flex: none; width: 40px; height: 40px; border-radius: 11px; background: #fff; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.hx-brand-text{ display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hx-brand-name{ font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; line-height: 1.15; }
.hx-brand-tag{ font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

.hx-nav-actions{ display: flex; align-items: center; gap: 8px; flex: none; }
.hx-nav-actions .student-nav-btn{ border-radius: 99px; padding: .38rem .9rem; font-weight: 500; font-size: .875rem; }
.hx-contact{
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .38rem .9rem; border-radius: 99px;
    background: #25d366; color: #fff; text-decoration: none;
    font-size: .875rem; font-weight: 500;
    box-shadow: 0 6px 14px -8px rgba(0,0,0,.5);
    transition: filter .15s ease;
}
.hx-contact:hover{ color: #fff; filter: brightness(1.06); }

/* ---------- Footer ---------- */
.hx-footer{
    margin-top: auto;
    padding: 48px 0 0;
    background: #0b1f44;
    color: rgba(255,255,255,.75);
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.hx-foot-grid{
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 32px;
}
.hx-foot-brand .hx-brand-logo{ width: 44px; height: 44px; }
.hx-foot-brand p{ margin: 14px 0 0; font-size: .88rem; line-height: 1.6; max-width: 340px; }
.hx-foot-col h6{ color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.hx-foot-col ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hx-foot-col a{ color: rgba(255,255,255,.72); text-decoration: none; font-size: .88rem; transition: color .15s ease; }
.hx-foot-col a:hover{ color: #fff; }
.hx-foot-wa{
    display: inline-flex !important; align-items: center; gap: .45rem;
    padding: .5rem .9rem; border-radius: 12px;
    background: rgba(37,211,102,.14); border: 1px solid rgba(37,211,102,.35);
    color: #7ee2a8 !important; font-weight: 500;
}
.hx-foot-wa:hover{ background: #25d366; color: #fff !important; }
.hx-foot-bottom{
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .82rem;
}
.hx-top{ color: rgba(255,255,255,.72); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.hx-top:hover{ color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px){
    .hx-foot-grid{ grid-template-columns: 1fr 1fr 1fr; }
    .hx-foot-brand{ grid-column: 1 / -1; }
}

@media (max-width: 576px){
    .hx-nav-inner{ min-height: 58px; }
    .hx-nav .hx-brand-logo{ width: 36px; height: 36px; border-radius: 10px; }
    .hx-nav .hx-brand-name{ font-size: 1rem; }
    .hx-contact, .hx-nav-actions .student-nav-btn{ padding: .38rem .7rem; }

    .hx-footer{ padding-top: 34px; }
    .hx-foot-grid{ grid-template-columns: 1fr 1fr; gap: 24px; }
    .hx-foot-col:last-child{ grid-column: 1 / -1; }
    .hx-foot-bottom{ justify-content: center; text-align: center; flex-direction: column; gap: 8px; }
}

/* Keep page elements that stick to the top below the sticky header */
.practice-bar{ top: 64px !important; }
@media (min-width: 992px){ .profile-side{ top: 84px !important; } }
@media (max-width: 576px){ .practice-bar{ top: 58px !important; } }
