/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #dfe9eccc;
    color: rgb(0 0 0 / 69%);
    line-height: 1;
}

/* OTP Verification Styles */
.otp-timer {
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0;
    text-align: center;
}

.resend-btn {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
}

.resend-btn:hover:not(:disabled) {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

.resend-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
}

.resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

#centerOTPStep, #schoolOTPStep, #loginOTPStep {
    margin-top: 25px;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    border: 2px solid #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    text-align: center;
}

#centerOTPStep h3, #schoolOTPStep h3, #loginOTPStep h3 {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

#centerOTPStep .form-group label,
#schoolOTPStep .form-group label,
#loginOTPStep .form-group label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

#centerOTP, #schoolOTP, #loginOTP {
    width: 100%;
    padding: 18px 15px;
    font-size: 1.8rem;
    letter-spacing: 8px;
    text-align: center;
    border: 3px solid #007bff;
    border-radius: 12px;
    margin: 15px 0;
    box-sizing: border-box;
    background: #ffffff;
    color: #333;
    font-weight: 700;
    transition: all 0.3s ease;
    outline: none;
}

#centerOTP:focus, #schoolOTP:focus, #loginOTP:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    background: #f8f9ff;
    transform: scale(1.02);
}

#centerOTP::placeholder, #schoolOTP::placeholder, #loginOTP::placeholder {
    color: #999;
    font-weight: 400;
    letter-spacing: 4px;
}

/* MSG91 OTP Widget Styles */
.otp-widget-container {
    min-height: 350px;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid #007bff;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.otp-mobile-info {
    text-align: center;
    margin: 15px 0 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%);
    border-radius: 12px;
    border-left: 5px solid #007bff;
    width: 100%;
    box-sizing: border-box;
}

.otp-mobile-info p {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 500;
}

.otp-mobile-info strong {
    color: #007bff;
    font-size: 1.3rem;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Enhanced OTP Input Styling */
.otp-input-container {
    width: 100%;
    max-width: 400px;
    margin: 20px 0;
    text-align: center;
}

.otp-input-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.otp-input-field {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.5rem;
    letter-spacing: 8px;
    text-align: center;
    border: 3px solid #007bff;
    border-radius: 10px;
    background: #ffffff;
    color: #333;
    font-weight: 600;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
}

.otp-input-field:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    background: #f8f9ff;
}

.otp-input-field::placeholder {
    color: #999;
    font-weight: 400;
    letter-spacing: 4px;
}

/* OTP Verification Button */
.otp-verify-btn {
    width: 100%;
    max-width: 300px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.otp-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
}

.otp-verify-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success/Error messages inside popup */
#otp-messages-container {
    margin-top: 15px;
}

.otp-success-message,
.otp-error-message {
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}

.otp-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.otp-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.otp-loading-message {
    text-align: center;
    color: #007bff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 40px 20px;
    animation: pulse 1.5s ease infinite;
}

.otp-loading-message::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0, 123, 255, 0);
        text-shadow: .25em 0 0 rgba(0, 123, 255, 0),
                     .5em 0 0 rgba(0, 123, 255, 0);
    }
    40% {
        color: #007bff;
        text-shadow: .25em 0 0 rgba(0, 123, 255, 0),
                     .5em 0 0 rgba(0, 123, 255, 0);
    }
    60% {
        text-shadow: .25em 0 0 #007bff,
                     .5em 0 0 rgba(0, 123, 255, 0);
    }
    80%, 100% {
        text-shadow: .25em 0 0 #007bff,
                     .5em 0 0 #007bff;
    }
}

/* Animation for messages */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Override MSG91 widget iframe styles */
#msg91-otp-widget-container iframe {
    border: 2px solid #007bff !important;
    border-radius: 12px !important;
    width: 100% !important;
    min-height: 200px !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.1) !important;
}

/* Fallback OTP Input (if widget fails) */
.manual-otp-container {
    width: 100%;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #007bff;
    margin: 20px 0;
    text-align: center;
}

.manual-otp-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.manual-otp-input {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.8rem;
    letter-spacing: 10px;
    text-align: center;
    border: 3px solid #007bff;
    border-radius: 10px;
    background: white;
    color: #333;
    font-weight: 700;
    margin: 10px 0;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

.manual-otp-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    background: #f8f9ff;
}

.manual-otp-input::placeholder {
    color: #bbb;
    font-weight: 400;
    letter-spacing: 6px;
}

/* Mobile responsive adjustments for OTP widget */
@media (max-width: 768px) {
    .otp-widget-container {
        min-height: 300px;
        padding: 20px;
    }

    .otp-mobile-info {
        padding: 15px;
    }

    .otp-mobile-info strong {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    #centerOTP, #schoolOTP, #loginOTP {
        font-size: 1.5rem;
        letter-spacing: 6px;
        padding: 15px 12px;
    }

    .otp-input-field {
        font-size: 1.3rem;
        letter-spacing: 6px;
        padding: 12px 15px;
    }

    .manual-otp-input {
        font-size: 1.5rem;
        letter-spacing: 8px;
        padding: 12px;
    }

    #centerOTPStep, #schoolOTPStep, #loginOTPStep {
        padding: 20px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .otp-widget-container {
        min-height: 280px;
        padding: 15px;
    }

    .otp-mobile-info {
        padding: 12px;
    }

    .otp-mobile-info p {
        font-size: 1rem;
    }

    .otp-mobile-info strong {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    #centerOTP, #schoolOTP, #loginOTP {
        font-size: 1.3rem;
        letter-spacing: 4px;
        padding: 12px 10px;
    }

    .otp-input-field {
        font-size: 1.2rem;
        letter-spacing: 4px;
        padding: 10px 12px;
    }

    .manual-otp-input {
        font-size: 1.3rem;
        letter-spacing: 6px;
        padding: 10px;
    }

    #centerOTPStep, #schoolOTPStep, #loginOTPStep {
        padding: 15px;
        margin-top: 15px;
    }

    .otp-verify-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    height: 60px;
    }

    .logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    .logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    animation: glow 2s ease-in-out infinite;
    filter: blur(8px);
    opacity: 0.7;
    }

    .logo img {
    width: 70px;
    height: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
    position: relative;
    z-index: 1;
    }

    .logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.1);
    }

    .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
    }

    .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    }

    .nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #00bcd4);
    transition: width 0.3s ease;
    }

    .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    }

    .nav-links a:hover {
    color: #007bff;
    transform: translateY(-1px);
    }

    .nav-links a:hover::before {
    width: 100%;
    }

    .nav-links a:hover::after {
    opacity: 0;
    }

.navbar button {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar .login {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.navbar .login:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar .signup {
    background: #007bff;
    color: white;
}

.navbar .signup:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive styles for navbar buttons */
@media (max-width: 768px) {
    .navbar button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar button {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* Hero Section with Background Carousel */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    will-change: opacity, transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    background: transparent;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    filter: brightness(1);
    will-change: transform, filter;
    backface-visibility: hidden;
    background: transparent;
    animation: none;
}

.carousel-slide.active img {
    animation: zoomIn 10s ease forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide:not(.active) {
    display: none;
}

.carousel-control {
    position: absolute;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.5;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
    opacity: 1;
}

.carousel-control.prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control.next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control.pause-play {
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
}

.carousel-control i {
    font-size: 1.5rem;
}

.hero-carousel:hover .carousel-control {
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    gap: 70px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 70%
    );
}

.animated-subtitle {
    font-size: 2rem;
    margin: 0;
    opacity: 1;
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 0.3s;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Interactive Title Effect */
.interactive-title {
    font-size: 4.9rem;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-family: 'Poppins', 'Arial Black', sans-serif;
}

.interactive-title .letter {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
}

.interactive-title .letter:hover {
    transform: translateY(-10px) scale(1.1);
    text-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
    color: #a4a4a2;
}

.interactive-title .letter.space {
    width: 20px;
}

/* Animated Flip Text Effect */
#flip {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
    width: 90px; /* Fixed width to maintain spacing */
    height: 2rem;
    align-items: center;
    justify-content: center;
}

#flip > span {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    animation: flip-words 8s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

#flip > span:nth-child(1) {
    animation-delay: 0s;
}

#flip > span:nth-child(2) {
    animation-delay: 2s;
}

#flip > span:nth-child(3) {
    animation-delay: 4s;
}

#flip > span:nth-child(4) {
    animation-delay: 6s;
}

#flip > span > span {
    color: white;
    padding: 4px 12px;
    display: inline-block;
    line-height: 1.6rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 1.8rem;
}

#flip > span:nth-child(1) > span {
    background: #4ec7f3;
}

#flip > span:nth-child(2) > span {
    background: #42c58a;
}

#flip > span:nth-child(3) > span {
    background: #ff6b6b;
}

#flip > span:nth-child(4) > span {
    background: #ffd93d;
}

@keyframes flip-words {
    0%, 24% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

/* Animation keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-subtitle:nth-child(2) {
    animation-delay: 0.3s;
}

.animated-subtitle:nth-child(3) {
    animation-delay: 0.6s;
}

.animated-subtitle:nth-child(4) {
    animation-delay: 0.9s;
}

/* Animated CTA Button with Arrow */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: white;
    background: #007bff;
    transition: 1s;
    box-shadow: 5px 5px 0 black;
    transform: skewX(-15deg);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cta-button:focus {
    outline: none;
}

.cta-button:hover {
    transition: 0.5s;
    background: #0056b3;
    box-shadow: 10px 10px 0 #FBC638;
}

.cta-button span:nth-child(2) {
    transition: 0.5s;
    margin-right: 0px;
}

.cta-button:hover span:nth-child(2) {
    transition: 0.5s;
    margin-right: 28px;
}

.cta-button span {
    transform: skewX(15deg);
}

.cta-button span:nth-child(2) {
    width: 18px;
    margin-left: 20px;
    position: relative;
    top: 12%;
}

/* SVG Arrow Animations */
.cta-button path.one {
    transition: 0.4s;
    transform: translateX(-60%);
}

.cta-button path.two {
    transition: 0.5s;
    transform: translateX(-30%);
}

.cta-button:hover path.three {
    animation: color_anim 1s infinite 0.2s;
}

.cta-button:hover path.one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
}

.cta-button:hover path.two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
}

/* SVG Color Animation */
@keyframes color_anim {
    0% {
        fill: white;
    }
    50% {
        fill: #FBC638;
    }
    100% {
        fill: white;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        height: 80vh;
    }

    .hero-content {
        padding: 0 30px;
    }

    .interactive-title {
        font-size: 3rem;
    }

    .animated-subtitle {
        font-size: 1.5rem;
    }

    #flip {
        width: 75px;
        height: 1.5rem;
    }

    #flip > span > span {
        line-height: 1.3rem;
        padding: 3px 8px;
        font-size: 1.3rem;
        font-weight: 700;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .course-card {
        padding: 20px;
    }

    .course-icon {
        font-size: 2rem;
    }

    .course-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        height: 70vh;
    }

    .hero-content {
        padding: 0 20px;
    }

    .interactive-title {
        font-size: 2.5rem;
    }

    .animated-subtitle {
        font-size: 1.3rem;
    }

    #flip {
        width: 70px;
        height: 1.3rem;
    }

    #flip > span > span {
        line-height: 1.1rem;
        padding: 2px 6px;
        font-size: 1.2rem;
        font-weight: 700;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cta-container {
        padding: 0 20px;
    }

    .cta-form {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .carousel-control {
        width: 45px;
        height: 45px;
    }

    .carousel-control i {
        font-size: 1.3rem;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .carousel-control.pause-play {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 10px;
    }

    .logo img {
        width: 50px;
    }

    .hero-section {
        height: 60vh;
    }

    .hero-content {
        padding: 0 15px;
    }

    .interactive-title {
        font-size: 2rem;
        gap: 2px;
    }

    .animated-subtitle {
        font-size: 1.1rem;
    }

    #flip {
        width: 60px;
        height: 1.1rem;
    }

    #flip > span > span {
        line-height: 0.9rem;
        padding: 1px 4px;
        font-size: 1rem;
        font-weight: 700;
    }

    .cta-button {
        padding: 10px 26px;
        font-size: 1rem;
        box-shadow: 5px 5px 0 black;
    }

    .cta-button span:nth-child(2) {
        width: 15px;
        margin-left: 16px;
    }

    .cta-button:hover span:nth-child(2) {
        margin-right: 22px;
    }

    .course-card {
        padding: 15px;
    }

    .course-icon {
        font-size: 1.8rem;
    }

    .course-card h3 {
        font-size: 1rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .carousel-control i {
        font-size: 1.2rem;
    }
}

/* Mobile Menu */

@media (max-width: 768px) {

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 20px;
        display: none;
        flex-direction: column;
        gap: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px;
    }
}

/* Dashboard Section Floating Above Reversed U-shape */
.dashboard {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 20px; /* Adjusted margin to position the dashboard */
    flex-wrap: wrap;
    position: relative;
    z-index: 2; /* Ensure dashboard is above the U-shape */
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* Ensure popup overlay uses flexbox when shown */
.popup-overlay[style*="display: flex"],
.popup-overlay[style*="display:flex"] {
    display: flex !important;
}

.popup {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: #2c3e50;
    position: relative;
    padding-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.popup h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #00bcd4);
    border-radius: 2px;
}

/* Signup Type Selection */
.signup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.signup-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
}

.signup-option-btn:hover {
    background: #f0fff0;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.signup-option-btn i {
    font-size: 40px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.signup-option-btn span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 4px;
    position: relative;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-size: 13px;
    opacity: 0.7;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafbfc;
    height: 46px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c0c0c0;
    background: #ffffff;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
    outline: none;
    transform: translateY(-1px);
    outline: none;
}

/* Gender Radio Buttons */
.gender-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
    width: 100%;
}

.gender-options {
    display: flex;
    gap: 10px;
    width: 100%;
}

.gender-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    height: 45px;
    box-sizing: border-box;
    flex: 1;
}

.gender-options label:hover {
    background: #e9ecef;
}

.gender-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

/* Terms Checkbox */
.terms-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    width: 100%;
}

.terms-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.terms-group label {
    font-size: 0.9rem;
    color: #666;
}

.terms-group a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-group a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Form Navigation Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    gap: 12px;
}

/* Ensure equal width buttons in form-buttons container */
.form-buttons .back-btn,
.form-buttons .submit-btn {
    flex: 1;
    width: auto; /* Override any width: 100% */
    margin-top: 0; /* Remove individual margin when in button group */
}

/* Popup Close Button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1000;
}

.popup-close:hover {
    color: #333;
    background: #f0f0f0;
    transform: scale(1.1);
}

.popup-close:active {
    transform: scale(0.95);
}

.submit-btn {
    background: linear-gradient(90deg, #007bff, #00bcd4);
    color: white;
    border: none;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 18px;
    flex: 1;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(90deg, #0056b3, #0097a7);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

.back-btn {
    background: #f1f1f1;
    color: #333;
    border: none;
    padding: 13px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 18px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.back-btn:hover {
    background: #e1e1e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

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

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Adjustments - Consolidated Popup Styles */
@media (max-width: 600px) {
    .signup-options {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        align-items: center;
    }

    .signup-option-btn {
        max-width: 200px;
        height: 120px;
    }

    .gender-options {
        gap: 5px;
    }

    .gender-options label {
        width: 100%;
    }
}

/* Phone Section Styling */

/* CTA Section Styles */
.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-container h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 30px;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
}

.cta-form .form-group {
    margin: 0;
    width: 100%;
}

.cta-form input,
.cta-form select,
.cta-form .submit-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 7px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background: white;
    box-sizing: border-box;
    height: 46px; /* Set consistent height for all elements */
}

.cta-form input:focus,
.cta-form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.cta-form .submit-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 7px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.cta-form .submit-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.cta-form select {
    padding: 0 15px; /* Add horizontal padding */
    appearance: none; /* Remove default appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
}

.cta-form select option {
    padding: 10px;
    font-size: 1rem;
}

/* Responsive styles for CTA section */
@media (max-width: 768px) {
    .cta-section {
        padding: 50px 15px;
    }
    
    .cta-container h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .cta-form {
        padding: 0 15px;
        gap: 12px;
        max-width: 500px;
    }

    .cta-form input,
    .cta-form select,
    .cta-form .submit-btn {
        height: 42px;
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .cta-button {
        padding: 10px 28px;
        font-size: 1rem;
    }
    
    .cta-button span:nth-child(2) {
        width: 16px;
        margin-left: 18px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 40px 12px;
    }
    
    .cta-container h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    .cta-form {
        padding: 0 10px;
        gap: 10px;
        max-width: 100%;
    }

    .cta-form input,
    .cta-form select,
    .cta-form .submit-btn {
        height: 40px;
        font-size: 0.85rem;
        padding: 8px;
        border-radius: 6px;
    }
    
    .cta-button {
        padding: 8px 24px;
        font-size: 0.9rem;
        box-shadow: 4px 4px 0 black;
    }
    
    .cta-button span:nth-child(2) {
        width: 14px;
        margin-left: 14px;
    }
    
    .cta-button:hover span:nth-child(2) {
        margin-right: 20px;
    }
}

/* Courses Section Styles */
.courses-section {
    padding: 80px 20px;
    background: white;
    text-align: center;
}

.courses-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.courses-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #007bff;
    border-radius: 2px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.course-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.course-card:hover::before {
    opacity: 1;
}

.course-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.course-card:hover .course-icon {
    transform: scale(1.1);
}

.course-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.course-card:hover h3 {
    color: #007bff;
}

/* ============================================= */
/* RESPONSIVE STYLES FOR COURSES SECTION */
/* ============================================= */

/* Large tablet and below (992px) */
@media (max-width: 992px) {
    .courses-section {
        padding: 60px 15px;
    }
    
    .courses-section h2 {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
        padding: 0 15px;
    }
}

/* Tablet and small desktop (768px and below) */
@media (max-width: 768px) {
    .courses-section {
        padding: 50px 15px;
    }
    
    .courses-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .courses-section h2::after {
        width: 70px;
        height: 3px;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 0 10px;
    }

    .course-card {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .course-icon {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .course-card h3 {
        font-size: 1.1rem;
    }
    
    /* Reduce hover effects on tablets */
    .course-card:hover {
        transform: translateY(-5px);
    }
}

/* Mobile phones (600px and below) */
@media (max-width: 600px) {
    .courses-section {
        padding: 40px 12px;
    }
    
    .courses-section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .courses-section h2::after {
        width: 60px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 8px;
    }

    .course-card {
        padding: 20px 15px;
        border-radius: 10px;
    }

    .course-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .course-card h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
}

/* Small mobile phones (480px and below) */
@media (max-width: 480px) {
    .courses-section {
        padding: 35px 8px;
    }
    
    .courses-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .courses-section h2::after {
        width: 50px;
        height: 3px;
        bottom: -8px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }

    .course-card {
        padding: 18px 10px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .course-icon {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .course-card h3 {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Disable hover effects on mobile */
    .course-card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    .course-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    .courses-section {
        padding: 30px 5px;
    }
    
    .courses-section h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 3px;
    }

    .course-card {
        padding: 15px 8px;
    }

    .course-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .course-card h3 {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

/* Landscape mode for phones */
@media (max-height: 600px) and (orientation: landscape) {
    .courses-section {
        padding: 30px 15px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .course-card {
        padding: 12px 10px;
    }
    
    .course-icon {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .course-card h3 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .course-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.1);
    }
    
    .course-card:active {
        background: rgba(0, 123, 255, 0.05);
    }
}


/* Enhanced Footer Styles */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.footer-main {
    padding: 70px 0 50px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
}

.footer-section h3 i {
    color: #ffd700;
    font-size: 1.1rem;
}

/* Footer About Section */
.footer-about {
    padding-right: 20px;
}

.footer-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-about p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 15px 0;
    font-size: 0.95rem;
}

.footer-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.footer-badges .badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.footer-badges .badge i {
    color: #ffd700;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-links a span {
    color: #ffd700;
    font-weight: bold;
}

.footer-links a:hover {
    color: #ffd700;
    transform: translateX(5px);
}

/* Location List */
.location-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 3px solid #ffd700;
    transition: all 0.3s ease;
}

.location-item strong {
    display: block;
    color: #ffffff;
    margin-bottom: 5px;
}

.location-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Contact */
.footer-contact {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 1.1rem;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.contact-item p {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px 15px;
}

.footer-section ul li {
    margin-bottom: 0;
}

.footer-section ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #007bff;
    transform: translateX(5px);
}

.footer-section p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p i {
    color: #007bff;
    font-size: 1.2rem;
}

/* Social Section */
.social-section {
    margin-top: 30px;
}

.social-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.social-facebook {
    background: #3b5998;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-linkedin {
    background: #0077b5;
}

.social-youtube {
    background: #ff0000;
}

.social-twitter {
    background: #1da1f2;
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    margin-top: 50px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: #ffd700;
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.4);
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-payment span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-payment i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-payment i:hover {
    color: #ffd700;
    transform: scale(1.2);
}

/* ============================================= */
/* RESPONSIVE STYLES FOR FOOTER */
/* ============================================= */

/* Large tablet and below (992px) */
@media (max-width: 992px) {
    .footer {
        margin-top: 60px;
    }
    
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        padding: 0 20px;
    }
    
    .footer-about {
        padding-right: 15px;
    }
}

/* Tablet and small desktop (768px and below) */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 50px;
    }
    
    .footer-wave {
        top: -60px;
    }
    
    .footer-wave svg {
        height: 60px;
    }
    
    .footer-main {
        padding: 40px 0 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-section {
        text-align: left;
        padding: 0 10px;
    }
    
    .footer-about {
        padding-right: 0;
    }

    .footer-section h3 {
        text-align: left;
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .footer-section h3::after {
        left: 0;
        transform: none;
        width: 50px;
    }
    
    .footer-logo {
        width: 70px;
        height: 70px;
    }
    
    .footer-about p {
        font-size: 0.95rem;
    }
    
    .footer-badges {
        gap: 10px;
    }
    
    .footer-badges .badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .social-icons {
        justify-content: flex-start;
        gap: 12px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-contact {
        gap: 12px;
    }
    
    .contact-item i {
        width: 38px;
        height: 38px;
    }

    .footer-bottom {
        text-align: center;
        padding: 20px 15px;
        margin-top: 35px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-payment {
        justify-content: center;
    }
}

/* Mobile phones (600px and below) */
@media (max-width: 600px) {
    .footer {
        margin-top: 40px;
    }
    
    .footer-wave {
        top: -40px;
    }
    
    .footer-wave svg {
        height: 40px;
    }
    
    .footer-main {
        padding: 35px 0 20px;
    }
    
    .footer-content {
        gap: 25px;
        padding: 0 15px;
    }
    
    .footer-section {
        padding: 0 5px;
    }
    
    /* Hide Our Programs section on mobile */
    .footer-section:nth-child(2) {
        display: none;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }
    
    .footer-section h3::after {
        width: 45px;
        height: 2px;
    }
    
    .footer-logo {
        width: 60px;
        height: 60px;
    }
    
    .footer-about p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .footer-badges {
        gap: 8px;
    }
    
    .footer-badges .badge {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .footer-links {
        gap: 10px 12px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-contact {
        gap: 12px;
    }
    
    .contact-item {
        gap: 10px;
    }
    
    .contact-item i {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 18px 12px;
        margin-top: 30px;
    }
    
    .footer-copyright p {
        font-size: 0.85rem;
    }
    
    .footer-bottom-links {
        gap: 8px;
    }
    
    .footer-bottom-links a {
        font-size: 0.85rem;
    }
    
    .footer-payment {
        gap: 8px;
    }
    
    .footer-payment span {
        font-size: 0.85rem;
    }
    
    .footer-payment i {
        font-size: 1.3rem;
    }
    
    /* Horizontal layout for location list on mobile */
    .location-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .location-item {
        flex: 1;
        min-width: 150px;
        padding: 12px 12px;
    }
    
    .location-item strong {
        font-size: 0.85rem;
    }
    
    .location-item p {
        font-size: 0.8rem;
    }
    
    /* Horizontal layout for contact items on mobile */
    .footer-contact {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .contact-item {
        flex: 1;
        min-width: 140px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-item i {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .contact-item div {
        flex: none;
    }
    
    .contact-item strong {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    .contact-item p {
        font-size: 0.8rem;
    }
    
    .footer-section ul {
        gap: 8px 12px;
    }
}

/* Small mobile phones (480px and below) */
@media (max-width: 480px) {
    .footer {
        margin-top: 30px;
    }
    
    .footer-wave {
        top: -30px;
    }
    
    .footer-wave svg {
        height: 30px;
    }
    
    .footer-main {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 12px;
    }
    
    .footer-section {
        padding: 0;
    }
    
    /* Hide Our Programs section on small mobile */
    .footer-section:nth-child(2) {
        display: none;
    }
    
    .footer-section h3 {
        font-size: 1.05rem;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .footer-section h3::after {
        width: 40px;
        height: 2px;
    }
    
    .footer-section h3 i {
        font-size: 1rem;
    }
    
    .footer-logo {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }
    
    .footer-about {
        padding-right: 0;
    }
    
    .footer-about p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 12px 0;
    }
    
    .footer-badges {
        gap: 8px;
        margin-top: 12px;
    }
    
    .footer-badges .badge {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-contact {
        gap: 10px;
    }
    
    .contact-item {
        gap: 8px;
        padding: 8px 0;
    }
    
    .contact-item i {
        font-size: 0.95rem;
        width: 35px;
        height: 35px;
    }
    
    .contact-item strong {
        font-size: 0.8rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        padding: 15px 10px;
        margin-top: 25px;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .footer-bottom-links {
        gap: 6px;
    }
    
    .footer-bottom-links span {
        display: none;
    }
    
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
    
    .footer-payment {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-payment span {
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }
    
    .footer-payment i {
        font-size: 1.2rem;
    }
    
    /* Horizontal layout for location list on small mobile */
    .location-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .location-item {
        flex: 1;
        min-width: 130px;
        padding: 10px 10px;
        border-left: 3px solid #ffd700;
    }
    
    .location-item strong {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .location-item p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Horizontal layout for contact items on small mobile */
    .footer-contact {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .contact-item {
        flex: 1;
        min-width: 120px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 0;
    }
    
    .contact-item i {
        font-size: 1rem;
        width: 38px;
        height: 38px;
    }
    
    .contact-item strong {
        font-size: 0.9rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    .footer-main {
        padding: 25px 0 12px;
    }
    
    .footer-content {
        gap: 18px;
        padding: 0 10px;
    }
    
    .footer-section h3 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .footer-logo {
        width: 45px;
        height: 45px;
    }
    
    .footer-about p {
        font-size: 0.8rem;
    }
    
    .footer-badges .badge {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .footer-links {
        gap: 6px 8px;
    }
    
    .footer-links a,
    .contact-item p {
        font-size: 0.8rem;
    }
    
    .footer-contact {
        gap: 8px;
    }
    
    .contact-item {
        gap: 6px;
        padding: 6px 0;
    }
    
    .contact-item i {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .contact-item strong {
        font-size: 0.75rem;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 12px 8px;
    }
    
    .footer-copyright p,
    .footer-bottom-links a,
    .footer-payment span {
        font-size: 0.75rem;
    }
    
    /* Horizontal layout for location list on extra small screens */
    .location-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .location-item {
        flex: 1;
        min-width: 110px;
        padding: 8px 8px;
    }
    
    .location-item strong {
        font-size: 0.75rem;
    }
    
    .location-item p {
        font-size: 0.7rem;
    }
    
    /* Horizontal layout for contact items on extra small screens */
    .footer-contact {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .contact-item {
        flex: 1;
        min-width: 100px;
        flex-direction: column;
        text-align: center;
        gap: 4px;
        padding: 0;
    }
    
    .contact-item i {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .contact-item strong {
        font-size: 0.7rem;
    }
    
    .contact-item p {
        font-size: 0.7rem;
    }
    
    .footer-section ul {
        gap: 5px 8px;
    }
}

/* Landscape mode for phones */
@media (max-height: 600px) and (orientation: landscape) {
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-section h3 {
        margin-bottom: 12px;
    }
    
    .footer-about p {
        margin: 12px 0;
    }
    
    .footer-bottom {
        padding: 15px 10px;
        margin-top: 20px;
    }
}

/* Auth Popup Styles */
.auth-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* Ensure auth popup uses flexbox when shown */
.auth-popup[style*="display: flex"],
.auth-popup[style*="display:flex"] {
    display: flex !important;
}

/* ===== MODERN TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    margin-bottom: 12px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}

/* Toast Show/Hide Animations */
.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

/* Toast Types */
.toast.success {
    border-left-color: #10b981;
}

.toast.success .toast-icon {
    background: #d1fae5;
    color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    background: #fee2e2;
    color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast.info .toast-icon {
    background: #dbeafe;
    color: #3b82f6;
}

/* Toast Icon */
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: bold;
}

/* Toast Content */
.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: #1f2937;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(107, 114, 128, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(107, 114, 128, 0.2);
    color: #374151;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    transform-origin: left;
    animation: toast-progress 5s linear forwards;
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
        margin-bottom: 8px;
    }

}

/* ===== PASSWORD AUTHENTICATION STYLES ===== */
.login-method-toggle {
    display: flex;
    gap: 15px;
    margin: 18px 0 20px 0;
    justify-content: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 9px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.toggle-label:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
}

.toggle-label input[type="radio"] {
    margin-right: 8px;
    accent-color: #007bff;
    width: 18px;
    height: 18px;
}

.toggle-label input[type="radio"]:checked + span {
    color: #007bff;
    font-weight: 700;
}

.toggle-label:has(input:checked) {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
    font-size: 12px;
}

/* Password match indicator */
.password-match {
    margin-top: 8px;
    font-size: 12px;
}

/* Password Login Group */
#passwordLoginGroup {
    margin-bottom: 4px;
}

/* Forgot Password Link */
.forgot-password-link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
    position: relative;
}

.forgot-password-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.forgot-password-link:hover {
    color: #0056b3;
}

.forgot-password-link:hover::after {
    width: 100%;
}

/* Back button styling - Removed duplicate (using the one at line 1585) */

/* Form buttons container - Removed duplicate (using the one at line 1558) */

/* Password Input Wrapper with Eye Icon */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px; /* Make room for the eye icon */
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.toggle-password:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

.toggle-password i {
    font-size: 18px;
    pointer-events: none;
}

/* Password input styling */
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="password"]:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}


.auth-popup-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease;
}

.auth-popup h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.auth-popup p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.auth-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.login-btn {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.login-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
    transform: translateY(-2px);
}

.signup-btn {
    background: #007bff;
    color: white;
}

.signup-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #333;
}

@media (max-width: 768px) {
    .auth-popup-content {
        padding: 25px;
        width: 95%;
    }

    .auth-popup h2 {
        font-size: 1.6rem;
    }

    .auth-popup p {
        font-size: 1rem;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .auth-btn {
        width: 100%;
    }
}

/* Hero Loader Styles */
.hero-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    gap: 20px;
}

.hero-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    box-sizing: border-box;
    position: relative;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

.loader:after, .loader:before {
    content: "";
    width: 24px;
    height: 24px;
    position: absolute;
    border-radius: 50%;
    background: #FF3D00;
    animation: spin 1s linear infinite;
    transform-origin: 0px 100%;
}

.loader:before {
    transform-origin: 0 50%;
    background: #fff;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}


/* ============================================= */
/* MOBILE RESPONSIVE - LOGIN & SIGNUP FORMS */
/* ============================================= */

/* Tablet and small desktop (768px and below) */
@media (max-width: 768px) {
    .popup {
        width: 95%;
        max-width: 420px;
        padding: 18px 15px;
        max-height: 85vh;
    }
    
    .popup h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    /* Form inputs */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        height: 48px;
        padding: 12px 14px;
    }
    
    .password-input-wrapper input {
        padding-right: 48px;
    }
    
    /* Toggle buttons for login method */
    .login-method-toggle {
        gap: 12px;
        margin: 16px 0 18px 0;
    }
    
    .toggle-label {
        padding: 9px 18px;
        font-size: 14px;
    }
    
    .toggle-label input[type="radio"] {
        width: 16px;
        height: 16px;
    }
    
    /* Submit and back buttons */
    .submit-btn,
    .back-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .form-buttons {
        gap: 10px;
        margin-top: 16px;
    }
    
    /* Password toggle eye icon */
    .toggle-password {
        padding: 10px;
        right: 8px;
    }
    
    .toggle-password i {
        font-size: 20px;
    }
    
    /* OTP input fields */
    #centerOTP, #schoolOTP, #loginOTP {
        font-size: 1.6rem;
        letter-spacing: 6px;
        padding: 16px 12px;
    }
    
    /* Resend button */
    .resend-btn {
        padding: 11px 16px;
        font-size: 14px;
    }
}

/* Mobile phones (600px and below) */
@media (max-width: 600px) {
    .popup {
        width: 98%;
        padding: 15px 12px;
        margin: 10px;
        border-radius: 10px;
    }
    
    .popup h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    
    /* Form groups spacing */
    .form-group {
        margin-bottom: 4px;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    /* Inputs */
    .form-group input,
    .form-group select {
        height: 42px;
        font-size: 15px;
        padding: 9px 10px;
    }
    
    .password-input-wrapper input {
        padding-right: 45px;
    }
    
    /* Login method toggle - stack vertically on very small screens */
    .login-method-toggle {
        flex-direction: row;
        gap: 8px;
        margin: 10px 0 12px 0;
    }
    
    .toggle-label {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Buttons */
    .submit-btn,
    .back-btn {
        padding: 10px 16px;
        font-size: 13px;
        margin-top: 10px;
    }
    
    .form-buttons {
        gap: 6px;
        margin-top: 10px;
    }
    
    /* Forgot password link */
    .forgot-password-link {
        font-size: 12px;
        margin-top: 6px;
    }
    
    /* Popup close button */
    .popup-close {
        font-size: 20px;
        top: 10px;
        right: 12px;
        width: 30px;
        height: 30px;
    }
    
    /* OTP steps */
    #centerOTPStep, #schoolOTPStep, #loginOTPStep {
        padding: 15px;
        margin-top: 15px;
    }
    
    .signup-option-btn {
        padding: 12px;
    }
}

/* Small mobile phones (480px and below) */
@media (max-width: 480px) {
    .popup {
        width: 100%;
        margin: 3px;
        padding: 12px 8px;
        border-radius: 8px;
        max-height: 90vh;
    }
    
    .popup h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        padding-bottom: 5px;
    }
    
    .popup h2::after {
        width: 35px;
        height: 2px;
    }
    
    /* Form groups */
    .form-group {
        margin-bottom: 3px;
    }
    
    .form-group label {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    /* Inputs - larger touch targets */
    .form-group input,
    .form-group select {
        height: 40px;
        font-size: 14px;
        padding: 8px 9px;
        border-radius: 6px;
    }
    
    .password-input-wrapper input {
        padding-right: 40px;
    }
    
    /* Login method toggle - smaller on tiny screens */
    .login-method-toggle {
        gap: 5px;
        margin: 6px 0 8px 0;
    }
    
    .toggle-label {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 18px;
    }
    
    .toggle-label input[type="radio"] {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }
    
    /* Buttons - full width on very small screens */
    .submit-btn,
    .back-btn {
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .form-buttons {
        gap: 5px;
        margin-top: 8px;
        flex-direction: column;
    }
    
    .form-buttons .back-btn,
    .form-buttons .submit-btn {
        width: 100%;
    }
    
    /* Password toggle */
    .toggle-password {
        padding: 6px;
        right: 5px;
    }
    
    .toggle-password i {
        font-size: 16px;
    }
    
    /* OTP input */
    #centerOTP, #schoolOTP, #loginOTP {
        font-size: 1.3rem;
        letter-spacing: 4px;
        padding: 12px 8px;
    }
    
    .otp-timer {
        font-size: 12px;
        margin: 6px 0;
    }
    
    /* Resend button */
    .resend-btn {
        padding: 8px 12px;
        font-size: 11px;
        margin-top: 8px;
    }
    
    /* Forgot password link */
    .forgot-password-link {
        font-size: 11px;
        margin-top: 6px;
        padding: 2px 0;
    }
    
    /* Password strength & match indicators */
    .password-strength,
    .password-match {
        font-size: 10px;
        margin-top: 4px;
    }
    
    /* Close button */
    .popup-close {
        font-size: 20px;
        top: 8px;
        right: 10px;
        width: 28px;
        height: 28px;
    }
    
    /* Terms checkbox */
    .terms-group {
        font-size: 11px;
    }
    
    .terms-group input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    .popup {
        padding: 10px 6px;
        margin: 2px;
    }
    
    .popup h2 {
        font-size: 1rem;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    
    .form-group {
        margin-bottom: 2px;
    }
    
    .form-group label {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .form-group input,
    .form-group select {
        height: 38px;
        font-size: 13px;
        padding: 7px 8px;
    }
    
    .toggle-label {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .submit-btn,
    .back-btn {
        padding: 7px 10px;
        font-size: 10px;
    }
    
    #centerOTP, #schoolOTP, #loginOTP {
        font-size: 1.2rem;
        letter-spacing: 3px;
        padding: 10px 6px;
    }
}

/* Landscape mode adjustments for phones */
@media (max-height: 600px) and (orientation: landscape) {
    .popup {
        max-height: 95vh;
        overflow-y: auto;
        padding: 15px;
    }
    
    .popup h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group input,
    .form-group select {
        height: 40px;
        padding: 8px 12px;
    }
    
    .login-method-toggle {
        margin: 10px 0 12px 0;
    }
    
    .submit-btn,
    .back-btn {
        padding: 9px 18px;
        margin-top: 10px;
    }
    
    #centerOTPStep, #schoolOTPStep, #loginOTPStep {
        padding: 15px;
        margin-top: 15px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    
    /* Increase touch targets */
    .toggle-password {
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .popup-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .forgot-password-link {
        padding: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Prevent double-tap zoom */
    input, select, textarea, button {
        touch-action: manipulation;
    }
}
