{
                  background-color: white; /* Ensure the iframe has a white background */
                }

                * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #b425aa;
    --primary-light: #c80ec9;
    --accent: #D4AF37;
    --bg-dark: #1a1a1a;
    --bg-light: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --border: #e0e0e0;
    --success: #4caf50;
    --error: #f44336;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover:not(:disabled) {
    background: #f0c64a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--white);
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 30px;
    padding: 40px 0;
}

.sidebar {
    width: 350px;
    flex-shrink: 0;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Module List */
.module-item {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.module-item:hover {
    border-color: var(--primary);
    background: #fafafa;
}

.module-item.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(180, 37, 170, 0.05) 0%, rgba(200, 14, 201, 0.05) 100%);
}

.module-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.module-duration {
    font-size: 0.85rem;
    color: var(--text-light);
}

.progress-bar {
    background: var(--border);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    height: 100%;
    transition: width 0.5s;
}

/* Content Display */
.lesson-content {
    line-height: 1.8;
}

.lesson-content h2 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.lesson-content h3 {
    color: var(--primary-light);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.lesson-content p {
    margin-bottom: 15px;
}

.lesson-content ul,
.lesson-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.lesson-content li {
    margin-bottom: 10px;
}

.lesson-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

.lesson-content th,
.lesson-content td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
}

.lesson-content th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.lesson-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}

.lesson-content a {
    color: var(--primary);
    text-decoration: none;
}

.lesson-content a:hover {
    text-decoration: underline;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 8px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Navigation Buttons */
.lesson-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
    gap: 15px;
    flex-wrap: wrap;
}

/* Certificate Section */
.certificate-preview {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(180, 37, 170, 0.05) 0%, rgba(200, 14, 201, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.price-tag {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin: 20px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--primary);
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Certificate Canvas */
#certificateCanvas {
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* Success Message */
.success-message {
    background: var(--success);
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background: var(--error);
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* Stay Connected Section */
.stay-connected {
    background: var(--white);
    padding: 60px 0;
    margin-top: 60px;
}

.stay-connected h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.stay-connected .contact-image {
    text-align: center;
    margin-bottom: 30px;
}

.stay-connected .contact-image img {
    max-width: 250px;
    height: auto;
}

.stay-connected p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-info {
    text-align: center;
    margin: 30px 0;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-icons {
    text-align: center;
    margin: 30px 0;
}

.social-icons a {
    display: inline-block;
    margin: 0 15px;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons img {
    width: 40px;
    height: 40px;
}

.contact-form-section {
    background: #0a2540;
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    margin: 40px auto;
}

.contact-form-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--white);
}

.contact-form-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-section label {
    color: #c2e0f4;
    margin-bottom: 5px;
    display: block;
}

.contact-form-section input,
.contact-form-section textarea {
    width: 100%;
    background-color: #ffffff;
    color: #0a2540;
    border: 2px solid #f59e0b;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
}

.contact-form-section textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form-section button {
    background-color: #f59e0b;
    color: #0a2540;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form-section button:hover {
    background-color: #E08C00;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.form-footer span {
    color: #f59e0b;
    font-weight: 600;
    font-size: 18px;
}

/* Course Overview Section */
.overview-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.overview-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.overview-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.overview-card th,
.overview-card td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

.overview-card th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.overview-card ul, .overview-card ol {
    padding-left: 30px;
    margin: 10px 0;
}

.overview-card ul ul {
    margin-top: 8px;
}

.module-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.module-overview-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.95rem;
    background: white;
    border: 2px solid var(--border);
    color: var(--primary);
    transition: all 0.2s;
}

.module-overview-btn:hover {
    border-color: var(--primary);
    background: rgba(180, 37, 170, 0.05);
    transform: translateY(-2px);
}

/* Module Grid for Hub Page */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.module-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.module-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.module-card p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.module-card .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Boundary List */
.boundary-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.boundary-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--error);
}

.healthy-item {
    border-left-color: var(--success);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 968px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .site-title {
        font-size: 1rem;
    }

    .modal-content {
        padding: 20px;
    }

    .lesson-content table {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 40px 0;
    }

    .price-tag {
        font-size: 2rem;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
