:root {
    --primary: #b0030e; /* Navy Blue */
    --accent: #ffd700;  /* Gold */
    --text: #333;
    --light: #f4f4f4;

}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

/* Top Bar */
.top-bar {
    background: #b0030e;
    background: linear-gradient(159deg, rgb(179, 15, 15) 0%, rgb(247, 72, 72) 100%);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
    width: 20vw;
}

/* Header & Nav */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.container { width: 90%; max-width: 1200px; margin: auto; }
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-links { display: flex; list-style: none; }
.nav-links li { position: relative; padding: 0 15px; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 600; }

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    top: 100%;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content li { padding: 10px; border-bottom: 1px solid #eee; }

/* Mobile Menu */
.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--primary); margin: 5px; }

/* Hero Section */
.hero {
    height: 50vh;
    background: linear-gradient(rgba(0,33,71,0.7), rgba(0,33,71,0.7)), url('/assets/img/corection_IMG_20260121_113522.jpg');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.btn { background: var(--accent); color: var(--primary); padding: 12px 25px; text-decoration: none; border-radius: 5px; font-weight: bold; }

/* Sections */
section { padding: 50px 0; }
.feature-grid, .activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.feature-card { text-align: center; padding: 20px; border: 1px solid #ddd; }
.feature-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }

/* Form */
.enquiry-form { display: flex; flex-direction: column; gap: 15px; max-width: 600px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
    padding: 12px; border: 1px solid #ddd; border-radius: 4px;
}



/* Responsive Styles */
@media (max-width: 768px) {
    .logo{
        width: 60vw;
    }
    .hamburger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
    }
    .nav-links.active { display: flex; }
    .top-bar .container { flex-direction: column; text-align: center; }
    .hero {
    height: 90vh;
    background: linear-gradient(rgba(0,33,71,0.7), rgba(0,33,71,0.7)), url('/assets/img/corection_IMG_20260121_113522.jpg');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
}


/* Soft Dropdown Animation for Desktop */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.dropdown-menu {
    border-radius: 10px;
    padding: 1rem;
    --animate-duration: 0.4s; /* Soft speed */
}

/* Custom Primary Color (Matching your logo) */
:root {
    --bs-primary: #004a99; 
    --bs-warning: #ffcc00;
}

.btn-primary { background-color: var(--bs-primary); border: none; }
.bg-primary { background-color: var(--primary) !important; }

/* Premium Gradient Overlay */
.carousel-item {
    position: relative;
    height: 60vh;
    min-height: 500px;
}

/* This creates the dark-to-transparent fade from left to right */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(0, 33, 71, 0.9) 0%,   /* Deep Navy on the left */
        rgba(0, 33, 71, 0.4) 50%,  /* Softer in the middle */
        rgba(0, 0, 0, 0.1) 100%    /* Nearly clear on the right */
    );
    z-index: 1;
}

/* Ensure content stays above the gradient */
.carousel-item .container {
    position: relative;
    z-index: 2;
}

/* Extra text pop */
.premium-shadow {
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

/* Import a premium font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.navbar {
    padding: 0.8rem 0; /* Vertical breathing room */
}

.navbar-brand img {
    max-height: 70px; /* Ensures logo doesn't crowd the nav */
    transition: transform 0.3s ease;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;      /* Not too big, not too small */
    font-weight: 500;        /* Medium weight is more readable than bold */
    color: #002147 !important; /* Deep Navy */
    text-transform: uppercase;
    letter-spacing: 0.5px;   /* Adds "air" between letters */
    padding: 0.5rem 1.2rem !important; /* Balanced horizontal spacing */
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffcc00 !important; /* Gold hover */
}

/* Active link indicator */
.nav-link.active {
    color: #004a99 !important;
    position: relative;
}

/* Vertical alignment fix for the Enquiry Button */
.nav-btn-custom {
    background-color: #004a99;
    color: white !important;
    border-radius: 50px; /* Pill shape for premium look */
    padding: 8px 25px !important;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.2);
}

/* Premium CTA Button */
.btn-premium {
    background-color: #002147 !important; /* Deep Navy Background */
    color: #ffffff !important;           /* White Text */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px !important;
    border-radius: 50px;
    border: 2px solid #002147;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-premium:hover {
    background-color: #ffd700 !important; /* Yellow */
    color: #000000 !important;           /* Black */
    border-color: #ffd700;
    transform: translateY(-2px);         /* Subtle lift */
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Add a subtle shine effect */
.btn-premium {
    position: relative;
    overflow: hidden;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: 0.5s;
}

.stat-box h2 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #002147, #004a99);
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}

.stat-box p {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #6c757d;
    margin-top: -5px;
}

.activity-card {
    transition: transform 0.3s ease;
    cursor: default;
}

.activity-card:hover {
    transform: translateY(-5px);
    background-color: #f8f9fa !important;
}


/* Event Card Container */
.event-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
}

/* Floating Date Badge */
.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 12px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-date-badge .day { font-size: 1.4rem; font-weight: 800; color: #002147; line-height: 1; }
.event-date-badge .month { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: #ffcc00; }

/* Image Gallery Wrapper */
.event-image-wrapper {
    position: relative;
    height: 220px;
}

.event-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Event Content */
.event-body {
    padding: 20px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #002147;
    margin-bottom: 10px;
}

.view-event-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #004a99;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.view-event-link:hover { gap: 10px; color: #ffcc00; }


/* Event Card Styles */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* Floating Date Tag */
.event-date-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffd700; /* Gold */
    color: #002147;     /* Navy */
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    z-index: 5;
    line-height: 1;
    min-width: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-view-event {
    color: #004a99;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.btn-view-event:hover {
    color: #ffd700;
}

.btn-view-event i {
    transition: transform 0.3s ease;
}

.btn-view-event:hover i {
    transform: translateX(5px);
}

/* Gallery Mosaic Styling */
.gallery-item {
    position: relative;
    cursor: pointer;
    background: #eee;
}

.gallery-item.main-img { height: 320px; }
.gallery-item.side-img { height: 152px; }
.gallery-item.bottom-img { height: 180px; }

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Elegant Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,33,71,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.hero-images img {
  transition: transform 0.3s ease;
}

.hero-images img:hover {
  transform: scale(1.02);
  z-index: 10;
}

.card:hover {
    transform: translateY(-10px);
    transition: 0.3s ease;
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.achiever-img-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
}

.achiever-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.medal-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #ffd700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002147;
    font-size: 1.2rem;
    border: 3px solid #fff;
}


/* Achiever Card Container */

.achievers-celebration-bg {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, rgba(248, 249, 250, 1) 70%);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l2 10 10 2-10 2-2 10-2-10-10-2 10-2z' fill='%23ffd700' fill-opacity='0.05'/%3E%3C/svg%3E");
    position: relative;
    overflow: hidden;
}

.achiever-card {
    background: #f7fbfd;
    transition: all 0.4s ease;
    border-top: 5px solid transparent;
}

.student-name{
    font-size: 1.2rem;
    font-weight: 600;
    color: #5b5e65;
}

.achiever-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-top: 5px solid #ffcc00;
}

/* Image Container */
.achiever-img-container img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border: 4px solid #fff;
    outline: 2px solid #f0f0f0;
}

/* Rank Ribbon Styles */
.rank-badge {
    position: absolute;
    top: 15px;
    right: -10px;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    border-radius: 5px 0 0 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.first-place {
    /* Use 'background' or 'background-image' with the linear-gradient function */
    background: linear-gradient(180deg, #d19e1d 0%, #ffd86e 50%, #e3a812 100%);
    color: #000; /* Ensures text is readable on gold */
    font-weight: bold;
} /* Gold */
.first-place {
    background: linear-gradient(180deg, #d19e1d 0%, #ffd86e 50%, #e3a812 100%);
    color: #3b2a00 !important; /* Deep brown text looks more premium on gold than pure black */
    box-shadow: 0 4px 10px rgba(209, 158, 29, 0.4), inset 0 0 5px rgba(255, 255, 255, 0.5);
    border: 1px solid #b38615;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.second-place {
    background: linear-gradient(180deg, #959595 0%, #e0e0e0 50%, #808080 100%);
    color: #333 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #a5a4a4;
}

.third-place {
    /* Bronze Gradient: Deep Copper to Light Bronze to Darker Bronze */
    background: linear-gradient(180deg, #a0522d 0%, #cd7f32 50%, #8b4513 100%);
    color: #ffffff !important; /* White text looks better on darker bronze */
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.4), inset 0 0 5px rgba(255, 255, 255, 0.3);
    border: 1px solid #7a3a10;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sport Category Tag */
.sport-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
}

.achievers-celebration-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Subtle sparkles/confetti using a repeating radial gradient */
    background-image: radial-gradient(#ffd700 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
    pointer-events: none;
}

.achiever-card {
    position: relative;
    overflow: hidden; /* Important for the shine effect */
}

.achiever-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.achiever-card:hover::after {
    left: 100%; /* Makes a 'light beam' pass over the card on hover */
}
.bg-primary-light { background-color: rgba(0, 74, 153, 0.1); }
.bg-warning-light { background-color: rgba(255, 204, 0, 0.2); }


.committee-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.committee-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.committee-header {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.x-small {
    font-size: 0.75rem;
    font-style: italic;
}

/* Floating Container */
/* Premium Floating Visit Button Fix */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Keeps buttons aligned to the right */
    gap: 15px;
    z-index: 9999;
}

.visit-btn {
    background: linear-gradient(135deg, #002147 0%, #004a99 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: auto; /* Fixes the 'broken' narrow look */
    min-width: 160px; /* Ensures enough space for text */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.visit-btn i {
    font-size: 20px;
}

.visit-text {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap; /* Prevents text from breaking into lines */
}

.visit-btn:hover {
    background: #ffcc00;
    color: #002147 !important;
    transform: scale(1.05);
}

/* Container to stack buttons neatly */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 1000;
}

/* Base style for both buttons */
.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Call Button Improvement */
.call-btn {
    width: 50px;
    height: 50px;
    background: #004a99;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    border: 2px solid rgba(255,255,255,0.2);
}

/* School Visit Button - Professional & Wide */
.visit-btn {
    background: #ffcc00; /* Gold to match school theme */
    color: #002147;
    padding: 12px 24px;
    border-radius: 50px;
    min-width: 180px; /* Fixes the 'broken' look */
    border: 1px solid #d19e1d;
}

.visit-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.visit-text {
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Hover Effects */
.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.visit-btn:hover {
    background: #002147;
    color: #ffcc00 !important;
}

/* Pulsing animation for the icon */
.pulse-container {
    animation: pulse-green 2s infinite;
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

/* Custom entrance for the toast */
#visitToast.showing {
    animation: slide-in-blurred-right 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

@keyframes slide-in-blurred-right {
    0% { transform: translateX(1000px) scaleX(2.5) scaleY(0.2); filter: blur(40px); opacity: 0; }
    100% { transform: translateX(0) scaleX(1) scaleY(1); filter: blur(0); opacity: 1; }
}

.about-hero {
    height: 200px;
    /* Using a professional deep blue gradient to match your primary brand */
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle animation tweak: slows down the fadeInUp for a more "professional" feel */
.animate__fadeInUp {
    animation-duration: 1.2s;
}

.about-hero h1 {
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-hero .lead {
    font-size: 1.1rem;
    font-weight: 300;
}


.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.event-hero-section {
    /* Professional Deep Blue Gradient */
    background: linear-gradient(135deg, #0d6efd 0%, #052c65 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern overlay */
.event-hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.event-hero-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.3);
    content: "/";
}

.ls-1 { letter-spacing: 1px; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .event-hero-section h1 {
        font-size: 2rem; /* Keeps title from taking over mobile screen */
    }
    .event-hero-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* Overlap the Hero Section */
.mt-n5 {
    margin-top: -80px !important;
}

/* Hover Effects for Gallery */
.main-event-img {
    transition: transform 0.5s ease;
}

.thumb-container {
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-container:hover {
    transform: translateY(-5px);
}

.gallery-thumb {
    transition: opacity 0.3s ease;
}

.thumb-container:hover .gallery-thumb {
    filter: brightness(1.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .mt-n5 {
        margin-top: -40px !important;
    }
    .glass-card {
        padding: 15px !important;
        border-radius: 15px;
    }
}

/* Special Achiever Card Styling */
.achiever-card-special {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.achiever-card-special:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Winner Ribbon - Index Style */
.winner-ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background: linear-gradient(45deg, #f39c12, #f1c40f);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 15px;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Avatar Styling */
.student-avatar-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 5px;
    border: 3px solid #eee;
    transition: all 0.3s ease;
}

.student-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.student-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
}

.activity-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.event-title {
    font-size: 0.85rem;
    height: 40px; /* Ensures alignment across cards */
    display: flex;
    align-items: center;
    justify-content: center;
}

.achiever-card-premium {
    background: #ffffff;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Light side/bottom borders */
}

.achiever-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.category-label {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
    z-index: 5;
}

.avatar-ring {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    padding: 4px;
    border: 3px solid;
    border-radius: 50%;
    background: white;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.achievement-details-box {
    border: 1px dashed rgba(0,0,0,0.1);
}

/* Ensure hidden items don't take up space */
.achiever-item[style*="display: none"] {
    display: none !important;
}

/* Smooth entry animation */
.animate__fadeIn {
    animation-duration: 0.5s;
}

/* Ensure filter buttons look clickable */
.btn-glass {
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-bottom {
    pointer-events: none; /* Allows clicking behind the container */
}

.fixed-bottom .btn {
    pointer-events: auto; /* Re-enables clicking on the buttons themselves */
}

.btn-view-all {
    background: rgb(0, 0, 0);
    color: #0d6efd;
    border: 2px solid #0d6efd;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-view-all:hover {
    background: #0d6efd;
    color: #002147 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3) !important;
}

.btn-view-all i {
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

.ls-1 {
    letter-spacing: 1px;
}

/* Styling for the Home Page Achievers */
.achiever-card-premium {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.achiever-card-premium:hover {
    transform: translateY(-10px);
}

.winner-ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background: linear-gradient(45deg, #f39c12, #f1c40f);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 15px;
    border-radius: 5px 0 0 5px;
    z-index: 2;
}

.avatar-ring {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border: 3px solid;
    padding: 4px;
    border-radius: 50%;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* View All Button */
.btn-view-all {
    background: white;
    color: #0d6efd;
    border: 2px solid #0d6efd;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #0d6efd;
    color: white !important;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}