/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
}

/* Navigation */
nav {
    background-color: #000000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#community-nav {
    background-color: #ffffff;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;
}
#logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 300px;
}

#company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

#logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 3rem;
    transition: opacity 0.3s ease;
    margin-left: 2rem;
}

#community-nav a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    padding: 0.5rem 3rem;
    transition: opacity 0.3s ease;
    margin-left: 2rem;
    font-size: 1.3rem;
    position: relative;
}

#community-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    background-color: rgb(0, 0, 0);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#community-nav a:hover::after {
    width: 70%;
}

#community-nav a.active::after {
    width: 70%;
}

#community-nav a:hover {
    opacity: 0.8;
    color: rgb(0, 0, 0);
}

#community-nav a.active {
    color: rgb(0, 0, 0);
    font-weight: 600;
}

/* Header */
header {
    background: #000000;
    color: white;
    padding: 5rem 5%;
    text-align: center;
}

#community-header {
    background: #000000;
    color: white;
    padding: 1rem 5%;
    text-align: center;
}



header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

header p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

header a {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: #f0f0f0;
}

/* Sections */
section {
    padding: 4rem 5%;
    background: white;
    margin: 2rem auto;
    border-radius: 10px;
    max-width: 1200px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

section h2 {
    color: #000000;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #000000;
    border-radius: 2px;
}

/* About Section */
#about p {
    font-size: 1.1rem;
    color: #000000;
    line-height: 1.8;
}

/* More Section */
#more ul {
    list-style: none;
    padding: 0;
}

#more li {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    color: #000000;
}

#more li::before {
    content: '•';
    color: #000000;
    margin-right: 1rem;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Updates Section */
#updates ul {
    list-style: none;
    padding: 0;
}

#updates li {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1.1rem;
    }

    section {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    #logo {
        max-width: 250px;
        margin-bottom: 1rem;
    }

    nav a {
        margin-left: 0;
        padding: 0.8rem 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Authentication Styles */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.auth-container {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    border: 1px solid #e0e0e0;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #000000;
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #000000;
}

.auth-button {
    background: #000000;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.auth-button:hover {
    opacity: 0.9;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forgot-password {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
}

.signup-prompt {
    font-size: 0.9rem;
    color: #000000;
}

.signup-prompt a {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1.5rem;
    }
}

/* Contact Page Styles */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.contact-container {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 600px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.contact-content {
    margin-top: 2rem;
}

.contact-content p {
    margin-bottom: 1.5rem;
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.6;
}

.email-link {
    display: inline-block;
    color: #000000;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border: 2px solid #000000;
    border-radius: 5px;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.response-time {
    font-size: 0.9rem !important;
    color: #666666 !important;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .email-link {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Courses Page Styles */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.courses-grid section {
    margin: 0;  /* Override default section margin */
    height: 100%;  /* Make sections equal height */
    display: flex;
    flex-direction: column;
}

.course-button {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;  /* Push button to bottom */
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.course-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.course-button.premium {
    background-color: #ffffff;
    color: #000000;
}

.course-button.premium:hover {
    background-color: #000000;
    color: #ffffff;
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Back Button Styles */
.back-button-container {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid #000000;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .back-button-container {
        padding: 1rem;
    }
}

/* Course Layout Styles */
.course-container {
    display: flex;
    gap: 2rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
    padding-left: 0;  /* Remove left padding to allow nav to expand left */
}

.module-nav {
    width: 400px;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    position: static;
    height: fit-content;
    margin-left: 0;
}

.module-list {
    list-style: none;
    padding: 0;
}

.module-section {
    margin-bottom: 1.5rem;
}

.section-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #000000;
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0.5rem;
}

.subsection-list {
    list-style: none;
    padding-left: 1.5rem;  /* Increased padding for better readability */
}

.subsection-list li {
    margin: 0.5rem 0;
}

.subsection-list a {
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.7rem 1rem;  /* Increased padding for better clickable area */
    border-radius: 5px;
    transition: all 0.3s ease;
}

.subsection-list a:hover {
    background-color: #f5f5f5;
    padding-left: 1rem;
}

.subsection-list a.active {
    background-color: #000000;
    color: #ffffff;
    font-weight: 500;
    padding-left: 1rem;
}

@media (max-width: 768px) {
    .module-nav {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .subsection-list {
        padding-left: 0.5rem;
    }
}

.course-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.module-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: none;
}

.module-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.module-description ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.module-description li {
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .course-container {
        flex-direction: column;
        padding: 1rem;
    }

    .module-nav {
        width: 100%;
        position: relative;
        top: 0;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.course-thumbnail {
    width: 100%;
    height: 200px;  /* Fixed height to maintain container size */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

