:root {
    --primary-color: #4285f4;
    --primary-gradient: linear-gradient(135deg, #4285f4 0%, #7b68ee 100%);
    --secondary-color: #f093fb;
    --success-color: #00d4aa;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
}

.course-detail-page {
    background: linear-gradient(135deg, #f1f5ff 0%, #e8f2ff 100%);
    min-height: 100vh;
}

.course-detail-section {
    padding: 2rem 0 4rem;
}

.course-hero {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    /* position: relative; */
    overflow: auto;
    border: 1px solid rgba(66, 133, 244, 0.08);

}

/* .course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
} */

.package-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(66, 133, 244, 0.08);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    padding: 30px;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.package-title {
    font-size: 4.2rem;
    font-weight: 700;
    color: black;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.package-subtitle {
    margin-top: 10px;
    font-size: 3.4rem;
    font-weight: 900;
    color: blueviolet;
    margin-bottom: 1.5rem;
}

.course-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.package-tag {
    position: relative;
    top: 20px;
    /* right: 20px; */
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 240px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.course-her {
    display: flex;
    flex-wrap: wrap;
}

.course-her>div {
    display: flex;
    flex-direction: column;
}

.package-header,
.course-image-container {
    flex: 1/2;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    /* ensures both stretch equally */
}

.course-image-container img,
.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keeps image proportional */
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: white;
}

.meta-item i {
    color: white;
}

.price-tag .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

.course-image-container {
    position: relative;
}

.course-hero-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.course-header {
    padding: 25px 20px;
    text-align: center;
    margin: -1px -1px 0 -1px;
    border-radius: var(--border-radius);
    gap: 10px;
}

.package-header {
    /* background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(66, 133, 244, 0.08); */
    color: black;
    padding: 25px 20px;
    text-align: center;
    margin: -1px -1px 0 -1px;
    border-radius: var(--border-radius);
}

.placeholder-image {
    width: 100%;
    height: 250px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.course-content-row {
    margin-top: 4rem;
}

.course-content-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    /* overflow: hidden; */
    border: 1px solid rgba(66, 133, 244, 0.08);
}

.course-info-section,
.course-highlights-section,
.course-description-section {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.course-description-section {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.section-title i {
    color: var(--primary-color);
}

.info-grid,
.highlights-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

.info-item span {
    color: var(--text-light);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(66, 133, 244, 0.02);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--success-color);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(66, 133, 244, 0.04);
    transform: translateX(4px);
}

.highlight-item i {
    color: var(--success-color);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.description-content {
    color: var(--text-light);
    line-height: 1.7;
}

.course-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.purchase-card,
.features-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.purchase-card {
    padding: 2rem;
    text-align: center;
    background: white;
    border: 2px solid rgba(66, 133, 244, 0.12);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.price-display {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05) 0%, rgba(123, 104, 238, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(66, 133, 244, 0.1);
}

.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-purchase {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-purchase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-purchase:hover::before {
    left: 100%;
}

.btn-purchase:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.guarantee-text {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.guarantee-text i {
    color: var(--success-color);
}

.features-card {
    padding: 1.5rem;
    border: 1px solid rgba(66, 133, 244, 0.08);
}

.features-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(66, 133, 244, 0.02);
    color: var(--text-dark);
}

.feature-item i {
    color: var(--primary-color);
    width: 1.25rem;
}

/* Modal Styles */
.modern-modal {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modern-modal .modal-header {
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem 2rem;
}

.modern-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.modern-modal .close {
    color: white;
    opacity: 0.8;
    border: none;
    background: none;
    font-size: 1.5rem;
}

.modern-modal .close:hover {
    opacity: 1;
}

.course-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.course-summary h5 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.course-summary .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.billing-form .form-group {
    margin-bottom: 1.5rem;
}

.billing-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.billing-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.billing-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.custom-checkbox input[type="checkbox"] {
    margin-top: 0.125rem;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    border: none;
}

.modal-footer .btn-primary {
    background: var(--primary-gradient);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer .btn:hover {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {

    .package-hero {
        display: flex;
        flex-direction: column;
        /* align-items: center; */
        justify-content: center;
        justify-items: center;
        text-align: center;
        gap: 20px;
        padding: 30px;
        margin: 1px;
    }

    .package-header,
    .course-image-container {
        flex: 1/2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .course-hero {
        display: flex;
        flex-direction: column;
        /* align-items: center; */
        justify-content: center;
        justify-items: center;
        text-align: center;
        gap: 20px;
        padding: 30px;
        margin: 1px;
    }

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

    .course-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .course-info-section,
    .course-highlights-section,
    .course-description-section {
        padding: 1.5rem;
    }

    .purchase-card,
    .features-card {
        margin-bottom: 1rem;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-hero,
.course-content-card,
.purchase-card,
.features-card {
    animation: fadeInUp 0.6s ease-out;
}