@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* Apply Cairo font globally across all plugin elements */
.ecm-registration-wrapper,
.ecm-registration-form,
.ecm-enrolled-card,
.ecm-my-courses,
.ecm-student-dashboard,
.ecm-login-card-wrapper,
.ecm-login-card,
.ecm-header-button,
.ecm-reviews-wrapper,
.ecm-accreditations-grid,
.ecm-schedules-list,
.ecm-objectives-grid,
.ecm-axes-grid,
.ecm-faq-grid,
body.woocommerce-checkout .woocommerce form.checkout,
body.woocommerce-checkout .woocommerce-order {
    font-family: 'Cairo', sans-serif !important;
}

.ecm-registration-wrapper *,
.ecm-registration-form *,
.ecm-enrolled-card *,
.ecm-my-courses *,
.ecm-student-dashboard *,
.ecm-login-card-wrapper *,
.ecm-login-card *,
.ecm-header-button *,
.ecm-reviews-wrapper *,
.ecm-accreditations-grid *,
.ecm-schedules-list *,
.ecm-objectives-grid *,
.ecm-axes-grid *,
.ecm-faq-grid *,
body.woocommerce-checkout .woocommerce form.checkout *,
body.woocommerce-checkout .woocommerce-order * {
    font-family: 'Cairo', sans-serif !important;
}

/* Restore FontAwesome font-family for icons */
i.fas, i.far, i.fab, i.fa,
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", FontAwesome !important;
}
i.far, .far {
    font-weight: 400 !important;
}
i.fas, .fas {
    font-weight: 900 !important;
}

/**
 * Elite Course Manager — Frontend Styles
 *
 * Registration form, "Already Enrolled" card, and "My Courses" page.
 */

/* =========================================================================
   Registration Form
   ========================================================================= */

.ecm-registration-wrapper {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 12px;
	border: 1px solid #e5e5e5;
	max-width: 500px;
	margin: 20px 0;
	font-family: inherit;
}

.ecm-reg-title {
	margin-top: 0;
	font-size: 1.5em;
	color: #333;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid #00432B;
}

.ecm-registration-form .ecm-field-group {
	margin-bottom: 18px;
}

.ecm-registration-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #444;
	font-size: 0.95em;
}

.ecm-required {
	color: #dc2626;
}

.ecm-registration-form input[type="text"],
.ecm-registration-form input[type="email"],
.ecm-registration-form input[type="tel"],
.ecm-registration-form select,
.ecm-registration-form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	font-size: 15px;
	font-family: inherit;
	outline: none;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.ecm-registration-form input:focus,
.ecm-registration-form select:focus,
.ecm-registration-form textarea:focus {
	border-color: #00432B;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}

.ecm-registration-form textarea {
	resize: vertical;
	min-height: 80px;
}

.ecm-submit-btn {
	background: #00432B;
	color: #fff;
	border: none;
	padding: 14px 24px;
	font-size: 16px;
	font-family: inherit;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	width: 100%;
	transition: background 0.3s, transform 0.1s;
	box-shadow: 0 4px 6px rgba(34, 113, 177, 0.2);
	text-decoration: none;
	margin-top: 6px;
	display: inline-block;
	text-align: center;
}

.ecm-submit-btn:hover {
	background: #002D1D;
	transform: translateY(-1px);
}

.ecm-submit-btn:active {
	transform: translateY(0);
}

.ecm-form-error {
	background: #fef2f2;
	color: #dc2626;
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid #fecaca;
	margin-bottom: 18px;
	font-size: 0.9em;
}

/* =========================================================================
   "Already Enrolled" Card
   ========================================================================= */

.ecm-enrolled-card {
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid #bbf7d0;
	max-width: 500px;
	margin: 20px 0;
	text-align: center;
}

.ecm-enrolled-icon {
	margin-bottom: 12px;
}

.ecm-enrolled-title {
	color: #16a34a;
	font-size: 1.5em;
	margin: 0 0 10px;
}

.ecm-enrolled-message {
	color: #555;
	font-size: 1em;
	margin-bottom: 20px;
	line-height: 1.6;
}

.ecm-enrolled-details {
	background: #fff;
	border-radius: 8px;
	padding: 16px;
	text-align: start;
	margin-bottom: 20px;
}

.ecm-enrolled-detail-item {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #f3f4f6;
}

.ecm-enrolled-detail-item:last-child {
	border-bottom: none;
}

.ecm-detail-label {
	font-weight: 600;
	color: #555;
	font-size: 0.9em;
}

.ecm-detail-value {
	color: #333;
	font-size: 0.9em;
}

.ecm-status-confirmed {
	color: #16a34a;
	font-weight: 600;
}

.ecm-status-pending {
	color: #ca8a04;
	font-weight: 600;
}

.ecm-status-cancelled {
	color: #dc2626;
	font-weight: 600;
}

.ecm-my-courses-link {
	display: inline-block;
	padding: 10px 24px;
	background: #16a34a;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: background 0.3s;
}

.ecm-my-courses-link:hover {
	background: #15803d;
	color: #fff;
}

/* =========================================================================
   "My Courses" Page
   ========================================================================= */

.ecm-my-courses {
	max-width: 900px;
	margin: 0 auto;
}

.ecm-my-courses-title {
	font-size: 1.8em;
	color: #333;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 3px solid #00432B;
}

.ecm-no-courses {
	background: #f9fafb;
	padding: 40px;
	border-radius: 12px;
	text-align: center;
	color: #6b7280;
	font-size: 1.1em;
}

.ecm-courses-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ecm-course-card {
	display: flex;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	border: 1px solid #e5e7eb;
	transition: box-shadow 0.3s, transform 0.2s;
}

.ecm-course-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.ecm-course-thumb {
	width: 200px;
	min-height: 160px;
	flex-shrink: 0;
}

.ecm-course-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ecm-course-info {
	padding: 20px;
	flex: 1;
}

.ecm-course-name {
	font-size: 1.2em;
	margin: 0 0 12px;
}

.ecm-course-name a {
	color: #333;
	text-decoration: none;
}

.ecm-course-name a:hover {
	color: #00432B;
}

.ecm-course-meta-items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.ecm-meta-item {
	font-size: 0.9em;
}

.ecm-meta-label {
	color: #6b7280;
	font-weight: 600;
}

.ecm-meta-value {
	color: #333;
}

/* =========================================================================
   Login Prompt
   ========================================================================= */

.ecm-login-prompt {
	text-align: center;
	padding: 40px;
	background: #f9fafb;
	border-radius: 12px;
	max-width: 400px;
	margin: 20px auto;
}

.ecm-login-prompt p {
	color: #6b7280;
	margin-bottom: 16px;
	font-size: 1.1em;
}

/* FAQ Grid */
.ecm-faq-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

/* Instructor Card */
.ecm-instructor-card {
	display: flex;
	flex-wrap: nowrap;
	gap: 30px;
	align-items: center;
	text-align: right;
	justify-content: flex-start;
	width: 100%;
}

/* =========================================================================
   Mobile Responsiveness
   ========================================================================= */
@media (max-width: 768px) {
	.ecm-registration-wrapper {
		padding: 20px;
		max-width: 100%;
	}

	.ecm-instructor-card {
		flex-direction: column;
		justify-content: center !important;
		text-align: center !important;
	}
	.ecm-instructor-card .ecm-instructor-img {
		margin: 0 auto;
	}
	.ecm-instructor-card .ecm-instructor-text {
		text-align: center !important;
	}
	.ecm-faq-grid {
		grid-template-columns: 1fr;
	}

	.ecm-course-card {
		flex-direction: column;
	}

	.ecm-course-thumb {
		width: 100%;
		min-height: 180px;
	}

	.ecm-course-meta-items {
		flex-direction: column;
		gap: 6px;
	}
}

/* =========================================================================
   Premium Checkout Styling
   ========================================================================= */

body.woocommerce-checkout {
    background-color: #f8fafc;
}

.woocommerce form.checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
}

.woocommerce form.checkout .col2-set {
    flex: 1 1 600px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.woocommerce form.checkout #order_review_heading,
.woocommerce form.checkout #order_review {
    flex: 1 1 400px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin: 0;
}

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce-checkout .woocommerce-input-wrapper select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s;
}

.woocommerce-checkout .woocommerce-input-wrapper input:focus {
    background: #fff;
    border-color: #00432B;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.woocommerce-checkout form .form-row label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-checkout #payment {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.woocommerce-checkout #payment button.button {
    background: #00432B;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s;
    border: none;
}

.woocommerce-checkout #payment button.button:hover {
    background: #002D1D;
    transform: translateY(-2px);
}

/* =========================================================================
   Thank You Page Styling
   ========================================================================= */

.woocommerce-order {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.woocommerce-order p.woocommerce-notice--success {
    font-size: 1.2rem;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.woocommerce-order ul.order_details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.woocommerce-order ul.order_details li {
    background: #f8fafc;
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex: 1 1 200px;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #64748b;
    border-right: none;
    float: none;
}

.woocommerce-order ul.order_details li strong {
    display: block;
    font-size: 1.1rem;
    color: #00432B;
    margin-top: 5px;
    text-transform: none;
}

.woocommerce-order section.woocommerce-order-details {
    text-align: right;
    margin-top: 40px;
}

.woocommerce-order section.woocommerce-order-details h2 {
    color: #00432B;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.woocommerce-order table.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-order table.shop_table th,
.woocommerce-order table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.woocommerce-order table.shop_table tfoot th,
.woocommerce-order table.shop_table tfoot td {
    border-top: 2px solid #e2e8f0;
    font-weight: 600;
}
/* =========================================================================
   Premium Checkout Styling
   ========================================================================= */

body.woocommerce-checkout {
    background-color: #f8fafc;
}

.woocommerce form.checkout {
    display: grid !important;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: start;
}

.woocommerce form.checkout::before, .woocommerce form.checkout::after {
    display: none !important;
}

.woocommerce form.checkout .woocommerce-NoticeGroup {
    grid-column: 1 / -1;
}

/* Customer Details (Left side in LTR, Right side in RTL) */
.woocommerce form.checkout .col2-set {
    grid-column: 1;
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    width: 100%;
    margin: 0;
    float: none;
}

/* Make billing full width, hide shipping/additional */
.woocommerce form.checkout .col2-set .col-1 {
    width: 100% !important;
    float: none !important;
}

.woocommerce form.checkout .col2-set .col-2 {
    display: none !important;
}

/* Order Review (Right side in LTR, Left side in RTL) */
.woocommerce form.checkout #order_review_heading {
    grid-column: 2;
    margin: 0;
    background: #fff;
    padding: 30px 30px 0;
    border-radius: 16px 16px 0 0;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    font-size: 1.5em;
    color: #002D1D;
}

.woocommerce form.checkout #order_review {
    grid-column: 2;
    background: #fff;
    padding: 0 30px 30px;
    border-radius: 0 0 16px 16px;
    border: 1px solid #e2e8f0;
    border-top: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
}

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce-checkout .woocommerce-input-wrapper select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s;
    outline: none !important;
}

.woocommerce-checkout .woocommerce-input-wrapper input:focus {
    background: #fff;
    border-color: #00432B;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.woocommerce-checkout form .form-row label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-checkout #payment {
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-top: 20px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 15px !important;
}

.woocommerce-checkout #payment button.button {
    background: #00432B !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 18px 24px !important;
    border-radius: 8px !important;
    width: 100% !important;
    transition: all 0.3s !important;
    border: none !important;
    margin-top: 15px !important;
}

.woocommerce-checkout #payment button.button:hover {
    background: #002D1D !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

table.shop_table {
    border: none !important;
    border-radius: 0 !important;
}

table.shop_table th, table.shop_table td {
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 15px 5px !important;
}

table.shop_table tfoot th, table.shop_table tfoot td {
    border-bottom: none !important;
    border-top: 2px solid #e2e8f0 !important;
}

@media (max-width: 991px) {
    .woocommerce form.checkout {
        grid-template-columns: 1fr;
    }
    .woocommerce form.checkout .col2-set,
    .woocommerce form.checkout #order_review_heading,
    .woocommerce form.checkout #order_review {
        grid-column: 1;
    }
    .woocommerce form.checkout #order_review_heading {
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        border-top: 1px solid #e2e8f0;
    }
}

/* =========================================================================
   Thank You Page Styling
   ========================================================================= */

.woocommerce-order {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.woocommerce-order p.woocommerce-notice--success {
    font-size: 1.2rem;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.woocommerce-order ul.order_details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.woocommerce-order ul.order_details li {
    background: #f8fafc;
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex: 1 1 200px;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #64748b;
    border-right: none;
    float: none;
}

.woocommerce-order ul.order_details li strong {
    display: block;
    font-size: 1.1rem;
    color: #00432B;
    margin-top: 5px;
    text-transform: none;
}

.woocommerce-order section.woocommerce-order-details {
    text-align: right;
    margin-top: 40px;
}

.woocommerce-order section.woocommerce-order-details h2 {
    color: #00432B;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}/* =========================================================================
   Premium Checkout Styling
   ========================================================================= */

body.woocommerce-checkout {
    background-color: #f8fafc;
}

.woocommerce form.checkout {
    display: block !important;
    max-width: 1200px;
    margin: 40px auto;
}

.woocommerce form.checkout::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce form.checkout .woocommerce-NoticeGroup {
    width: 100%;
    clear: both;
    margin-bottom: 20px;
}

/* Customer Details (Right side in RTL) */
.woocommerce form.checkout .col2-set {
    float: right;
    width: calc(100% - 480px);
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin: 0;
}

/* Make billing full width, hide shipping/additional */
.woocommerce form.checkout .col2-set .col-1 {
    width: 100% !important;
    float: none !important;
}

.woocommerce form.checkout .col2-set .col-2 {
    display: none !important;
}

/* Order Review (Left side in RTL) */
.woocommerce form.checkout #order_review_heading {
    float: left;
    width: 450px;
    clear: left;
    margin: 0;
    background: #fff;
    padding: 30px 30px 0;
    border-radius: 16px 16px 0 0;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    font-size: 1.5em;
    color: #002D1D;
    box-sizing: border-box;
}

.woocommerce form.checkout #order_review {
    float: left;
    width: 450px;
    clear: left;
    background: #fff;
    padding: 0 30px 30px;
    border-radius: 0 0 16px 16px;
    border: 1px solid #e2e8f0;
    border-top: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce-checkout .woocommerce-input-wrapper select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s;
    outline: none !important;
    box-sizing: border-box;
}

.woocommerce-checkout .woocommerce-input-wrapper input:focus {
    background: #fff;
    border-color: #00432B;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.woocommerce-checkout form .form-row label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-checkout #payment {
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-top: 20px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 15px !important;
}

.woocommerce-checkout #payment button.button {
    background: #00432B !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 18px 24px !important;
    border-radius: 8px !important;
    width: 100% !important;
    transition: all 0.3s !important;
    border: none !important;
    margin-top: 15px !important;
}

.woocommerce-checkout #payment button.button:hover {
    background: #002D1D !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

table.shop_table {
    border: none !important;
    border-radius: 0 !important;
}

table.shop_table th, table.shop_table td {
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 15px 5px !important;
}

table.shop_table tfoot th, table.shop_table tfoot td {
    border-bottom: none !important;
    border-top: 2px solid #e2e8f0 !important;
}

@media (max-width: 991px) {
    .woocommerce form.checkout .col2-set {
        float: none;
        width: 100%;
        margin-bottom: 30px;
    }
    .woocommerce form.checkout #order_review_heading,
    .woocommerce form.checkout #order_review {
        float: none;
        width: 100%;
        clear: none;
    }
    .woocommerce form.checkout #order_review_heading {
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        border-top: 1px solid #e2e8f0;
    }
}

/* =========================================================================
   Thank You Page Styling
   ========================================================================= */

.woocommerce-order {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.woocommerce-order p.woocommerce-notice--success {
    font-size: 1.2rem;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.woocommerce-order ul.order_details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.woocommerce-order ul.order_details li {
    background: #f8fafc;
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex: 1 1 200px;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #64748b;
    border-right: none;
    float: none;
}

.woocommerce-order ul.order_details li strong {
    display: block;
    font-size: 1.1rem;
    color: #00432B;
    margin-top: 5px;
    text-transform: none;
}

.woocommerce-order section.woocommerce-order-details {
    text-align: right;
    margin-top: 40px;
}

.woocommerce-order section.woocommerce-order-details h2 {
    color: #00432B;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
/* =========================================================================
   Student Dashboard
   ========================================================================= */

.ecm-student-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    font-family: inherit;
}

/* Sidebar */
.ecm-dashboard-sidebar {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.ecm-user-avatar img {
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid #f8fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ecm-user-name {
    font-size: 1.4em;
    color: #002D1D;
    margin: 0 0 5px;
    font-weight: bold;
}

.ecm-user-email {
    font-size: 0.9em;
    color: #64748b;
    margin: 0 0 25px;
}

.ecm-dashboard-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.ecm-dashboard-nav li {
    margin-bottom: 10px;
}

.ecm-dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.ecm-dashboard-nav a i {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.ecm-dashboard-nav a:hover,
.ecm-dashboard-nav a.active {
    background: #f1f5f9;
    color: #00432B;
}

/* Main Content */
.ecm-dashboard-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.ecm-dashboard-title {
    font-size: 1.8em;
    color: #002D1D;
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

/* Notices */
.ecm-dashboard-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 600;
}
.ecm-notice-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Course Cards */
.ecm-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.ecm-modern-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ecm-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.ecm-modern-card .ecm-course-thumb {
    width: 100%;
    height: 180px;
}

.ecm-modern-card .ecm-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecm-modern-card .ecm-course-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ecm-course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.ecm-modern-card .ecm-course-name {
    margin: 0;
    font-size: 1.15em;
    line-height: 1.4;
}

.ecm-modern-card .ecm-course-name a {
    color: #00432B;
    text-decoration: none;
}

.ecm-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.ecm-status-pending { background: #fef3c7; color: #d97706; }
.ecm-status-confirmed { background: #dcfce7; color: #16a34a; }
.ecm-status-cancelled { background: #fee2e2; color: #dc2626; }

.ecm-modern-card .ecm-course-meta-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.ecm-modern-card .ecm-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9em;
}

.ecm-modern-card .ecm-meta-item i {
    width: 16px;
    text-align: center;
    color: #94a3b8;
}

.ecm-course-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.ecm-course-actions > * {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.ecm-btn-secondary {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f1f5f9;
    color: #00432B;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.ecm-btn-secondary:hover {
    background: #e2e8f0;
}

/* Edit Profile Form */
.ecm-profile-form-wrapper {
    max-width: 600px;
}

.ecm-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ecm-form-group {
    flex: 1;
}

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

.ecm-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s;
    font-size: 15px;
    box-sizing: border-box;
}

.ecm-form-group input:focus {
    background: #fff;
    border-color: #00432B;
    outline: none;
}

.ecm-form-subtitle {
    font-size: 1.3em;
    color: #002D1D;
    margin: 30px 0 5px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.ecm-form-help {
    color: #64748b;
    font-size: 0.9em;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ecm-student-dashboard {
        flex-direction: column;
    }
    .ecm-dashboard-sidebar {
        flex: none;
        width: 100%;
    }
    .ecm-dashboard-content {
        padding: 25px;
    }
    .ecm-form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================================================================
   Custom Login Card Styling
   ========================================================================= */

.ecm-login-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #f8fafc;
    min-height: 500px;
}

.ecm-login-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    text-align: right;
    direction: rtl;
}

.ecm-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.ecm-login-icon {
    font-size: 55px;
    color: #00432B;
    margin-bottom: 15px;
    line-height: 1;
}

.ecm-login-header h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #00432B;
    margin: 0 0 8px;
    font-family: inherit;
}

.ecm-login-header p {
    font-size: 0.95em;
    color: #64748b;
    margin: 0;
}

.ecm-login-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecm-login-form .ecm-form-group {
    margin-bottom: 22px;
}

.ecm-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9em;
    color: #334155;
}

.ecm-input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ecm-input-icon-wrapper i {
    position: absolute;
    right: 15px;
    color: #94a3b8;
    font-size: 1.1em;
    pointer-events: none;
}

.ecm-input-icon-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px !important;
    padding-right: 45px !important;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.ecm-input-icon-wrapper input:focus {
    background: #ffffff;
    border-color: #00432B;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.12);
}

.ecm-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.ecm-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
    user-select: none;
}

.ecm-remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00432B;
    cursor: pointer;
}

.ecm-forgot-password {
    color: #00432B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.ecm-forgot-password:hover {
    color: #002D1D;
    text-decoration: underline;
}

.ecm-login-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00432B 0%, #002D1D 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.25);
}

.ecm-login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(34, 113, 177, 0.35);
}

.ecm-login-submit-btn:active {
    transform: translateY(0);
}
