/* ==============================
   VISELE Public Website Styles
   ============================== */

:root {
    --primary: #343A52;
    --secondary: #565f7f;
    --primary-light: #414968;
    --accent: #C9A227;          /* Gold accent */
    --accent-light: #f0d97a;
    --accent-dark: #a07a15;
    --white: #ffffff;
    --light-bg: #f5f6fa;
    --text-muted: #6c757d;
    --border-light: #e8eaed;
    --shadow-sm: 0 2px 12px rgba(52,58,82,0.08);
    --shadow-md: 0 6px 24px rgba(52,58,82,0.13);
    --shadow-lg: 0 12px 40px rgba(52,58,82,0.18);
    --radius: 10px;
    --radius-lg: 16px;
}

/* ---- General ---- */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.7;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

/* ---- Navbar ---- */
.navbar-public {
    background-color: var(--primary);
    padding: 0.7rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    z-index: 9999;
    border-bottom: 3px solid var(--accent);
}

.navbar-public .navbar-brand img {
    height: 52px;
    width: auto;
}

.navbar-public .navbar-brand .brand-text {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    max-width: 220px;
    font-family: 'Nunito', sans-serif;
}

.navbar-public .navbar-brand .brand-text span {
    color: var(--accent-light);
    font-weight: 400;
    font-size: 0.78rem;
    display: block;
    letter-spacing: 0.02em;
}

.navbar-public .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem !important;
    transition: color 0.2s;
}

.navbar-public .nav-link:hover,
.navbar-public .nav-link.active {
    color: #fff !important;
}

.navbar-public .nav-link.active {
    position: relative;
}

.navbar-public .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.9rem;
    right: 0.9rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.navbar-public .dropdown-menu {
    background-color: var(--primary-light);
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-top: 0;
}

.navbar-public .dropdown-item {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    padding: 0.5rem 1.2rem;
}

.navbar-public .dropdown-item:hover {
    background-color: var(--secondary);
    color: #fff;
}

.navbar-public .btn-portal {
    background-color: var(--accent);
    color: var(--primary) !important;
    font-weight: 700;
    border-radius: 6px;
    padding: 0.4rem 1.1rem !important;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.navbar-public .btn-portal:hover {
    background-color: var(--accent-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.4);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Page Header Banner ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 4rem 0 2.5rem;
    margin-top: 0;
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
}

.page-hero .breadcrumb-item.active {
    color: #fff;
}

.page-hero .breadcrumb-divider-color { color: rgba(255,255,255,0.5); }

/* ---- Hero Carousel ---- */
#heroCarousel {
    margin-top: 0;
}

#heroCarousel .carousel-item {
    height: 92vh;
    min-height: 540px;
    max-height: 860px;
    position: relative;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#heroCarousel .carousel-caption-custom {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        105deg,
        rgba(52,58,82,0.92) 0%,
        rgba(52,58,82,0.65) 55%,
        rgba(52,58,82,0.15) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 8% 2rem 10%;
    color: #fff;
}

.hero-eyebrow {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

#heroCarousel .carousel-caption-custom h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.18;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    font-family: 'Nunito', sans-serif;
    max-width: 680px;
}

#heroCarousel .carousel-caption-custom p {
    font-size: 1.1rem;
    max-width: 580px;
    margin-top: 1rem;
    opacity: 0.88;
    line-height: 1.65;
}

.hero-cta-row {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

#heroCarousel .carousel-caption-custom .btn-hero {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    border: none;
    transition: all 0.22s;
    display: inline-block;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(201,162,39,0.35);
}

#heroCarousel .carousel-caption-custom .btn-hero:hover {
    background-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,162,39,0.5);
}

/* Scroll indicator dot at bottom of hero */
#heroCarousel::after {
    content: '';
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    z-index: 10;
}

#heroCarousel::before {
    content: '';
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    z-index: 11;
    animation: scroll-hint 1.8s ease infinite;
}

@keyframes scroll-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

/* ---- Section styles ---- */
section {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title .section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
    font-family: 'Nunito', sans-serif;
    line-height: 1.25;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 3.5px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

/* ---- Quick Facts Bar ---- */
.quick-facts {
    background: linear-gradient(90deg, var(--primary) 0%, #2a3049 100%);
    color: #fff;
    padding: 1.2rem 0;
    border-top: 2px solid var(--accent);
}

.quick-facts .fact-item {
    text-align: center;
    padding: 0.6rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.quick-facts .fact-item:last-child {
    border-right: none;
}

.quick-facts .fact-item i {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
    color: var(--accent);
    display: block;
}

.quick-facts .fact-item span {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

/* ---- Programme Cards ---- */
.programme-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s, box-shadow 0.28s;
    overflow: hidden;
    height: 100%;
}

.programme-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

.programme-card .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1.1rem 1.4rem;
    border: none;
    position: relative;
}

.programme-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.programme-card .card-body {
    padding: 1.4rem;
}

.programme-card .card-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
}

.programme-card .badge-level {
    background-color: var(--accent);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.programme-card .btn-programme {
    background-color: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.45rem 1.2rem;
    border: none;
    border-radius: 5px;
    transition: all 0.2s;
    display: inline-block;
}

.programme-card .btn-programme:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-1px);
}

/* ---- Gallery / Facility images ---- */
.facility-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.facility-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.facility-img:hover img {
    transform: scale(1.06);
}

.facility-img .facility-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(52,58,82,0.85) 0%, transparent 100%);
    color: #fff;
    padding: 1.5rem 1rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.facility-img:hover .facility-caption {
    opacity: 1;
}

/* ---- About section snippet ---- */
.about-snippet img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ---- Contact info card ---- */
.contact-info-card {
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    background: var(--light-bg);
    padding: 1.5rem;
}

.contact-info-card .contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.contact-info-card .contact-row i {
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Admissions steps ---- */
.admission-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.admission-step .step-number {
    background-color: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.admission-step .step-body h6 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

/* ---- Footer ---- */
.footer-public {
    background: linear-gradient(180deg, #252c42 0%, var(--primary) 100%);
    color: rgba(255,255,255,0.82);
    padding: 4rem 0 0;
    border-top: 3px solid var(--accent);
}

.footer-public h5 {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-public p,
.footer-public li,
.footer-public a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.78);
}

.footer-public a:hover {
    color: #fff;
}

.footer-public ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-public ul li {
    padding: 0.2rem 0;
}

.footer-public ul li i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

.footer-public .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-right: 0.4rem;
    transition: background 0.2s;
}

.footer-public .social-links a:hover {
    background-color: rgba(255,255,255,0.25);
    color: #fff;
}

.footer-public .footer-bottom {
    background-color: rgba(0,0,0,0.15);
    margin-top: 2rem;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    #heroCarousel .carousel-item {
        height: 360px;
    }

    #heroCarousel .carousel-caption-custom h2 {
        font-size: 1.5rem;
    }

    #heroCarousel .carousel-caption-custom p {
        font-size: 0.9rem;
    }

    .page-hero {
        padding: 3rem 0 1.5rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 2.5rem 0;
    }
}

/* ============================================================
   PRO UI ENHANCEMENTS
   ============================================================ */

/* ---- Announcement Bar ---- */
.announcement-bar {
    background: #b91c1c;
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 1rem;
    z-index: 10000;
    position: relative;
    letter-spacing: 0.02em;
}

.announcement-bar a {
    color: #fde68a;
    text-decoration: underline;
}

/* ---- Navbar Scroll Shrink ---- */
.navbar-scrolled {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}

.navbar-public {
    transition: padding 0.3s, box-shadow 0.3s;
}

/* ---- Hero dual CTA ---- */
.btn-hero-outline {
    margin-top: 1.5rem;
    margin-left: 0.75rem;
    background-color: transparent;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.8);
    transition: all 0.2s;
    display: inline-block;
}

.btn-hero-outline:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}

/* ---- Stats Counter Section ---- */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #252c42 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #fff;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

.stat-item:last-child::after { display: none; }

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    display: block;
    font-family: 'Nunito', sans-serif;
}

.stat-item .stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Nunito', sans-serif;
}

.stat-item .stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.5rem;
    display: block;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-item .stat-icon {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.25);
    margin-bottom: 0.6rem;
    display: block;
}

/* ---- Why Choose Us ---- */
.why-card {
    background: #fff;
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-sm);
    padding: 2.2rem 1.75rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.28s, box-shadow 0.28s;
    height: 100%;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent);
    transition: height 0.25s;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.why-card:hover::before {
    height: 6px;
}

.why-card .why-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    background: #f0f2f8;
    transition: background 0.25s;
}

.why-card:hover .why-icon-wrap {
    background: var(--accent);
}

.why-card .why-icon-wrap .why-icon {
    font-size: 1.8rem;
    color: var(--primary);
    transition: color 0.25s;
}

.why-card:hover .why-icon-wrap .why-icon {
    color: var(--primary);
}

.why-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.65rem;
    font-family: 'Nunito', sans-serif;
}

.why-card p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.65;
}

/* Accent color variants */
.why-card.accent-1::before { background: #2563eb; }
.why-card.accent-1 .why-icon { color: #2563eb; }
.why-card.accent-2::before { background: #059669; }
.why-card.accent-2 .why-icon { color: #059669; }
.why-card.accent-3::before { background: #d97706; }
.why-card.accent-3 .why-icon { color: #d97706; }
.why-card.accent-4::before { background: #7c3aed; }
.why-card.accent-4 .why-icon { color: #7c3aed; }
.why-card.accent-5::before { background: #dc2626; }
.why-card.accent-5 .why-icon { color: #dc2626; }
.why-card.accent-6::before { background: #0891b2; }
.why-card.accent-6 .why-icon { color: #0891b2; }

/* ---- Testimonials ---- */
.testimonial-section {
    background: #f0f2f5;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-card .quote-mark {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.12;
    position: absolute;
    top: -0.5rem;
    left: 1.2rem;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-card .stars {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.testimonial-card p.quote-text {
    font-style: italic;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-card .avatar-area {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.testimonial-card .avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-card .avatar-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.testimonial-card .avatar-meta {
    font-size: 0.8rem;
    color: #888;
}

/* ---- Accreditation Strip ---- */
.accreditation-strip {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
}

.accred-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.accred-badge .accred-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.accred-badge .accred-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.accred-badge .accred-text span {
    font-size: 0.8rem;
    color: #666;
}

/* ---- News Cards ---- */
.news-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}

.news-card .news-img-wrap {
    position: relative;
    overflow: hidden;
}

.news-card .news-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.35s;
    display: block;
}

.news-card:hover .news-img-wrap img {
    transform: scale(1.06);
}

.news-card .news-date-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}

.news-card .card-body {
    padding: 1.25rem;
}

.news-card .news-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.news-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.news-card .card-text {
    font-size: 0.875rem;
    color: #666;
}

/* ---- Floating Apply Now Button ---- */
@keyframes pulse-ring {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(185,28,28,0.5); }
    70%  { transform: scale(1.03); box-shadow: 0 0 0 14px rgba(185,28,28,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(185,28,28,0); }
}

.floating-apply-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9998;
    background: #b91c1c;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(185,28,28,0.45);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse-ring 2.2s ease infinite;
    transition: background 0.2s, transform 0.2s;
}

.floating-apply-btn:hover {
    background: #991b1b;
    color: #fff !important;
    animation: none;
    transform: scale(1.05);
}

.floating-apply-btn i {
    font-size: 1rem;
}

/* ---- Apply Portal Pages ---- */

/* Progress bar */
.apply-progress {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0;
}

.apply-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.apply-step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.apply-step-indicator.done:not(:last-child)::after,
.apply-step-indicator.active:not(:last-child)::after {
    background: var(--primary);
}

.step-bubble {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #aaa;
    z-index: 1;
    position: relative;
    transition: all 0.3s;
}

.apply-step-indicator.active .step-bubble {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.apply-step-indicator.done .step-bubble {
    border-color: #059669;
    background: #059669;
    color: #fff;
}

.step-label {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 0.3rem;
    text-align: center;
    font-weight: 500;
}

.apply-step-indicator.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.apply-step-indicator.done .step-label {
    color: #059669;
}

/* Step panels */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Status badges */
.badge-draft       { background: #6b7280; color: #fff; }
.badge-submitted   { background: #2563eb; color: #fff; }
.badge-under-review{ background: #d97706; color: #fff; }
.badge-accepted    { background: #059669; color: #fff; }
.badge-rejected    { background: #dc2626; color: #fff; }

.status-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    text-transform: capitalize;
}

/* Apply layout */
.apply-navbar {
    background: var(--primary);
    padding: 0.6rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.apply-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Programme radio cards */
.programme-radio-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    height: 100%;
}

.programme-radio-card:hover {
    border-color: var(--secondary);
    background: #f0f4ff;
}

.programme-radio-card input[type="radio"] {
    display: none;
}

.programme-radio-card.selected,
.programme-radio-card input[type="radio"]:checked ~ * {
    border-color: var(--primary);
    background: #eef0f8;
}

.programme-radio-card .level-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

/* Responsive additional */
@media (max-width: 768px) {
    .stat-item .stat-number {
        font-size: 2.2rem;
    }

    .floating-apply-btn {
        bottom: 70px;
        padding: 0.55rem 0.9rem;
        font-size: 0.8rem;
    }

    .apply-progress {
        overflow-x: auto;
    }

    .step-label {
        display: none;
    }
}
