:root {
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-dark: #4338ca;
    /* Indigo 700 */
    --secondary-color: #ec4899;
    /* Pink 500 */
    --bg-color: #f3f4f6;
    /* Gray 100 */
    --text-color: #1f2937;
    /* Gray 800 */
    --text-light: #6b7280;
    /* Gray 500 */
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-content {
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        gap: 2.5rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.5s;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-color);
        position: relative;
        padding: 10px 20px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(79, 70, 229, 0.1);
        color: var(--primary-color);
        transform: scale(1.05);
    }

    /* Hamburger animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 7px);
        background-color: var(--secondary-color);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
        background-color: var(--secondary-color);
    }
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 100%);
    border-radius: 0 0 50% 50% / 40px;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card-content {
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (min-width: 1024px) {
    /* No generic override for grid-2 to prevent breaking admin layout */
}

.course-grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .course-grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-grid-view {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 1rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* Payment Page Styles */
.payment-container {
    padding: 40px 0;
}

.payment-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 767.98px) {
    .payment-container {
        padding: 10px 15px;
        /* Add horizontal padding to container */
    }

    .payment-card {
        width: 100%;
        /* Force full width on mobile */
        max-width: 100%;
        /* Override */
        padding: 20px 15px;
        /* Reduced side padding slightly */
        margin-top: 5px;
        box-sizing: border-box;
    }

    /* Ensure helper text is centered on mobile */
    .glass-panel p {
        text-align: center;
    }

    /* Adjust font sizes for very small screens */
    .payment-card h1 {
        font-size: 2em !important;
    }

    .payment-card h2 {
        font-size: 1.3rem !important;
    }
}

/* Generic Responsive Form Card */
.form-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

@media (max-width: 768px) {
    .form-card {
        padding: 20px 15px;
    }

    /* Force stack on tablets/mobile for better input accessibility */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .form-control {
        padding: 0.875rem 1rem;
        /* Larger touch target */
        font-size: 16px;
        /* Prevent IOS zoom on focus */
    }

    .container {
        padding: 0 15px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 45px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b858;
    transform: translateY(-3px);
    box-shadow: 2px 4px 6px #777;
    color: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 50px;
        right: 20px;
        font-size: 25px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/ *   C l a s s   A c t i o n s   M o b i l e   S t y l e s   * /   . c l a s s - a c t i o n s    {
       d i s p l a y :    f l e x ;
       a l i g n - i t e m s :    c e n t e r ;
       f l e x - w r a p :    w r a p ;
       g a p :    1 0 p x ;
       
}

   @ m e d i a   ( m a x - w i d t h :   6 4 0 p x )    {
       . c l a s s - a c t i o n s    {
           f l e x - d i r e c t i o n :    c o l u m n ;
           a l i g n - i t e m s :    s t r e t c h ;
           
    }

       . c l a s s - a c t i o n s   . b t n ,
       . c l a s s - a c t i o n s   f o r m    {
           w i d t h :    1 0 0 % ;
           
    }

       . c l a s s - a c t i o n s   f o r m   b u t t o n    {
           w i d t h :    1 0 0 % ;
           
    }

       . c l a s s - a c t i o n s   f o r m    {
           m a r g i n - r i g h t :    0    ! i m p o r t a n t ;
           
    }

       
}

     