/* Course Page Styles */

/* Global Styles */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #1B760A;
    --primary-light: #E8F5E9;
    --secondary-color: #FF9B10;
    --text-dark: #333333;
    --text-light: #666666;
    --text-gray: #ADB5BD;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
}

/* Hero Section */
.course-hero {
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/dna.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 74px;
}

.course-hero .hero-content {
    text-align: left;
    color: var(--white);
}

.course-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #FF9B10;
    color: var(--white);
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-green {
    background-color: #4CAF50;
}

.btn-primary:hover {
    background-color: #e88c05;
    transform: translateY(-2px);
}

.btn-green:hover {
    background-color: #3d8b40;
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    font-size: 16px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light);
    margin: 0 8px;
    font-size: 14px;
}

.breadcrumbs span:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

/* Course Content */
.course-content {
    padding: 60px 0;
}

.course-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.course-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.course-info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.course-description p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-light);
}

.course-sidebar .course-details-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.course-details-card h3 {
    color: #4CAF50;
    font-size: 22px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.detail-item i {
    font-size: 24px;
    color: #777;
    margin-right: 15px;
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-text span {
    margin-bottom: 5px;
    font-size: 16px;
    color: var(--text-dark);
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 25px 0;
    text-align: left;
}

/* Learning Section */
.learning-section {
    margin-bottom: 60px;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.learning-item {
    display: flex;
    align-items: flex-start;
}

.learning-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 15px;
    margin-top: 3px;
}

.learning-item p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Curriculum Section */
.curriculum-section {
    margin-bottom: 60px;
}

.curriculum-modules {
    border-radius: 8px;
    overflow: hidden;
}

.module {
    background-color: var(--light-bg);
    margin-bottom: 10px;
    border-radius: 8px;
}

.module-header {
    padding: 20px;
    background-color: var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.module-header:hover {
    background-color: var(--primary-light);
}

.module-header h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.module-header i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.module-header.active i {
    transform: rotate(180deg);
}

.module-content {
    padding: 0 20px 20px;
    background-color: var(--card-bg);
}

.module-content.hidden {
    display: none;
}

.topic {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.topic:last-child {
    border-bottom: none;
}

.topic i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 16px;
    margin-top: 2px;
}

.topic p {
    margin: 0;
    color: var(--text-light);
}

/* Instructors Section */
.instructors-section {
    margin-bottom: 60px;
}

.instructor-card {
    display: flex;
    gap: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.instructor-image {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.instructor-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.instructor-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 60px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.review-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.reviewer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.review-date {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.review-stars {
    color: var(--secondary-color);
    font-size: 14px;
}

.review-content p {
    color: var(--text-light);
    line-height: 1.5;
}

.hidden-reviews {
    transition: all 0.5s ease;
}

.hidden-reviews.hidden {
    display: none;
}

.read-more-container {
    text-align: center;
}

/* Registration Section */
.registration-section {
    margin-bottom: 60px;
}

.registration-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.registration-heading h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.registration-form {
    margin-top: 25px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    background-color: #F6F9F4;
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
}

.form-checkbox input {
    margin-right: 10px;
    margin-top: 3px;
}

.form-disclaimer {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.4;
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .course-info-section {
        grid-template-columns: 1fr;
    }
    
    .learning-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .instructor-card {
        flex-direction: column;
    }
    
    .instructor-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .registration-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .course-hero {
        height: 250px;
    }
    
    .course-hero h1 {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .course-content h2 {
        font-size: 28px;
    }
    
    .course-content h3 {
        font-size: 22px;
    }
}
