/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

/* Ensure the body and html take full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #f8fafc;
    position: relative;
}

/* Navbar modifications */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2f855a;
    padding: 15px 30px;
    position: fixed; /* Make navbar fixed */
    width: calc(100% - 15px); /* Account for scrollbar width */
    max-width: calc(100vw - 15px);
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 25px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 9px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 1px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.dropbtn:hover {
    background-color: yellow;
    color: rgb(255, 255, 255);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(255, 242, 242, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: yellow;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: transparent;
}

/* Search Bar and Profile Dropdown */
.search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar button {
    padding: 0.75rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
}

.search-bar button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-bar button i {
    color: white;
    font-size: 1.25rem;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.profile-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-button img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    border: 2px solid #fff;
}

.profile-button span {
    margin-right: 8px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
}

.profile-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.profile-dropdown-content a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.profile-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.profile-dropdown:hover .profile-dropdown-content {
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 100px;
    text-align: center;
    padding: 0;
    color: black;
}

/* Logo Container */
/* Logo Container */
.logo-container {
    background-color: transparent;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto; /* Simplified margin syntax */
    z-index: 1;
    width: 100%; /* Full width container */
    display: flex; /* Using flexbox for better centering */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
    text-align: center; /* Center any text content */
}

/* Alternatively, you can add top padding to the overlay */
.overlay {
    position: relative;
    background: url('assets/images/BG.png') no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    height: calc(100vh - 140px);
}

.overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: 1%; /* Adjust this value to move the hero text lower on the page */
    z-index: 2;
    text-align: center;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 1200px;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.hero-text h3 {
    font-size: 3.1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-text p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Section */
.services-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    border-radius: 20px;
    margin: 20px auto;
    width: fit-content;
    background-color: rgba(255, 255, 255, 0.9); /* Slight transparency */
    z-index: 2; /* Higher z-index to appear above overlay */
    margin-top: 350px;
}

.services {
    display: flex;
    gap: 30px;
}

.service-card {
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Specific Service Card Styles */
.service-card h4 {
    font-size: 16px;
    color: white;
    font-weight: bold;
}

.service-card i {
    font-size: 32px;
    color: white;
    margin-bottom: 12px;
}

.pre-school {
    background-color: #28a745; /* Green */
}

.grade-school {
    background-color: #dc3545; /* Red */
}

.high-school {
    background-color: #ffc107; /* Yellow */
}

/* Footer Styles */
.footer {
    background-color: #2f855a;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.profile-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-button img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    border: 2px solid #fff;
}

.profile-button span {
    margin-right: 8px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2px;
}

.profile-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.profile-dropdown-content a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.profile-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.profile-dropdown:hover .profile-dropdown-content {
    display: block;
}
.nav-links a {
text-decoration: none;
color: white;
font-weight: bold;
padding: 10px 9px;
border-radius: 5px;
transition: background-color 0.3s;
}


.nav-links li a.active {
background-color: #ffd230;
color: black; /* Adjust the text color for better contrast */
padding: 10px 9px; /* Optional: Add some padding for better visuals */
border-radius: 5px; /* Optional: Rounded corners */
text-decoration: none;
}

:root {
    --primary-bg-color: #ffffff;
    --secondary-bg-color: #f8f9fa;
    --border-color: #e0e4e8;
    --text-color: #333;
    --accent-color: #007bff;
    --notification-hover-bg: #f1f3f5;
}

.notifications-dropdown {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 350px;
    background-color: var(--primary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    max-height: 450px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notifications-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.notifications-dropdown::-webkit-scrollbar {
    width: 6px;
}

.notifications-dropdown::-webkit-scrollbar-track {
    background: var(--secondary-bg-color);
    border-radius: 3px;
}

.notifications-dropdown::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.notifications-dropdown h3 {
    margin: 0;
    padding: 15px;
    background-color: var(--secondary-bg-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-dropdown h3 .clear-all {
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.8em;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notifications-dropdown h3 .clear-all:hover {
    opacity: 1;
}

.notifications-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notifications-dropdown ul li {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.notifications-dropdown ul li:hover {
    background-color: var(--notification-hover-bg);
}

.notifications-dropdown ul li .notification-icon {
    margin-right: 15px;
    color: var(--accent-color);
}

.notifications-dropdown ul li .notification-content {
    flex-grow: 1;
}

.notifications-dropdown ul li .notification-time {
    font-size: 0.8em;
    color: #6c757d;
    margin-left: 10px;
}

.notifications-dropdown ul li:last-child {
    border-bottom: none;
}

.badge {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    position: absolute;
    top: 12px;
    right: 220px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notifications-dropdown {
        width: calc(100% - 20px);
        right: 10px;
        max-height: 70vh;
    }

    .badge {
        right: 10px;
        top: 8px;
    }
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Media Query for Mobile Devices */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #2f855a;
        padding: 20px;
        text-align: center;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }

    .dropdown-content {
        position: relative;
        width: 100%;
        box-shadow: none;
    }

    .search-bar {
        display: none;
    }

    .profile-dropdown {
        display: none;
    }

    /* Mobile dropdown adjustments */
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropbtn {
        width: 100%;
        padding: 10px;
    }

    /* Profile adjustments for mobile */
    .profile-button {
        width: 100%;
        justify-content: center;
    }

    .profile-dropdown-content {
        width: 100%;
        position: static;
        margin-top: 10px;
    }
    
    /* Fix for hero section on mobile */
    .hero-section {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        overflow: hidden;
    }
    
    
    
    .overlay {
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix for services container on mobile */
    .services-container {
        width: 100%;
        max-width: calc(100% - 40px);
        overflow-x: hidden;
    }
    
    .services {
        flex-direction: column;
        width: 100%;
    }
    
    /* Fix for other containers */
    .container {
        width: 100%;
        padding: 0 15px;
        overflow-x: hidden;
    }
    
    /* Fix for footer */
    .footer {
        width: 100%;
    }
}

/* Active hamburger menu animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Additional responsive fixes for all screen sizes */
img {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

/* Programs Section */
.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.program-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-image {
    height: 250px; /* Fixed height for all program images */
    overflow: hidden;
    position: relative;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    color: #2f855a;
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
}

.program-content p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 16px;
    flex-grow: 1;
}

@media screen and (max-width: 768px) {
    .programs-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .program-image {
        height: 200px; /* Slightly smaller height on tablets */
    }
}

@media screen and (max-width: 576px) {
    .programs-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .program-image {
        height: 180px; /* Even smaller height on mobile */
    }
}

/* Modern Registration Page Styles */
.registration-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.registration-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    z-index: 1;
}

.form-side {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.form-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    z-index: 1;
}

.decorative-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    z-index: 0;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: -40px;
}

.form-side-inner {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.school-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.school-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
}

.school-name-container {
    text-align: center;
}

.school-name {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
    line-height: 1.2;
}

.school-location {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.meeting-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.registration-heading {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.registration-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.form-container {
    width: 100%;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.input-group input:focus + .input-icon,
.input-group select:focus + .input-icon {
    color: #667eea;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    transition: color 0.2s ease;
    pointer-events: none;
    margin-top: 14px;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 80px;
}

.password-toggle {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
    z-index: 3;
}

.password-toggle:hover {
    color: #667eea;
}

.register-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.register-btn:active {
    transform: translateY(0);
}

.login-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.login-text {
    color: #718096;
    font-size: 14px;
    margin-right: 8px;
}

.login-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Notification Styles */
.notification {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification.error {
    background-color: #fed7d7;
    border-color: #fc8181;
    color: #c53030;
}

.notification.success {
    background-color: #c6f6d5;
    border-color: #68d391;
    color: #2f855a;
}

.notification.warning {
    background-color: #fefcbf;
    border-color: #f6e05e;
    color: #d69e2e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-container {
        padding: 10px;
    }
    
    .form-side {
        margin: 0;
        border-radius: 16px;
        max-width: 100%;
    }
    
    .form-side-inner {
        padding: 30px 25px;
    }
    
    .registration-heading {
        font-size: 24px;
    }
    
    .school-name {
        font-size: 18px;
    }
    
    .input-group input,
    .input-group select {
        padding: 12px 40px 12px 12px;
        font-size: 16px;
    }
    
    .input-icon {
        right: 12px;
        font-size: 14px;
    }
    
    .password-toggle {
        right: 40px;
    }
    
    .register-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .school-logo {
        width: 60px;
        height: 60px;
    }
    
    .school-name {
        font-size: 16px;
    }
    
    .school-location {
        font-size: 12px;
    }
    
    .registration-heading {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .form-side-inner {
        padding: 25px 20px;
    }
}

/* Loading Animation for form submission */
.register-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.register-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Input focus states and visual feedback */
.input-group.focused label {
    color: #667eea;
    transform: translateY(-2px);
}

.input-group input:valid,
.input-group select:valid {
    border-color: #68d391;
}

.input-group input:invalid:not(:placeholder-shown),
.input-group select:invalid:not(:placeholder-shown) {
    border-color: #fc8181;
}

/* Password strength indicator */
.password-strength {
    display: flex;
    gap: 2px;
    margin-top: 5px;
    height: 3px;
}

.password-strength div {
    flex: 1;
    height: 100%;
    background-color: #e2e8f0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.password-strength.weak div:first-child {
    background-color: #fc8181;
}

.password-strength.medium div:nth-child(-n+2) {
    background-color: #f6e05e;
}

.password-strength.strong div {
    background-color: #68d391;
}

/* Form validation tooltips */
.input-group {
    position: relative;
}

.validation-message {
    position: absolute;
    bottom: -25px;
    left: 0;
    font-size: 12px;
    color: #fc8181;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 10;
}

.input-group input:invalid:not(:placeholder-shown) + .input-icon + .validation-message,
.input-group select:invalid:not(:placeholder-shown) + .input-icon + .validation-message {
    opacity: 1;
    transform: translateY(0);
}

/* Success animation for valid inputs */
.input-group input:valid + .input-icon {
    color: #68d391;
}

.input-group input:valid + .input-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(104, 211, 145, 0.1);
    border-radius: 50%;
    animation: validPulse 0.6s ease-out;
}

@keyframes validPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Enhanced button states */
.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.register-btn:disabled:hover {
    transform: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Modern scrollbar for form container */
.form-container::-webkit-scrollbar {
    width: 4px;
}

.form-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.form-container::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
}

.form-container::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Additional responsive improvements */
@media (max-width: 360px) {
    .form-side-inner {
        padding: 20px 15px;
    }
    
    .school-name {
        font-size: 14px;
    }
    
    .registration-heading {
        font-size: 20px;
    }
    
    .input-group input,
    .input-group select {
        padding: 10px 35px 10px 10px;
        font-size: 14px;
    }
    
    .register-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}