@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ===== Global CSS Variables ===== */

:root {
    /* Main Color Palette */
    --primary-color: #2563eb;
    --primary-light: #93c5fd;
    --primary-dark: #1e40af;
    --secondary-color: #f97316;
    --secondary-light: #fed7aa;
    --secondary-dark: #c2410c;
    /* Neutral Colors */
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --black: #0f172a;
    --border-color: #e2e8f0;
    /* Feedback Colors */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-outline: 0 0 0 3px rgba(37, 99, 235, 0.2);
    /* Spacing System */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    /* Border Radius */
    --radius-sm: 0.125rem;
    /* 2px */
    --radius-md: 0.375rem;
    /* 6px */
    --radius-lg: 0.5rem;
    /* 8px */
    --radius-xl: 0.75rem;
    /* 12px */
    --radius-2xl: 1rem;
    /* 16px */
    --radius-3xl: 1.5rem;
    /* 24px */
    --radius-full: 9999px;
    /* Circle */
    --radius-special: 0 0.5rem;
    /* Special radius for buttons */
    /* Typography */
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono: Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    /* Z-index layers */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-auto: auto;
}


/* ===== Reset & Base Styles ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    font-size: var(--text-base);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ===== Container Styles ===== */

.course-container {
    max-width: 1200px;
    margin: var(--space-20) auto var(--space-10);
    padding: var(--space-6);
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.course-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}


/* ===== Course Title Section ===== */

.title {
    margin-top: var(--space-16);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.title h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--space-4);
    margin-left: var(--space-3);
    margin-top: var(--space-3);
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.title h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    border-radius: var(--radius-full);
}

.profile {
    display: flex;
    align-items: center;
    margin-top: var(--space-5);
    background-color: var(--light-bg);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    width: fit-content;
}

.profile img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-right: var(--space-3);
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.text {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-color);
}

.text span {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: 2px;
}


/* ===== Video Section ===== */

.video {
    margin: var(--space-8) 0;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0));
    z-index: 1;
    pointer-events: none;
}

.video iframe {
    width: 100%;
    height: 550px;
    border: none;
    display: block;
}

.p2 {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-light);
    background-color: var(--light-bg);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.p2 a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--primary-light);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.p2 a:hover {
    text-decoration-color: var(--primary-color);
}


/* ===== Course Info Section ===== */

.hr::before {
    content: "";
    position: absolute;
    height: 3px;
    width: 80px;
    border-radius: var(--radius-full);
}

#Course-info {
    color: var(--primary-color);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: var(--space-8) 0 var(--space-4);
    position: relative;
    display: inline-block;
    text-decoration: none;
}

#Course-info::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-light);
    border-radius: var(--radius-full);
}

.Course-info {
    background-color: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: var(--space-5) 0;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-normal);
}

.Course-info:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.h2 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--space-3);
    margin-top: var(--space-3);
    font-size: var(--text-xl);
}

.hidden-text,
.hien-text {
    display: none;
    color: var(--text-light);
    line-height: 1.8;
    margin-top: var(--space-3);
    padding-left: var(--space-4);
    border-left: 2px solid var(--border-color);
}

.show-more,
.sow-more {
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.show-more:hover,
.sow-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.show-more-content {
    cursor: pointer;
}


/* ===== Course Content Table ===== */

.table-container {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: var(--space-8) 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
}

.table-container h2 {
    color: var(--primary-color);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-5);
    position: relative;
    padding-bottom: var(--space-3);
    display: inline-block;
}

.table-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-4);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--text-base);
    transition: var(--transition-fast);
}

tr:hover td {
    background-color: var(--light-bg);
}

.table-container .head-table {
    color: var(--white) !important;
}

.head-table {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.head-table td {
    border-bottom: none;
}

.time {
    text-align: right;
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-sm);
    white-space: nowrap;
}


/* ===== Course Sidebar ===== */

.course-sidebar {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-8);
    position: relative;
    overflow: hidden;
}

.course-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.course-sidebar h3 {
    color: var(--text-color);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-color);
}

.course-content {
    margin-top: var(--space-4);
}

.course-content li {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-content li:hover {
    background-color: var(--light-bg);
    padding-left: var(--space-5);
    color: var(--primary-color);
}

.course-content li span {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-special);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-block;
    text-align: center;
    margin-top: var(--space-5);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
    left: 0;
}


/* ===== Reviews Section ===== */

.reviews-section {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: var(--space-8) 0;
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    opacity: 0.1;
    border-radius: 100% 0 0 0;
}

.reviews-section h2 {
    color: var(--primary-color);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-5);
    position: relative;
    padding-bottom: var(--space-3);
    display: inline-block;
}

.reviews-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

.review-form {
    background-color: var(--light-bg);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.review-form h3 {
    font-size: var(--text-lg);
    color: var(--text-color);
    margin-bottom: var(--space-4);
}

.review-form input,
.review-form textarea {
    width: 100%;
    margin: var(--space-3) 0;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    transition: var(--transition-normal);
    background-color: var(--white);
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-outline);
}


/* Star Rating System */

.star-rating {
    margin: var(--space-3) 0;
}

.star-rating p {
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--text-color);
}

.stars-container {
    display: flex;
    gap: var(--space-2);
}

.stars-container i {
    font-size: var(--text-2xl);
    color: var(--warning-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.stars-container i:hover {
    transform: scale(1.2);
}

.stars-container .fas {
    color: var(--warning-color);
}

.stars-container .far {
    color: var(--text-lighter);
}

.rating i {
    color: var(--warning-color);
    margin-right: 2px;
}

.review-button {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-special);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-block;
    margin-top: var(--space-3);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.review-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
    transition: var(--transition-normal);
    z-index: -1;
}

.review-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.review-button:hover::before {
    left: 0;
}

.carousel {
    margin-top: var(--space-6);
}

.review-card {
    background: var(--light-bg);
    padding: var(--space-5);
    margin: var(--space-4) 0;
    border-radius: var(--radius-lg);
    position: relative;
    border-left: 5px solid var(--primary-color);
    text-align: left;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.name {
    font-weight: 600;
    display: block;
    margin-top: var(--space-3);
    color: var(--text-color);
    font-size: var(--text-base);
}

.rating {
    color: var(--warning-color);
    font-size: var(--text-lg);
    margin-top: var(--space-2);
    display: block;
}

.review-card::before {
    content: "\201C";
    font-size: 60px;
    position: absolute;
    top: -20px;
    left: 10px;
    color: rgba(37, 99, 235, 0.1);
    font-family: var(--font-serif);
}

.review-date {
    font-size: var(--text-xs);
    color: var(--text-lighter);
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
}


/* ===== Responsive Design ===== */

@media screen and (max-width: 992px) {
    .course-container {
        padding: var(--space-4);
        margin-top: var(--space-16);
    }
    .video iframe {
        height: 450px;
    }
    .table-container,
    .reviews-section {
        margin: var(--space-5) 0;
        padding: var(--space-5);
    }
    .title h2 {
        font-size: var(--text-2xl);
    }
}

@media screen and (max-width: 768px) {
     :root {
        --space-20: 4rem;
        --space-16: 3rem;
        --space-12: 2.5rem;
        --space-10: 2rem;
        --space-8: 1.5rem;
    }
    .title h2 {
        font-size: var(--text-2xl);
    }
    .video iframe {
        height: 350px;
    }
    .profile img {
        width: 40px;
        height: 40px;
    }
    .text {
        font-size: var(--text-xs);
    }
    .table-container,
    .reviews-section,
    .Course-info,
    .course-sidebar {
        padding: var(--space-4);
    }
    .table-container h2,
    .reviews-section h2,
    #Course-info {
        font-size: var(--text-xl);
    }
}

@media screen and (max-width: 576px) {
     :root {
        --space-16: 2.5rem;
        --space-12: 2rem;
        --space-10: 1.5rem;
        --space-8: 1.25rem;
        --space-6: 1rem;
    }
    .title h2 {
        font-size: var(--text-xl);
    }
    .video iframe {
        height: 250px;
    }
    .table-container,
    .reviews-section {
        margin: var(--space-4) 0;
        padding: var(--space-3);
    }
    .btn-primary,
    .review-button {
        width: 100%;
        padding: var(--space-3);
        text-align: center;
    }
    td {
        padding: var(--space-3);
        font-size: var(--text-sm);
    }
    .review-form {
        padding: var(--space-3);
    }
    .review-card {
        padding: var(--space-4);
    }
}