/* Main Stylesheet - Onlinetutor Clone (Fully Responsive) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

:root {
    --primary-purple: #8b5cf6;
    --primary-violet: #a78bfa;
    --accent-orange: #ff6b35;
    --accent-red: #ef4444;
    --light-purple: #f3e8ff;
    --light-pink: #fce7f3;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --success: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Navigation */
header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(0.75rem, 3vw, 1.5rem) clamp(1rem, 5vw, 2rem);
    gap: 1rem;
}

.logo {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo-icon {
    width: clamp(24px, 3vw, 32px);
    height: clamp(24px, 3vw, 32px);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-violet));
    border-radius: 50%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex: 1;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: clamp(0.875rem, 2vw, 1rem);
    white-space: nowrap;
}

nav a:hover {
    color: var(--primary-purple);
}

.nav-buttons {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    align-items: center;
    flex-wrap: wrap;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--light-purple);
}

/* Buttons */
.btn {
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 2vw, 1rem);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
}

.btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: var(--accent-orange);
    color: white;
}

.btn-secondary:hover {
    background: #e55a2a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
    background: var(--light-purple);
}

.btn-small {
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.7rem, 2vw, 1rem);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
    padding: clamp(2rem, 8vw, 4rem) clamp(1rem, 5vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.75rem, 7vw, 3.5rem);
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 3vw, 1.5rem);
    line-height: 1.2;
}

.hero h1 .highlight-orange {
    color: var(--accent-orange);
}

.hero h1 .highlight-purple {
    color: var(--primary-purple);
}

.hero p {
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    color: var(--text-light);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    justify-content: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 150px;
}

.hero-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: clamp(1.5rem, 4vw, 2rem) 0;
    flex-wrap: wrap;
}

.avatar {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    border-radius: 50%;
    background: #ddd;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    flex-shrink: 0;
}

.avatar-large {
    width: clamp(80px, 12vw, 100px);
    height: clamp(80px, 12vw, 100px);
}

.hero-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
    margin-top: clamp(2rem, 5vw, 3rem);
    padding: clamp(1.5rem, 3vw, 2rem) 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.partner-logo {
    color: #9ca3af;
    font-weight: 600;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    text-align: center;
}

/* Courses Section */
.courses-section {
    padding: clamp(2.5rem, 8vw, 4rem) clamp(1rem, 5vw, 2rem);
    background: #ffffff;
}

.section-header {
    max-width: 1400px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
}

.section-header h2 .highlight {
    color: var(--primary-purple);
}

.explore-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
    transition: gap 0.3s ease;
    white-space: nowrap;
}

.explore-link:hover {
    gap: 1rem;
}

.courses-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.course-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.course-image {
    width: 100%;
    height: clamp(150px, 30vw, 200px);
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.lesson-badge {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1rem);
    left: clamp(0.75rem, 2vw, 1rem);
    background: #10b981;
    color: white;
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.5rem, 1.5vw, 0.75rem);
    border-radius: 4px;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    font-weight: 600;
}

.course-body {
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.course-body a.btn {
    margin-top: auto;
}

.course-title {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.course-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.star {
    color: #fbbf24;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.instructor-avatar {
    width: clamp(28px, 5vw, 32px);
    height: clamp(28px, 5vw, 32px);
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}

.instructor-info {
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    min-width: 0;
}

.instructor-name {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-badge {
    display: inline-block;
    padding: clamp(0.3rem, 1vw, 0.4rem) clamp(0.6rem, 1.5vw, 0.8rem);
    border-radius: 20px;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    font-weight: 600;
}

.category-badge.design {
    background: #fecaca;
    color: #991b1b;
}

.category-badge.programming {
    background: #bfdbfe;
    color: #1e40af;
}

.category-badge.leadership {
    background: #fbcfe8;
    color: #831843;
}

.category-badge.marketing {
    background: #d1d5db;
    color: #374151;
}

.category-badge.language {
    background: #c7d2fe;
    color: #312e81;
}

/* User Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: minmax(200px, 250px) 1fr;
    gap: clamp(1.5rem, 4vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
}

.sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: clamp(1rem, 3vw, 1.5rem);
    height: fit-content;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: clamp(0.6rem, 1.5vw, 0.75rem) 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--light-purple);
    color: var(--primary-purple);
}

.dashboard-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: clamp(1.5rem, 4vw, 2rem);
}

/* Payment Page */
.payment-container {
    max-width: 900px;
    margin: clamp(1rem, 3vw, 2rem) auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: clamp(0.6rem, 2vw, 0.8rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.payment-method-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(0.5rem, 1.5vw, 0.6rem);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.payment-method-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: var(--primary-purple);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.payment-method-card.active h3,
.payment-method-card.active p {
    color: white;
}

.payment-icon {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
}

.payment-method-card h3 {
    margin-bottom: clamp(0.25rem, 0.75vw, 0.35rem);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 600;
    line-height: 1.1;
}

.payment-method-card p {
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    color: var(--text-light);
    line-height: 1.2;
}

.qr-code {
    width: clamp(150px, 40vw, 220px);
    height: clamp(150px, 40vw, 220px);
    background: white;
    border-radius: 12px;
    margin: clamp(1rem, 3vw, 1.5rem) auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.wallet-address {
    background: white;
    padding: clamp(0.75rem, 2vw, 1rem);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    word-break: break-all;
    margin: clamp(1rem, 3vw, 1.5rem) 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.countdown-timer {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--accent-orange);
    margin: clamp(0.75rem, 2vw, 1rem) 0;
}

/* Forms */
form {
    background: white;
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

input,
textarea,
select {
    width: 100%;
    padding: clamp(0.6rem, 1.5vw, 0.75rem);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Messages */
.message {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 6px;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--accent-red);
}

.message.warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* Admin Dashboard */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
}

.admin-table thead {
    background: var(--light-purple);
}

.admin-table th {
    padding: clamp(0.75rem, 2vw, 1rem);
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.admin-table td {
    padding: clamp(0.75rem, 2vw, 1rem);
    border-bottom: 1px solid var(--border-light);
    word-break: break-word;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 2rem);
    text-align: center;
}

footer > div {
    max-width: 1400px;
    margin: 0 auto;
}

footer p {
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

footer p:first-child {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

footer p:nth-child(3) {
    margin-top: clamp(0.75rem, 2vw, 1rem);
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 2rem auto;
}

.modal-header {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Media Queries */

/* Tablets and Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    nav {
        padding: clamp(0.75rem, 2vw, 1rem);
    }
    
    nav ul {
        gap: clamp(1rem, 2vw, 2rem);
    }
    
    .courses-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .payment-methods {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-light);
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-buttons {
        width: 100%;
        justify-content: space-between;
        order: 3;
    }
    
    .nav-buttons > span {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 1.5rem);
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        line-height: 1.3;
    }
    
    .hero p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: clamp(0.5rem, 1vw, 1rem);
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-video {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Courses Section */
    .section-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .explore-link {
        order: -1;
        width: 100%;
    }
    
    .courses-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: clamp(1rem, 2vw, 1.5rem);
    }
    
    /* Dashboard */
    .dashboard {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vw, 1.5rem);
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        height: auto;
    }
    
    .sidebar h3 {
        grid-column: 1 / -1;
    }
    
    .sidebar-menu {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .sidebar-menu li {
        margin: 0;
    }
    
    .sidebar-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Payment */
    .payment-methods {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    
    .payment-method-card {
        padding: 0.6rem 0.4rem;
    }
    
    .payment-icon {
        font-size: 1.5rem;
    }
    
    .payment-method-card h3 {
        font-size: 0.8rem;
    }
    
    .payment-method-card p {
        font-size: 0.6rem;
    }
    
    /* Forms */
    form {
        padding: clamp(1.25rem, 3vw, 1.5rem);
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Admin Table */
    .admin-table {
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.6rem;
    }
    
    /* Media Grid */
    .media-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    /* Navigation */
    nav {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-buttons {
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-buttons .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Hero */
    .hero {
        padding: clamp(1.5rem, 4vw, 2rem) 1rem;
    }
    
    .hero h1 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
        margin-bottom: 0.75rem;
    }
    
    .hero p {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Sections */
    .courses-section,
    .payment-container {
        padding: clamp(1.5rem, 3vw, 2rem) 1rem;
    }
    
    .section-header h2 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }
    
    /* Courses */
    .courses-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-card {
        border-radius: 8px;
    }
    
    .course-image {
        height: 150px;
    }
    
    .course-body {
        padding: 0.9rem;
    }
    
    .course-title {
        font-size: 1rem;
    }
    
    /* Dashboard */
    .dashboard {
        padding: 1rem;
        gap: 1rem;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .sidebar-menu {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    /* Payment */
    .payment-methods {
        grid-template-columns: 2fr 2fr;
        gap: 0.5rem;
    }
    
    .payment-method-card {
        padding: 0.5rem 0.4rem;
    }
    
    .payment-icon {
        font-size: 1.25rem;
    }
    
    .payment-method-card h3 {
        font-size: 0.75rem;
    }
    
    .payment-method-card p {
        font-size: 0.6rem;
    }
    
    .qr-code {
        width: 140px;
        height: 140px;
        margin: 1rem auto;
    }
    
    /* Forms */
    form {
        padding: 1rem;
        max-width: 100%;
    }
    
    label {
        font-size: 0.9rem;
    }
    
    input,
    textarea,
    select {
        padding: 0.6rem;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Tables */
    .admin-table {
        font-size: 0.75rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    /* Media Grid */
    .media-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        padding: 1.25rem;
    }
    
    .modal-header {
        font-size: 1.25rem;
    }
}

/* Extra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    nav {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    nav ul a {
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}
