/* =========================================
   AFRICON UNIVERSITY — Global Stylesheet
   ========================================= */

/* Google Fonts loaded in HTML */
html { scroll-behavior: smooth; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #1e3a8a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1e40af; }

/* ---- Navigation ---- */
.glass-nav {
    background: #1e3a8a;
    border-bottom: 3px solid #d97706;
}
.nav-link {
    position: relative;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: #d97706;
    transition: width 0.25s ease;
    border-radius: 2px;
}
.nav-link:hover { color: #ffffff; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #ffffff; font-weight: 700; }
.nav-link.active::after { width: 100%; }

/* ---- Hero ---- */
.hero-pattern {
    background-image: radial-gradient(#1e3a8a 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.07;
}

/* ---- Gradient text ---- */
.gradient-text {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 60%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Cards ---- */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -8px rgba(30, 58, 138, 0.12);
}

/* ---- Float animation ---- */
.animate-float {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-18px); }
    100% { transform: translateY(0px); }
}

/* ---- Blob blobs ---- */
@keyframes blob {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(20px, -30px) scale(1.1); }
    66%  { transform: translate(-15px, 15px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob { animation: blob 8s infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* ---- Tabs ---- */
.tab-active {
    border-bottom: 3px solid #d97706;
    color: #1e3a8a !important;
    font-weight: 700;
}

/* ---- Section divider ---- */
.section-label {
    display: inline-block;
    padding: 4px 14px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    margin-bottom: 12px;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #1e3a8a;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(30,58,138,0.25);
}
.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,58,138,0.3);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #1e3a8a;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #1e3a8a;
    transition: background 0.2s, transform 0.15s;
}
.btn-secondary:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #d97706;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(217,119,6,0.3);
}
.btn-gold:hover {
    background: #b45309;
    transform: translateY(-2px);
}

/* ---- Page banner ---- */
.page-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ---- Accordion ---- */
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-content.open { max-height: 500px; }
.accordion-arrow { transition: transform 0.3s ease; }
.accordion-arrow.open { transform: rotate(180deg); }

/* ---- Timeline ---- */
.timeline-item { position: relative; padding-left: 36px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px; top: 6px; bottom: -24px;
    width: 2px;
    background: #bfdbfe;
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
    position: absolute;
    left: 0; top: 4px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #1e3a8a;
    border: 3px solid #bfdbfe;
}

/* ---- Form inputs ---- */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}

/* ---- Stats band ---- */
.stats-band { background: linear-gradient(135deg, #1e3a8a, #1e40af); }

/* ---- Footer ---- */
footer a:hover { color: #d97706; }

/* ---- Responsive utils ---- */
@media (max-width: 768px) {
    .page-banner h1 { font-size: 2rem; }
}
