:root {
    --primary: #ffa500;
    --dark-bg: #1a1a1a;
    --dark: #333333;
    --text-main: #333333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

nav,
main {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.capitalize{
    text-transform: capitalize;
}

section {
    /* border: solid; */
    width: 95%;
    margin: 20px auto;
}

.navbar {
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.logo img {
    width: 155px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    transition: var(--transition);
    /* border:solid; */
    padding-top: 10px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
}

/* Backdrop Overlay */
.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 999;
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
}


/* Large Screen Grid */
@media (min-width: 992px) {
    .main-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.mobile-nav-logo {
    display: none;
}

/* --- Tablet & Mobile Adjustments --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .mobile-nav-logo {
        display: block;
        width: 220px;
        max-width: 90%;
        margin-bottom: 20px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: -20px;
        left: 0;
        width: 70%;
        height: 100vh;
        background: rgb(32, 32, 32);
        flex-direction: column;
        padding: 20px;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        overflow-y: auto;
    }



    .nav-links a {
        color: white;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
    }

    .nav-close {
        align-self: flex-end;
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        padding: 0;
        margin-bottom: 20px;
        line-height: 1;
    }

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

/* User Courses Styles */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 600px));
    gap: 20px;
    padding: 20px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
}

.course-header {
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enrolled-date {
    font-size: 12px;
    color: grey;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge {
    background: #e7f5ea;
    color: #0fb13c;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.course-content {
    padding: 20px;
}

.course-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2rem;
}

.course-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.continue-btn {
    display: block;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.no-enrollments {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: #fdfdfd;
    border: 2px dashed #ddd;
    border-radius: 15px;
}

.no-enrollments-title {
    color: #999;
}

.no-enrollments-text {
    color: #666;
}

.browse-link {
    color: #ffa500;
    font-weight: bold;
}

/* Course Grid Container */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    padding: 20px;
}

/* Individual Course Card */
.course-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.course-header {
    padding: 12px 20px;
    background: #fcfcfc;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Status Colors */
.status-active {
    background: #e7f5ea;
    color: #0fb13c;
}

.status-coming-soon {
    background: #fff4e6;
    color: #ff922b;
}

.status-inactive {
    background: #f1f3f5;
    color: #868e96;
}

/* Card Body */
.course-body {
    padding: 20px;
    flex-grow: 1;
}

.course-title {
    margin: 0 0 12px 0;
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 700;
}

.course-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Action Button */
.course-btn {
    display: block;
    text-align: center;
    background: #1a1a1a;
    color: #ffffff;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.course-btn:hover {
    background: #ffa500;
    /* OnePlus Brand Orange */
}

.price-pill {
    background: #ffa500;
    color: #1a1a1a;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    white-space: nowrap;
}

/* Make it responsive for mobile */
@media (max-width: 600px) {
    .course-detail-header .container {
        flex-direction: column;
        text-align: center;
    }

    .price-pill {
        margin: 20px auto 0;
    }
}

/* Responsive for courses grid */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .course-card {
        margin: 0 10px;
    }

    .course-header {
        padding: 8px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .course-content,
    .course-body {
        padding: 15px;
    }

    .course-title {
        font-size: 1.1rem;
    }

    .course-description {
        font-size: 0.85rem;
    }

    .continue-btn,
    .course-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .courses-grid {
        padding: 5px;
    }

    .course-card {
        margin: 0 5px;
    }

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

    .course-description {
        font-size: 0.8rem;
    }

    .detail-title {
        font-size: 2rem;
    }

    .detail-desc {
        font-size: 1rem;
    }

    .module-title {
        font-size: 1.1rem;
    }

    .module-summary {
        font-size: 0.9rem;
    }

    .topic-name {
        font-size: 0.85rem;
    }
}



/* Header Branding */
.course-detail-header {
    background: #1a1a1a;
    color: white;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.detail-title {
    font-size: 2.5rem;
    margin: 0;
}

.detail-desc {
    font-size: 1.1rem;
    color: #ccc;
    margin-top: 15px;
    max-width: 700px;
}

.detail-meta {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.badge {
    background: #ffa500;
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Syllabus Accordion Style */
.syllabus-section {
    margin-bottom: 80px;
}

.section-heading {
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.module-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    overflow: hidden;
}

.module-trigger {
    padding: 20px;
    background: #fafafa;
}

.module-number {
    font-size: 0.75rem;
    color: #ffa500;
    font-weight: bold;
    text-transform: uppercase;
}

.module-title {
    margin: 5px 0;
    font-size: 1.2rem;
}

.module-summary {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Topics List */
.topic-list {
    border-top: 1px solid #f0f0f0;
}

.topic-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border-bottom: 1px solid #f9f9f9;
}

.topic-icon {
    margin-right: 15px;
    color: #999;
}

.topic-name {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #444;
}

.topic-tag {
    font-size: 0.7rem;
    color: #999;
    border: 1px solid #ddd;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Footer Action */
.enroll-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    width: auto !important;
    display: inline-block;
}






/* notify for course page */

.notify-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.notify-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffa500;
}

.course-tag {
    display: inline-block;
    padding: 5px 15px;
    background: #e7f1ff;
    color: #ffa500;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #ffa500;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #ffa500;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #0056b3;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}