/* Global Styles */
:root {
    --primary-color: #2e7d32; /* Green 800 */
    --secondary-color: #66bb6a; /* Green lighten */
    --dark-color: #2e384d;
    --light-color: #f8f9fc;

    /* Bootstrap overrides */
    --bs-primary: #2e7d32;
    --bs-primary-rgb: 46, 125, 50;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 6rem;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf6 100%);
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%232e7d32" opacity="0.1"/></svg>') repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero-section h1 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-section .lead {
    font-size: 1.2rem;
    color: #666;
    position: relative;
}

/* Achievement Cards */
.achievement-cards {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.achievement-card {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.achievement-card i {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.achievement-card span {
    font-weight: 500;
    white-space: nowrap;
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    padding: 1rem;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
    border: 8px solid #fff;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    border-radius: 15px;
    z-index: 0;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    transition: all 0.3s ease;
    min-width: 140px;
    max-width: 180px;
    animation: float 3s ease-in-out infinite;
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    animation-play-state: paused;
}

.floating-card i {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    white-space: normal;
    line-height: 1.2;
}

.card-top-left {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.card-top-right {
    top: 5%;
    right: 5%;
    animation-delay: 0.5s;
}

.card-bottom-right {
    bottom: 5%;
    right: 5%;
    animation-delay: 1s;
}

/* Abacus Animation */
.abacus-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
}

.abacus-beads {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="2" fill="%232e7d32" opacity="0.2"/></svg>') repeat;
    animation: abacusMove 20s linear infinite;
}

@keyframes abacusMove {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: #256d2c !important; /* darker green */
    border-color: #256d2c !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Text / link helpers */
.text-primary,
.text-primary:hover,
.text-primary:focus {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Dashboard sidebar active state */
.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    color: var(--primary-color) !important;
    border-left: 4px solid var(--primary-color) !important;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color) !important;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-color);
    margin-bottom: 0;
}

/* Footer Styles */
.footer {
    position: relative;
    z-index: 1;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer .social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer ul li a {
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section, .feature-card {
    animation: fadeIn 1s ease-out;
}

/* Video Section */
.video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Custom video controls - removed dark overlay */
.video-container video::-webkit-media-controls {
    background-color: transparent;
}

.video-container video::-webkit-media-controls-panel {
    padding: 0 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        margin: 0 -15px;
        border-radius: 0;
    }
}

/* Action Cards */
.action-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-color);
}

.action-card i {
    color: var(--primary-color) !important;
    transition: transform 0.3s ease;
}

.action-card:hover i {
    transform: scale(1.1);
}

.action-card h3 {
    color: var(--dark-color);
    margin: 1rem 0;
    font-size: 1.5rem;
}

.action-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.action-card .btn {
    transition: all 0.3s ease;
}

.action-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-card {
        margin-bottom: 1rem;
    }
}

/* Course Cards */
.course-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    padding-right: 100px; /* Add space for age group */
}

.age-group {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.age-icon {
    color: var(--primary-color);
    font-size: 1rem;
}

.age-range {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
}

.course-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    min-height: 48px;
}

.course-card .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-icon {
    width: 60px;
    height: 60px;
    background: rgba(78, 115, 223, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.course-card:hover .course-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-card {
        margin-bottom: 1rem;
    }
    
    .age-group {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.3rem 0.8rem;
    }
    
    .age-icon {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .age-range {
        font-size: 0.8rem;
    }
}

/* Courses Timeline */
.courses-timeline {
    position: relative;
    padding: 2rem 0;
}

.courses-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.course-item {
    position: relative;
    margin-bottom: 4rem;
}

.course-item:last-child {
    margin-bottom: 0;
}

.course-content {
    position: relative;
    width: 45%;
    margin-left: auto;
    padding-left: 2rem;
}

.course-item:nth-child(even) .course-content {
    margin-left: 0;
    margin-right: auto;
    padding-left: 0;
    padding-right: 2rem;
}

.age-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    z-index: 2;
}

.course-item:nth-child(even) .age-badge {
    left: auto;
    right: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .courses-timeline::before {
        left: 30px;
    }

    .course-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding-left: 1rem;
    }

    .course-item:nth-child(even) .course-content {
        margin-left: 60px;
        padding-right: 0;
    }

    .age-badge {
        left: 30px;
        transform: translateX(-50%);
    }

    .course-item:nth-child(even) .age-badge {
        left: 30px;
        right: auto;
    }
}

/* Events Section */
.event-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.event-card:hover::before {
    width: 8px;
}

.event-date {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    text-align: center;
    background: rgba(78, 115, 223, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.event-date .month {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.event-date .year {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.event-card:hover .event-date {
    background: var(--primary-color);
}

.event-card:hover .event-date .month,
.event-card:hover .event-date .year {
    color: white;
}

.event-content {
    padding-right: 6rem;
}

.event-content h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.event-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-tags .tag {
    background: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-card:hover .tag {
    background: var(--primary-color);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-card {
        margin-bottom: 1rem;
    }
    
    .event-date {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .event-content {
        padding-right: 0;
    }
}

/* Sticky Social Media Sidebar */
.sticky-social {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sticky-social-item {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.sticky-social-item:hover {
    transform: translateX(-5px);
    color: white;
}

.sticky-social-item:hover::before {
    content: attr(title);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-right: 10px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.sticky-social-item:hover::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-right: 5px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.sticky-social-item:nth-child(1):hover { background: #1877f2; }
.sticky-social-item:nth-child(2):hover { background: #e4405f; }
.sticky-social-item:nth-child(3):hover { background: #ff0000; }
.sticky-social-item:nth-child(4):hover { background: #25d366; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sticky-social {
        right: 10px;
    }
    
    .sticky-social-item {
        width: 40px;
        height: 40px;
    }
    
    .sticky-social-item:hover::before {
        display: none;
    }
    
    .sticky-social-item:hover::after {
        display: none;
    }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.1), rgba(28, 200, 138, 0.1));
    padding: 6rem 0;
}

.about-hero h1 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.about-hero .lead {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-hero img {
    transition: all 0.3s ease;
}

.about-hero img:hover {
    transform: scale(1.02);
}

.what-is, .why-us {
    position: relative;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.card-body p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-hero {
        padding: 4rem 0;
        text-align: center;
    }
    
    .about-hero img {
        margin-top: 2rem;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* About Cards */
.about-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.about-card:hover .about-icon {
    transform: rotateY(180deg);
    background: var(--secondary-color);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-card p {
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Responsive About Cards */
@media (max-width: 768px) {
    .about-card {
        padding: 1.5rem;
    }
    
    .about-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .about-card h3 {
        font-size: 1.25rem;
    }
}

/* Course Detail Cards */
.course-detail-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.course-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.course-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.course-detail-card:hover::before {
    transform: scaleX(1);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.course-detail-card:hover .detail-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

.course-detail-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.course-detail-card ul li {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Benefit Cards */
.benefit-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.benefit-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.benefit-card:hover i {
    transform: scale(1.2);
}

.benefit-card h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark-color);
}

/* Hero Section Enhancements */
.hero-image-container {
    position: relative;
    padding: 1rem;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
    border: 8px solid #fff;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    border-radius: 15px;
    z-index: 0;
}

.floating-card {
    position: absolute;
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    transition: all 0.3s ease;
    min-width: 140px;
    max-width: 180px;
    animation: float 3s ease-in-out infinite;
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    animation-play-state: paused;
}

.floating-card i {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    white-space: normal;
    line-height: 1.2;
}

.card-top-left {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.card-top-right {
    top: 5%;
    right: 5%;
    animation-delay: 0.5s;
}

.card-bottom-right {
    bottom: 5%;
    right: 5%;
    animation-delay: 1s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .floating-card {
        padding: 0.5rem 1rem;
        min-width: 120px;
        max-width: 160px;
    }
    
    .floating-card i {
        font-size: 1rem;
        width: 20px;
    }
    
    .floating-card span {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .floating-card {
        padding: 0.4rem 0.8rem;
        min-width: 110px;
        max-width: 140px;
    }
    
    .floating-card i {
        font-size: 0.9rem;
        width: 18px;
    }
    
    .floating-card span {
        font-size: 0.75rem;
    }
}

/* Junior Abacus Page Styles */
.benefits-section .benefit-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.benefits-section .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.benefits-section .benefit-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.benefits-section .benefit-card:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.benefits-section .benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.benefits-section .benefit-card p {
    color: var(--text-color);
    margin-bottom: 0;
}

.enrollment-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.enrollment-section .section-title {
    color: #fff;
    margin-bottom: 1.5rem;
}

.enrollment-section .lead {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.enrollment-section .btn-primary {
    background: #fff;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.enrollment-section .btn-primary:hover {
    background: var(--dark-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .feature-card,
    .benefits-section .benefit-card {
        padding: 1.5rem;
    }

    .feature-card i,
    .benefits-section .benefit-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .feature-card h3,
    .benefits-section .benefit-card h3 {
        font-size: 1.1rem;
    }

    .enrollment-section {
        padding: 3rem 0;
    }

    .enrollment-section .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* --- Additional green overrides for components that were hard-coded --- */
.step.active,
.step-connector.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.stat-icon.bg-primary,
.stat-icon .text-primary,
.text-primary {
    color: var(--primary-color) !important;
}

.stat-icon.bg-primary {
    background-color: rgba(46, 125, 50, 0.1) !important;
}

/* Links styled with explicit blue hex */
a[href],
button {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Fallback override for any inline styles that still use the old blue hex */
*[style*="#0d6efd"] {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
}

.coming-soon-icon,
.feature-card i,
.step.active,
.feature-card:hover i {
    color: var(--primary-color) !important;
}

/* Quiz component overrides */
.question-number {
    background: var(--primary-color) !important;
}

.option-item:hover {
    border-color: var(--primary-color) !important;
}
.option-item.selected {
    border-color: var(--primary-color) !important;
    background: #e8f5e9 !important; /* light green */
}
.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    accent-color: var(--primary-color) !important;
}

.progress-fill {
    background: var(--primary-color) !important;
} 