/* Student Pack & Video Bundle Card Styling */

/* Common Card Base */
.single-courses-box {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.courses-image-container {
    height: 235px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.courses-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.single-courses-box:hover .courses-image-container img {
    transform: scale(1.05);
}

.fallback-cover-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
    padding: 15px;
}
.fallback-cover-box i {
    font-size: 64px;
    margin-bottom: 10px;
    opacity: 0.85;
}

.courses-tag-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 123, 255, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.courses-content-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.courses-content-body h3,
.courses-content-body h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}
.courses-content-body h3 a,
.courses-content-body h4 a {
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.courses-box-footer-btn {
    padding: 15px 20px;
}

.btn-action-pack,
.btn-watch-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-watch-now,
.btn-add-payment {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}
.btn-watch-now:hover,
.btn-add-payment:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}
.btn-watch-videos {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.btn-watch-videos:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.btn-pending-payment {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    cursor: default !important;
}
.btn-pending-payment:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Light Mode Default Styles
   ========================================================================== */
.section-header-title {
    color: #0f172a;
    font-weight: 700;
}

.single-courses-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.single-courses-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 123, 255, 0.18);
    border-color: #007bff;
}

.courses-image-container {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.fallback-cover-box {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #007bff;
}

.courses-content-body h3 a,
.courses-content-body h4 a {
    color: #1e293b;
}
.courses-content-body h3 a:hover,
.courses-content-body h4 a:hover {
    color: #007bff;
}

.courses-box-footer-btn {
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.back-btn-custom {
    color: #1e293b;
    border-color: #cbd5e1;
}
.back-btn-custom:hover {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

/* ==========================================================================
   Dark Mode Styles (.theme-dark)
   ========================================================================== */
.theme-dark .section-header-title {
    color: #ffffff;
}

.theme-dark .single-courses-box {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.theme-dark .single-courses-box:hover {
    box-shadow: 0 16px 32px rgba(0, 123, 255, 0.25);
    border-color: #007bff;
}

.theme-dark .courses-image-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.theme-dark .fallback-cover-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #007bff;
}

.theme-dark .courses-content-body h3 a,
.theme-dark .courses-content-body h4 a {
    color: #ffffff;
}
.theme-dark .courses-content-body h3 a:hover,
.theme-dark .courses-content-body h4 a:hover {
    color: #38bdf8;
}

.theme-dark .courses-box-footer-btn {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.4);
}

.theme-dark .back-btn-custom {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}
.theme-dark .back-btn-custom:hover {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

/* ==========================================================================
   Checkout Page Styles (Light & Dark Mode Compatible)
   ========================================================================== */

/* Sticky Footer & Full Screen Layout Fix */
html, body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

footer, .footer-area {
    margin-top: auto !important;
}

.checkout-area {
    padding-top: 40px;
    padding-bottom: 80px;
    min-height: calc(100vh - 280px) !important;
    flex: 1 0 auto;
    clear: both;
    display: block;
    width: 100%;
}

.checkout-area::after,
.checkout-card::after,
.form-group-custom::after {
    content: "";
    display: table;
    clear: both;
}

/* Card Containers */
.checkout-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    display: block;
    clear: both;
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.checkout-card-header i {
    font-size: 24px;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.checkout-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Form Fields */
.form-group-custom {
    margin-bottom: 20px;
}

.form-group-custom label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
}

.form-group-custom label .required {
    color: #ef4444;
    margin-left: 4px;
}

.form-control-custom,
.nice-select.form-control-custom {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    height: 48px;
    line-height: 26px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 400;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.form-control-custom::placeholder,
.form-control-custom::-webkit-input-placeholder,
.form-control-custom:-ms-input-placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.form-control-custom:focus {
    background-color: #ffffff !important;
    border-color: #007bff !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15) !important;
}

select.form-control-custom {
    appearance: auto;
    cursor: pointer;
    color: #0f172a !important;
    background-color: #f8fafc !important;
}

select.form-control-custom option {
    background-color: #ffffff !important;
    color: #0f172a !important;
    padding: 8px;
}

/* Nice Select Light Mode Support */
.nice-select.form-control-custom .current {
    color: #0f172a !important;
    font-weight: 500;
}

.nice-select.form-control-custom:after {
    border-bottom: 2px solid #0f172a !important;
    border-right: 2px solid #0f172a !important;
}

.nice-select.form-control-custom .list {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    width: 100%;
    border-radius: 10px;
}

.nice-select.form-control-custom .option {
    color: #0f172a !important;
    padding-left: 16px;
    padding-right: 16px;
}

.nice-select.form-control-custom .option:hover,
.nice-select.form-control-custom .option.focus,
.nice-select.form-control-custom .option.selected {
    background-color: #007bff !important;
    color: #ffffff !important;
}


/* Order Summary Table & Box */
.order-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.order-summary-table th,
.order-summary-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.order-summary-table th {
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-summary-table td {
    font-size: 15px;
    color: #1e293b;
}

.order-item-title {
    font-weight: 600;
    color: #0f172a;
}

.order-item-price {
    font-weight: 700;
    color: #007bff;
    font-size: 18px;
}

/* Bank Slip File Upload Area */
.bank-slip-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bank-slip-upload-area:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.03);
}

.bank-slip-upload-area i.upload-icon {
    font-size: 42px;
    color: #007bff;
    margin-bottom: 8px;
    display: inline-block;
}

.bank-slip-upload-area p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.bank-slip-upload-area span.file-hint {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-top: 4px;
}

.bank-slip-preview-container {
    margin-top: 12px;
    display: none;
    text-align: center;
}

.bank-slip-preview-img {
    max-height: 180px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: contain;
}

/* Submit Button */
.btn-place-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
    margin-top: 24px;
}

.btn-place-order:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.45);
}

.btn-place-order i {
    font-size: 20px;
}

/* Dark Mode Overrides for Checkout Area */
.theme-dark .checkout-card {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.theme-dark .checkout-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-dark .checkout-card-header h3 {
    color: #ffffff;
}

.theme-dark .checkout-card-header i {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.theme-dark .form-group-custom label {
    color: #cbd5e1 !important;
}

.theme-dark .form-control-custom,
.theme-dark .nice-select.form-control-custom,
.theme-dark select.form-control-custom {
    color: #ffffff !important;
    background-color: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.theme-dark .form-control-custom::placeholder,
.theme-dark .form-control-custom::-webkit-input-placeholder,
.theme-dark .form-control-custom:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

.theme-dark .form-control-custom:focus {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2) !important;
}

.theme-dark select.form-control-custom option {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

/* Nice Select Dark Mode Overrides */
.theme-dark .nice-select.form-control-custom {
    background-color: rgba(15, 23, 42, 0.7) !important;
}

.theme-dark .nice-select.form-control-custom .current {
    color: #ffffff !important;
    font-weight: 500;
}

.theme-dark .nice-select.form-control-custom:after {
    border-bottom: 2px solid #ffffff !important;
    border-right: 2px solid #ffffff !important;
}

.theme-dark .nice-select.form-control-custom .list {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

.theme-dark .nice-select.form-control-custom .option {
    color: #ffffff !important;
    background-color: #0f172a !important;
}

.theme-dark .nice-select.form-control-custom .option:hover,
.theme-dark .nice-select.form-control-custom .option.focus,
.theme-dark .nice-select.form-control-custom .option.selected {
    background-color: #007bff !important;
    color: #ffffff !important;
}


.theme-dark .order-summary-table th,
.theme-dark .order-summary-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-dark .order-summary-table th {
    color: #94a3b8;
}

.theme-dark .order-summary-table td {
    color: #e2e8f0;
}

.theme-dark .order-item-title {
    color: #ffffff;
}

.theme-dark .order-item-price {
    color: #38bdf8;
}

.theme-dark .bank-slip-upload-area {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.4);
}

.theme-dark .bank-slip-upload-area:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

.theme-dark .bank-slip-upload-area i.upload-icon {
    color: #38bdf8;
}

.theme-dark .bank-slip-upload-area p {
    color: #e2e8f0;
}

.theme-dark .bank-slip-upload-area span.file-hint {
    color: #94a3b8;
}

.theme-dark .bank-slip-preview-img {
    border-color: rgba(255, 255, 255, 0.15);
}

