body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
    background: #f3f4f6;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0f172a;
    color: #fff;
    padding: 0.9rem 2rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav li {
    display: inline-block;
}

nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: #38bdf8;
    transition: width 0.2s ease;
}

nav a:hover::after {
    width: 100%;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    position: relative;
}

.hero {
    background: radial-gradient(circle at top left, #38bdf8 0, #2563eb 35%, #0f172a 100%);
    color: #f9fafb;
    padding: 3.5rem 2.5rem;
    border-radius: 1.75rem;
    text-align: left;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: 20px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.2);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
    opacity: 0.7;
}

/* Hero Decorative Images */
.hero-decor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-decor-left {
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 154px;
    height: auto;
    max-height: 352px;
    object-fit: cover;
}

.hero-decor-right {
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 154px;
    height: auto;
    max-height: 352px;
    object-fit: cover;
}

/* Hide decorative images on smaller screens */
@media (max-width: 1200px) {
    .hero-decor {
        display: none;
    }
}

.hero h2 {
    font-size: 2.4rem;
    margin: 0 0 0.5rem;
}

.hero p {
    max-width: 32rem;
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    font-size: 0.8rem;
    margin-bottom: 0.9rem;
}

.hero-tagline span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.hero-stats div strong {
    display: block;
    font-size: 1.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #facc15;
    color: #1f2937;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
}

.btn:hover {
    background: #fde047;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-greeting {
    color: #94a3b8;
    font-size: 0.9rem;
}

.portals {
    padding: 2.8rem 0 0;
}

.portals h2 {
    margin: 0;
    font-size: 1.4rem;
    text-align: left;
}

.portals p {
    margin: 0.5rem 0 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.portal-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.portal-link {
    display: block;
    padding: 1.4rem 1.5rem;
    border-radius: 1.1rem;
    text-decoration: none;
    color: #111827;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    border: 1px solid #e5e7eb;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    font-weight: 600;
}

.portal-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    border-color: #38bdf8;
}

footer {
    background-color: #0f172a;
    color: #9ca3af;
    padding: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Auth Page Styles */
.auth-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.auth-tab:hover {
    color: #334155;
    background: #e2e8f0;
}

.auth-tab.active {
    background: #ffffff;
    color: #0f172a;
    border-bottom-color: #2563eb;
}

.auth-form {
    padding: 2rem 2rem 2.5rem;
}

.auth-form h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #0f172a;
}

.auth-form .subtitle {
    margin: 0 0 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.auth-form .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.auth-form .btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links p {
    margin: 0.75rem 0 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.forgot-link {
    display: block;
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.forgot-link a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.85rem;
}

.forgot-link a:hover {
    text-decoration: underline;
}

/* Auth header styling */
.auth-page-header {
    background: transparent;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.auth-page-header h1 a {
    color: #ffffff;
    text-decoration: none;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 100;
}

.modal-overlay.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 101;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
}

.modal.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 70px);
}

/* Courses Grid in Modal */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.course-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.course-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.course-card-image {
    height: 140px;
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    position: relative;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wishlist-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #ef4444;
}

.wishlist-btn.active:hover {
    color: #dc2626;
}

.course-card-body {
    padding: 1rem;
}

.course-card-body h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #0f172a;
}

.course-card-body p {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
}

.course-card-price {
    font-weight: 700;
    color: #059669;
    font-size: 1rem;
}

.course-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.course-card-footer .btn {
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0369a1;
}

/* About Content */
.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.about-section p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.about-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
}

.about-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.value-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.value-item strong {
    display: block;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.value-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Contact Content */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.contact-info > p {
    margin: 0 0 1.5rem;
    color: #64748b;
    line-height: 1.5;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
}

.contact-item svg {
    color: #2563eb;
    flex-shrink: 0;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-block {
    display: block;
    width: 100%;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.empty-courses {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.empty-courses p {
    margin: 0;
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 200;
    display: none;
}

.notification.active {
    display: block;
    animation: slideUp 0.3s ease;
}

.notification.success {
    background: #059669;
}

.notification.error {
    background: #dc2626;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Scheduled Class Cards */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.class-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.class-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.class-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.class-card-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.class-card-course {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.class-card-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.class-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.class-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.class-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.class-card-actions .btn {
    flex: 1;
    min-width: fit-content;
    justify-content: center;
}

.class-card.live {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
}

.class-card.live .class-card-time {
    color: #16a34a;
}

/* Recording button animation */
.control-btn.recording {
    background: #dc2626 !important;
    animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

/* Whiteboard tool groups */
.whiteboard-tools,
.whiteboard-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.whiteboard-container {
    position: relative;
}

.whiteboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.whiteboard-header h3 {
    margin-right: auto;
}

.tool-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s;
}

.tool-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.tool-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.color-btn {
    width: 28px;
    height: 28px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 1px #e2e8f0;
    transition: transform 0.15s;
}

.color-btn:hover {
    transform: scale(1.15);
}

#textInputOverlay {
    position: absolute;
    z-index: 100;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#laserPointer {
    animation: laser-pulse 0.5s infinite alternate;
}

@keyframes laser-pulse {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.3); opacity: 0.7; }
}

/* Lesson Cards - Horizontal Layout */
.lessons-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lesson-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.lesson-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
    border-color: #3b82f6;
}

.lesson-card.live {
    border-left: 4px solid #22c55e;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.05) 0%, #fff 20%);
}

.lesson-card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    max-width: 140px;
    text-align: center;
    gap: 0.5rem;
}

.lesson-card.live .lesson-card-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.lesson-card-course {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.lesson-card-header .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255,255,255,0.25);
    color: white;
    border-radius: 20px;
    font-weight: 600;
}

.lesson-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lesson-card-title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.lesson-card-desc {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.lesson-card-schedule {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.5rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.starting-soon-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    margin-left: 0.5rem;
}

.lesson-card-footer {
    padding: 1rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
    justify-content: center;
    min-width: 160px;
    border-left: 1px solid #e2e8f0;
}

.lesson-card-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}

.lesson-card-footer .btn-primary {
    width: 100%;
}

.lesson-card-footer .btn-warning {
    width: 100%;
}

.lesson-card-footer .btn-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    font-size: 0.85rem;
}

.lesson-card-footer .btn-row {
    display: flex;
    gap: 0.35rem;
}

@media (max-width: 768px) {
    .lesson-card {
        flex-direction: column;
    }
    
    .lesson-card-header {
        min-width: 100%;
        max-width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
    }
    
    .lesson-card-footer {
        flex-direction: row;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    header {
        padding-inline: 1.2rem;
    }

    main {
        padding-inline: 1.1rem;
    }

    .hero {
        padding: 2.5rem 1.7rem;
    }

    .hero::after {
        right: -120px;
        top: 60px;
        width: 220px;
        height: 220px;
    }

    .hero h2 {
        font-size: 2rem;
    }
    
    .modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-body {
        max-height: calc(90vh - 70px);
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Spinner animation */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--primary, #3b82f6);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
