/* 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: 80px;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf6 100%);
    min-height: auto;
    display: block;
    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;
    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 .ratio {
    border-radius: 1rem;
}

.video-container iframe {
    border-radius: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .achievement-cards {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .achievement-card {
        width: 100%;
        justify-content: center;
    }
    
    .video-container {
        margin: 0;
        border-radius: 0.5rem;
    }
    
    .video-container .ratio,
    .video-container iframe {
        border-radius: 0.5rem;
    }
    
    /* Section titles */
    .section-title,
    h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle,
    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .section-title,
    h2 {
        font-size: 1.5rem;
    }
    
    .section-subtitle,
    .lead {
        font-size: 0.9rem;
    }
}

/* 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 */
    margin-top: 60px; /* Add space to avoid overlap with 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;
    max-width: 200px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}





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

.age-range {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    white-space: normal;
    line-height: 1.2;
    max-width: 180px;
    text-align: center;
}

/* Smaller font for Teacher Training card specifically */
.teacher-training-age {
    font-size: 0.8rem;
}

.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;
    }
    
    .course-card h3 {
        margin-top: 50px; /* Slightly less space on mobile */
    }
    
    .age-group {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.3rem 0.8rem;
    }
    

    

    
    .age-icon {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .age-group {
        max-width: 180px;
        padding: 0.4rem 0.8rem;
    }
    
    .age-range {
        font-size: 0.8rem;
        max-width: 160px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .age-group {
        padding: 0.3rem 0.7rem;
        max-width: 140px;
    }
    
    .age-range {
        font-size: 0.7rem;
        max-width: 120px;
    }
    
    .age-icon {
        font-size: 0.7rem;
    }
    
    .course-card h3 {
        margin-top: 45px; /* Even less space on very small screens */
    }
}

/* 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);
}

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

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

.contact-card i {
    transition: transform 0.3s ease;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-hero {
        padding: 4rem 0;
        text-align: center;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-hero .lead {
        font-size: 1rem;
    }
    
    .about-hero img {
        margin-top: 2rem;
    }
    
    .about-hero .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .about-hero .btn {
        width: 100%;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .contact-card {
        margin-bottom: 1rem;
    }
    
    .hero-image-container {
        margin-top: 2rem;
    }
    
    .floating-card {
        padding: 0.5rem 1rem;
        min-width: 100px;
        max-width: 140px;
        font-size: 0.85rem;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    .floating-card span {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .about-hero {
        padding: 3rem 0;
    }
    
    .about-hero h1 {
        font-size: 1.75rem;
    }
    
    .about-hero .lead {
        font-size: 0.95rem;
    }
    
    .about-hero .btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .section-title,
    h2 {
        font-size: 1.5rem;
    }
    
    .about-card h3,
    .contact-card h3 {
        font-size: 1.25rem;
    }
    
    .about-card p,
    .contact-card p {
        font-size: 0.95rem;
    }
    
    .floating-card {
        padding: 0.4rem 0.8rem;
        min-width: 90px;
        max-width: 120px;
    }
    
    .floating-card i {
        font-size: 0.9rem;
    }
    
    .floating-card span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 2.5rem 0;
    }
    
    .about-hero h1 {
        font-size: 1.5rem;
    }
    
    .about-hero .lead {
        font-size: 0.9rem;
    }
    
    .section-title,
    h2 {
        font-size: 1.35rem;
    }
    
    .about-card,
    .contact-card {
        padding: 1.5rem !important;
    }
    
    .about-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .about-icon i {
        font-size: 1.5rem;
    }
    
    .contact-card i {
        font-size: 2.5rem !important;
    }
}

/* 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;
}

/* Course Pages Mobile Responsive */
@media (max-width: 768px) {
    .course-detail-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .course-detail-card h3 {
        font-size: 1.1rem;
    }
    
    .course-detail-card ul li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .detail-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1rem;
    }
    
    .detail-icon i {
        font-size: 1.5rem;
    }
    
    /* Hero section buttons */
    .hero-section .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
    }
    
    /* Enroll section buttons */
    #enroll .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    #enroll .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .course-detail-card {
        padding: 1.25rem;
    }
    
    .course-detail-card h3 {
        font-size: 1rem;
    }
    
    .course-detail-card ul li {
        font-size: 0.85rem;
    }
    
    .detail-icon {
        width: 50px;
        height: 50px;
    }
    
    .detail-icon i {
        font-size: 1.25rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .course-detail-card {
        padding: 1rem;
    }
    
    .course-detail-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .course-detail-card ul li {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .detail-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.75rem;
    }
    
    .detail-icon i {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
}

/* 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);
}

/* Benefit Cards Mobile Responsive */
@media (max-width: 768px) {
    .benefit-card {
        padding: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .benefit-card i {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .benefit-card h4 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .benefit-card {
        padding: 1rem;
    }
    
    .benefit-card i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .benefit-card h4 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .benefit-card {
        padding: 0.85rem;
    }
    
    .benefit-card i {
        font-size: 1.35rem;
    }
    
    .benefit-card h4 {
        font-size: 0.9rem;
    }
}

/* 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;
    }
    
    .enrollment-section .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .enrollment-section .btn {
        width: 100%;
    }
}

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

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

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

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

    .enrollment-section .section-title {
        font-size: 1.5rem;
    }

    .enrollment-section .lead {
        font-size: 0.95rem;
    }

    .enrollment-section .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

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

    .feature-card i,
    .benefits-section .benefit-card i {
        font-size: 1.5rem;
    }

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

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

    .enrollment-section .section-title {
        font-size: 1.35rem;
    }

    .enrollment-section .lead {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .enrollment-section .btn-primary {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* --- 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;
}


/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 4px solid #fff;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

/* Fallback - show first slide even if JS does not run */
.hero-slide:first-child {
    opacity: 1;
}

.hero-slide.active {
    opacity: 1;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 125, 50, 0.5);
    border: none;
    color: white;
    font-size: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.slider-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
    border-color: white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Design for Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
        border-radius: 0.75rem;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 0.5rem;
    }

    .next-btn {
        right: 0.5rem;
    }

    .slider-indicators {
        bottom: 0.75rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 220px;
        border-radius: 0.5rem;
    }
}

@media (min-width: 1200px) {
    .hero-slider {
        height: 600px;
    }
}
/* Admin Sidebar Menu-Submenu Styles */
.dashboard-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.dashboard-sidebar .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
}

.dashboard-sidebar .nav-link:hover {
    background-color: rgba(46, 125, 50, 0.05);
    color: var(--primary-color) !important;
}

.dashboard-sidebar .nav-link.active {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
}

/* Menu Toggle Styles */
.dashboard-sidebar .menu-toggle {
    position: relative;
    cursor: pointer;
}

.dashboard-sidebar .menu-toggle .fa-chevron-down {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dashboard-sidebar .menu-toggle.expanded .fa-chevron-down {
    transform: rotate(180deg);
}

/* Submenu Styles */
.dashboard-sidebar .submenu {
    background-color: rgba(0, 0, 0, 0.02);
    padding-left: 0;
    display: none;
}

.dashboard-sidebar .submenu.show {
    display: block;
}

.dashboard-sidebar .submenu-link {
    padding-left: 3rem !important;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
}

.dashboard-sidebar .submenu-link:hover {
    background-color: rgba(46, 125, 50, 0.08);
}

.dashboard-sidebar .submenu-link.active {
    background-color: rgba(46, 125, 50, 0.12);
    border-left-color: var(--primary-color) !important;
}

/* Badge Styles */
.dashboard-sidebar .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .dashboard-sidebar {
        margin-bottom: 2rem;
    }
    
    .dashboard-sidebar .nav-link {
        padding: 0.6rem 0.8rem;
    }
    
    .dashboard-sidebar .submenu-link {
        padding-left: 2.5rem !important;
    }
}

/* Registration Form Styles - Common for Student and Teacher Registration */
.registration-form .form-control,
.registration-form .form-select,
.registration-form textarea {
    background: #e9f9f1;
    border: 2px solid #e2e6ea;
    border-radius: 0.5rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.registration-form .form-control:focus,
.registration-form .form-select:focus,
.registration-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

.registration-form .form-floating > label {
    color: #6c757d;
}

.registration-form .row.g-3 > [class*="col-"],
.registration-form .row.g-3 textarea {
    margin-bottom: 0.5rem;
}

.registration-form .btn-primary {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    border: none;
    transition: background 0.25s ease, transform 0.15s ease;
}

.registration-form .btn-primary:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    transform: translateY(-2px);
}

.registration-form .btn-primary:active {
    transform: translateY(0);
}

/* Teacher Registration Specific Styles */
.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.form-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-color);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--secondary-color);
    border-radius: 0.25rem;
    background-color: #e8f5e9;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-item input[type="checkbox"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
    outline: none;
}

/* Theme-colored Bootstrap form-check checkboxes */
.registration-form .form-check-input[type="checkbox"] {
    background-color: #e8f5e9;
    border-color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.registration-form .form-check-input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.registration-form .form-check-input[type="checkbox"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Theme-colored multi-select dropdown checkboxes */
.multi-select-item input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary-color);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--secondary-color);
    border-radius: 0.25rem;
    background-color: #e8f5e9;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.multi-select-item input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.multi-select-item input[type="checkbox"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
    outline: none;
}

.same-address-checkbox {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 0.25rem;
}

.help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.declaration-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid #e2e6ea;
}

.declaration-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1rem;
}


/* Registration Page Header - Ensure consistency */
.registration-header {
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.registration-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

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

.registration-header .lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* ========================================
   RESPONSIVE DESIGN FOR TEACHER REGISTRATION FORM
   ======================================== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Adjust form section padding for tablets */
    .form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Stack form columns on tablets */
    .registration-form .row.g-3 > [class*="col-md-"] {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Adjust registration header for tablets */
    .registration-header {
        padding-top: 5rem;
        padding-bottom: 1.5rem;
    }
    
    .registration-header .section-title {
        font-size: 2rem;
    }
    
    .registration-header .lead {
        font-size: 1rem;
    }
    
    /* Adjust card padding for tablets */
    .registration-form .card-body {
        padding: 2rem !important;
    }
    
    /* Checkbox group layout for tablets */
    .checkbox-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Declaration box padding */
    .declaration-box {
        padding: 1rem;
    }
    
    .declaration-text {
        font-size: 0.9rem;
    }
}

/* Mobile devices (576px and below) */
@media (max-width: 576px) {
    /* Further reduce form section padding */
    .form-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
        border-left-width: 3px;
    }
    
    .form-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Adjust registration header for mobile */
    .registration-header {
        padding-top: 4rem;
        padding-bottom: 1rem;
    }
    
    .registration-header .section-title {
        font-size: 1.75rem;
    }
    
    .registration-header .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    /* Reduce card padding for mobile */
    .registration-form .card-body {
        padding: 1.5rem !important;
    }
    
    /* Form controls sizing */
    .registration-form .form-control,
    .registration-form .form-select,
    .registration-form textarea {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Labels and help text */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .help-text {
        font-size: 0.8rem;
    }
    
    /* Button sizing */
    .registration-form .btn-primary {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Checkbox items stack vertically */
    .checkbox-item {
        width: 100%;
        padding: 0.5rem;
        background: #fff;
        border-radius: 0.25rem;
    }
    
    /* Declaration box */
    .declaration-box {
        padding: 0.75rem;
    }
    
    .declaration-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Same address checkbox */
    .same-address-checkbox {
        padding: 0.5rem;
    }
    
    /* Educational qualifications subsections */
    .form-section h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Extra small mobile devices (480px and below) */
@media (max-width: 480px) {
    /* Compact form sections */
    .form-section {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .form-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    /* Compact header */
    .registration-header {
        padding-top: 3.5rem;
        padding-bottom: 0.75rem;
    }
    
    .registration-header .section-title {
        font-size: 1.5rem;
    }
    
    .registration-header .lead {
        font-size: 0.9rem;
    }
    
    /* Minimal card padding */
    .registration-form .card-body {
        padding: 1rem !important;
    }
    
    /* Compact form controls */
    .registration-form .form-control,
    .registration-form .form-select,
    .registration-form textarea {
        font-size: 0.95rem;
        padding: 0.5rem;
    }
    
    /* Compact labels */
    .form-label {
        font-size: 0.85rem;
    }
    
    /* Compact help text */
    .help-text {
        font-size: 0.75rem;
    }
    
    /* Compact invalid feedback */
    .invalid-feedback {
        font-size: 0.8rem;
    }
    
    /* Compact button */
    .registration-form .btn-primary {
        padding: 0.65rem 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Compact checkbox items */
    .checkbox-item {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
    
    .checkbox-item input[type="checkbox"] {
        width: 1.1rem;
        height: 1.1rem;
    }
    
    /* Compact declaration */
    .declaration-box {
        padding: 0.5rem;
    }
    
    .declaration-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* Compact educational qualifications */
    .form-section h6 {
        font-size: 0.85rem;
    }
}

/* Very small devices (320px - minimum supported width) */
@media (max-width: 320px) {
    /* Ultra-compact layout for 320px screens */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .form-section {
        padding: 0.4rem;
        margin-bottom: 0.5rem;
    }
    
    .form-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .registration-header {
        padding-top: 3rem;
        padding-bottom: 0.5rem;
    }
    
    .registration-header .section-title {
        font-size: 1.3rem;
    }
    
    .registration-header .lead {
        font-size: 0.85rem;
    }
    
    .registration-form .card-body {
        padding: 0.75rem !important;
    }
    
    .registration-form .form-control,
    .registration-form .form-select,
    .registration-form textarea {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .help-text {
        font-size: 0.7rem;
    }
    
    .registration-form .btn-primary {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .checkbox-item {
        padding: 0.3rem;
        font-size: 0.85rem;
    }
    
    .declaration-box {
        padding: 0.4rem;
    }
    
    .declaration-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .registration-header {
        padding-top: 3rem;
        padding-bottom: 0.5rem;
    }
    
    .form-section {
        margin-bottom: 0.75rem;
    }
}

/* Touch-friendly adjustments for all mobile devices */
@media (max-width: 768px) {
    /* Increase touch target sizes */
    .registration-form .form-control,
    .registration-form .form-select,
    .registration-form textarea {
        min-height: 44px; /* iOS recommended minimum touch target */
    }
    
    .registration-form .btn-primary {
        min-height: 44px;
    }
    
    .checkbox-item input[type="checkbox"] {
        min-width: 24px;
        min-height: 24px;
    }
    
    .form-check-input {
        min-width: 24px;
        min-height: 24px;
    }
    
    /* Improve spacing for touch */
    .registration-form .row.g-3 {
        row-gap: 1rem;
    }
    
    /* Better file input styling for mobile */
    .registration-form input[type="file"] {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Print styles for registration form */
@media print {
    .registration-form .btn-primary,
    .sticky-social,
    .navbar,
    .footer {
        display: none;
    }
    
    .form-section {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
    
    .registration-form .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* About Modal Mobile Styles */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1.5rem !important;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-4,
    .modal-body .col-md-8 {
        width: 100%;
    }
    
    .modal-body .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    .modal-body img {
        max-width: 120px !important;
    }
    
    .modal-body h6 {
        font-size: 1rem;
    }
    
    .modal-body p {
        font-size: 0.9rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-footer .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }
    
    .modal-footer .social-links {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.25rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
    
    .modal-body img {
        max-width: 100px !important;
    }
    
    .modal-body h6 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem !important;
    }
    
    .modal-body p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem !important;
    }
    
    .modal-body .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .modal-footer .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-title {
        font-size: 0.9rem;
    }
    
    .modal-title i {
        display: none;
    }
    
    .modal-body {
        padding: 0.75rem !important;
    }
    
    .modal-body img {
        max-width: 80px !important;
    }
    
    .modal-body h6 {
        font-size: 0.9rem;
    }
    
    .modal-body p {
        font-size: 0.8rem;
    }
    
    .badge {
        font-size: 0.75rem !important;
    }
}

/* Events Page Mobile Styles */
.album-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.album-preview {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border-radius: 10px 10px 0 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-item:hover .image-overlay {
    opacity: 1;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #f8f9ff;
}

/* Events Page Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 1rem;
    }
    
    .dashboard-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem !important;
    }
    
    .dashboard-content .row.mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .dashboard-content .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.75rem;
    }
    
    .dashboard-content .col-md-6.text-end {
        text-align: center !important;
    }
    
    .dashboard-content .btn {
        width: 100%;
    }
    
    .album-card {
        margin-bottom: 1rem;
    }
    
    .album-preview {
        height: 180px;
        font-size: 2.5rem;
    }
    
    .album-card .card-body {
        padding: 1.25rem;
    }
    
    .album-card .card-title {
        font-size: 1.1rem;
    }
    
    .album-card .card-text {
        font-size: 0.9rem;
    }
    
    .album-card .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .album-card .btn-sm {
        width: 100%;
        padding: 0.5rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .image-item img {
        height: 120px;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    /* No albums message */
    .card-body.p-5 {
        padding: 2rem !important;
    }
    
    .card-body .fa-4x {
        font-size: 3rem !important;
    }
    
    .card-body h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .dashboard-content {
        padding: 0.75rem;
    }
    
    .dashboard-content h2 {
        font-size: 1.35rem;
    }
    
    .album-preview {
        height: 160px;
        font-size: 2rem;
    }
    
    .album-card .card-body {
        padding: 1rem;
    }
    
    .album-card .card-title {
        font-size: 1rem;
    }
    
    .album-card .card-text {
        font-size: 0.85rem;
    }
    
    .album-card small {
        font-size: 0.75rem;
    }
    
    .album-card .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .image-item img {
        height: 100px;
    }
    
    .upload-area {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    
    /* No albums message */
    .card-body.p-5 {
        padding: 1.5rem !important;
    }
    
    .card-body .fa-4x {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .card-body h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem !important;
    }
    
    .card-body p {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 0.5rem;
    }
    
    .dashboard-content h2 {
        font-size: 1.25rem;
    }
    
    .album-preview {
        height: 140px;
        font-size: 1.75rem;
    }
    
    .album-card .card-body {
        padding: 0.85rem;
    }
    
    .album-card .card-title {
        font-size: 0.95rem;
    }
    
    .album-card .card-text {
        font-size: 0.8rem;
    }
    
    .album-card .btn-sm {
        font-size: 0.85rem;
        padding: 0.4rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .image-item img {
        height: 90px;
    }
    
    .upload-area {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    /* No albums message */
    .card-body.p-5 {
        padding: 1.25rem !important;
    }
    
    .card-body .fa-4x {
        font-size: 2rem !important;
    }
    
    .card-body h3 {
        font-size: 1.15rem;
    }
    
    .card-body p {
        font-size: 0.85rem;
    }
    
    .card-body .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Modal Mobile Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        flex: 1;
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.25rem;
    }
    
    .modal-header {
        padding: 0.85rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 0.85rem;
    }
    
    .modal-body .form-label {
        font-size: 0.9rem;
    }
    
    .modal-body .form-control,
    .modal-body .form-select {
        font-size: 0.9rem;
    }
    
    .modal-footer {
        padding: 0.65rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-title {
        font-size: 0.95rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-body .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .modal-body .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .modal-body .form-control,
    .modal-body .form-select {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .modal-footer .btn {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

/* Offcanvas Mobile Sidebar */
@media (max-width: 768px) {
    .offcanvas {
        width: 280px !important;
    }
    
    .offcanvas-header {
        padding: 1rem;
        border-bottom: 1px solid #dee2e6;
    }
    
    .offcanvas-title {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .offcanvas-body {
        padding: 0;
    }
}

/* FAQ Page Styles */
.accordion-item {
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.accordion-button {
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    background-color: #fff;
    color: var(--dark-color);
    border: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    background-color: #f8f9fa;
}

/* Call to Action Section */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* FAQ Page Mobile Responsive */
@media (max-width: 768px) {
    .accordion-item {
        margin-bottom: 0.75rem;
        border-radius: 8px !important;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .accordion-button strong {
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    /* Call to Action Section */
    .bg-primary .row {
        text-align: center !important;
    }
    
    .bg-primary .col-lg-8 {
        text-align: center !important;
        margin-bottom: 1.5rem;
    }
    
    .bg-primary .col-lg-4 {
        text-align: center !important;
    }
    
    .bg-primary h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem !important;
    }
    
    .bg-primary .lead {
        font-size: 1rem;
    }
    
    .bg-primary .btn {
        width: 100%;
        margin: 0.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .accordion-item {
        margin-bottom: 0.65rem;
        border-radius: 6px !important;
    }
    
    .accordion-button {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }
    
    .accordion-button strong {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Call to Action Section */
    .bg-primary {
        padding: 2.5rem 0 !important;
    }
    
    .bg-primary h2 {
        font-size: 1.5rem;
    }
    
    .bg-primary .lead {
        font-size: 0.95rem;
    }
    
    .bg-primary .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .accordion-item {
        margin-bottom: 0.5rem;
        border-radius: 5px !important;
    }
    
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 0.85rem;
    }
    
    .accordion-button strong {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .accordion-button::after {
        width: 1rem;
        height: 1rem;
        background-size: 1rem;
    }
    
    .accordion-body {
        padding: 0.85rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Call to Action Section */
    .bg-primary {
        padding: 2rem 0 !important;
    }
    
    .bg-primary h2 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem !important;
    }
    
    .bg-primary .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }
    
    .bg-primary .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
}

/* FAQ Section Spacing */
@media (max-width: 768px) {
    #faq {
        padding: 3rem 0 !important;
    }
    
    #faq .col-lg-10 {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    #faq {
        padding: 2.5rem 0 !important;
    }
    
    #faq .col-lg-10 {
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    #faq {
        padding: 2rem 0 !important;
    }
    
    #faq .col-lg-10 {
        padding: 0 0.5rem;
    }
}

/* Login Page Styles */
.login-card {
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.input-group-text {
    background-color: var(--light-color);
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.input-group .form-control:focus + .input-group-text,
.input-group-text:has(+ .form-control:focus) {
    border-color: var(--primary-color);
}

/* Login Page Mobile Responsive */
@media (max-width: 768px) {
    .hero-section.py-5.mt-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        margin-top: 3rem !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
    }
    
    .hero-section .card {
        margin-top: 2rem;
    }
    
    .hero-section .card-body {
        padding: 2rem !important;
    }
    
    .hero-section .card-body h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .hero-section .form-label {
        font-size: 0.95rem;
    }
    
    .hero-section .input-group {
        margin-bottom: 1rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section.py-5.mt-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
        margin-top: 2.5rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .hero-section .card-body {
        padding: 1.5rem !important;
    }
    
    .hero-section .card-body h2 {
        font-size: 1.35rem;
    }
    
    .hero-section .alert {
        font-size: 0.85rem;
        padding: 0.65rem;
    }
    
    .hero-section .form-label {
        font-size: 0.9rem;
    }
    
    .hero-section .form-control {
        font-size: 0.95rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-section.py-5.mt-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        margin-top: 2rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .hero-section .card-body {
        padding: 1.25rem !important;
    }
    
    .hero-section .card-body h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem !important;
    }
    
    .hero-section .alert {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    .hero-section .form-label {
        font-size: 0.85rem;
    }
    
    .hero-section .form-control {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .hero-section .input-group-text {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Student/Teacher Registration Page Mobile Responsive */
/* These styles complement the existing registration form styles */
@media (max-width: 768px) {
    .registration-header {
        padding-top: 3rem;
    }
    
    .registration-header h1 {
        font-size: 2rem;
    }
    
    .registration-header .section-title {
        font-size: 1.75rem;
    }
    
    .registration-header .lead {
        font-size: 1rem;
    }
    
    .registration-form .card-body {
        padding: 2rem !important;
    }
    
    /* Form controls already handled by existing registration styles */
}

@media (max-width: 576px) {
    .registration-header {
        padding-top: 2.5rem;
    }
    
    .registration-header h1 {
        font-size: 1.75rem;
    }
    
    .registration-header .section-title {
        font-size: 1.5rem;
    }
    
    .registration-header .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem !important;
    }
    
    .registration-form .card-body {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .registration-header {
        padding-top: 2rem;
    }
    
    .registration-header h1 {
        font-size: 1.5rem;
    }
    
    .registration-header .section-title {
        font-size: 1.35rem;
    }
    
    .registration-header .lead {
        font-size: 0.9rem;
        margin-bottom: 1.25rem !important;
    }
    
    .registration-form .card-body {
        padding: 1.25rem !important;
    }
}

/* Additional Registration Form Enhancements */
@media (max-width: 768px) {
    /* File upload button */
    .registration-form input[type="file"] {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    /* Radio buttons and checkboxes */
    .registration-form .form-check {
        padding-left: 1.75rem;
    }
    
    .registration-form .form-check-input {
        margin-top: 0.25rem;
    }
    
    .registration-form .form-check-label {
        font-size: 0.95rem;
    }
    
    /* Select dropdowns */
    .registration-form select.form-control,
    .registration-form select.form-select {
        font-size: 0.95rem;
    }
    
    /* Textarea */
    .registration-form textarea {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .registration-form input[type="file"] {
        font-size: 0.85rem;
        padding: 0.45rem;
    }
    
    .registration-form .form-check-label {
        font-size: 0.9rem;
    }
    
    .registration-form select.form-control,
    .registration-form select.form-select {
        font-size: 0.9rem;
    }
    
    .registration-form textarea {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .registration-form input[type="file"] {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .registration-form .form-check {
        padding-left: 1.5rem;
    }
    
    .registration-form .form-check-label {
        font-size: 0.85rem;
    }
    
    .registration-form select.form-control,
    .registration-form select.form-select {
        font-size: 0.85rem;
    }
    
    .registration-form textarea {
        font-size: 0.85rem;
    }
}

/* Alert Messages Mobile Responsive */
@media (max-width: 768px) {
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .alert i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .alert {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
    }
    
    .alert i {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .alert {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
    
    .alert i {
        font-size: 0.8rem;
    }
}

/* Form Validation Feedback Mobile */
@media (max-width: 768px) {
    .invalid-feedback,
    .valid-feedback {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .invalid-feedback,
    .valid-feedback {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .invalid-feedback,
    .valid-feedback {
        font-size: 0.75rem;
    }
}
