.text-start {
    text-align: right !important;
}

.text-end {
    text-align: left !important;
}

.me-2 {
    margin-left: .5rem !important;
    margin-right: 0 !important;
}

.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

.me-4 {
    margin-left: 1.5rem !important;
    margin-right: 0 !important;
}

.ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

.ps-3 {
    padding-right: 1rem !important;
    padding-left: 0 !important;
}

.dropdown-menu {
    text-align: right;
}

.navbar-brand {
    margin-left: 1rem;
    margin-right: 0;
}

.course-icon-badge-circle {
    right: 30px;
    left: auto;
}

.wpcf7 {
    direction: rtl;
}

.trial-form .wpcf7-list-item {
    margin: 0 0 1em 0 !important;
}

.owl-carousel.testimonial-carousel {
    direction: ltr;
}

.testimonial-item {
    direction: rtl;
}

.testimonial-carousel .owl-nav {
    justify-content: flex-end;
}

.testimonial-carousel .owl-nav .owl-prev, .testimonial-carousel .owl-nav .owl-next {
    margin-left: 15px;
    margin-right: 0;
}

.accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

.footer-menu li a {
    text-align: right;
}

.footer-menu li a::before {
    content: "\f104";
    margin-left: 10px;
    margin-right: 0;
}

/* ===== Contact Form 7 Custom Styles ===== */

/* Form Wrapper */
.cf7-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Form Rows */
.cf7-row {
    margin-bottom: 1.25rem;
    width: 100%;
}

.cf7-row-2cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .cf7-row-2cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Columns */
.cf7-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Labels */
.cf7-wrapper label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0d141b;
    margin-bottom: 10px;
}

.dark .cf7-wrapper label {
    color: #cbd5e1;
}

/* Required Field Indicator */
.cf7-wrapper .required {
    color: #ef4444;
    margin-right: 0.25rem;
}

/* Input Fields */
.cf7-wrapper .cf7-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid #cfdbe7;
    border-radius: 0.5rem;
    background-color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Textarea */
.cf7-wrapper .cf7-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cfdbe7;
    border-radius: 0.5rem;
    background-color: #ffffff;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 70px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    max-height: 70px;
}

/* Dark Mode */
.dark .cf7-wrapper .cf7-input,
.dark .cf7-wrapper .cf7-textarea {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

/* Focus States */
.cf7-wrapper .cf7-input:focus,
.cf7-wrapper .cf7-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dark .cf7-wrapper .cf7-input:focus,
.dark .cf7-wrapper .cf7-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* LTR Input (for email) */
.cf7-wrapper .cf7-input-ltr {
    text-align: left;
    direction: ltr;
}

/* Placeholder Styling */
.cf7-wrapper .cf7-input::placeholder,
.cf7-wrapper .cf7-textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.dark .cf7-wrapper .cf7-input::placeholder,
.dark .cf7-wrapper .cf7-textarea::placeholder {
    color: #64748b;
}

/* Submit Button */
.cf7-wrapper .cf7-submit {
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    display: inline-block;
    font-size: 1rem;
}

.cf7-wrapper .cf7-submit:hover {
    background-color: #1d4ed8;
    transform: scale(1.01);
}

.cf7-wrapper .cf7-submit:active {
    transform: scale(0.99);
}

.cf7-wrapper .cf7-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .cf7-wrapper .cf7-submit {
        width: 100%;
    }
}

/* Submit Row */
.cf7-submit-row {
    margin-top: 0.5rem;
}

.cf7-submit-row .cf7-col {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Form Note */
.cf7-wrapper .cf7-note {
    font-size: 0.875rem;
    color: #4c739a;
}

.dark .cf7-wrapper .cf7-note {
    color: #94a3b8;
}

/* ===== Contact Form 7 Default Styles Override ===== */

/* Validation Errors */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-right: 0.25rem;
    display: block;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #ef4444 !important;
}

.wpcf7-form .wpcf7-not-valid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Response Output */
.wpcf7-form .wpcf7-response-output {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0 0 !important;
    font-size: 0.875rem;
    border-width: 1px;
    border-style: solid;
}

.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-form .wpcf7-response-output.wpcf7-acceptance-missing {
    background-color: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #f0fdf4;
    border-color: #dcfce7;
    color: #166534;
}

.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-response-output.wpcf7-spam-blocked {
    background-color: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

/* Dark Mode Response */
.dark .wpcf7-form .wpcf7-response-output.wpcf7-validation-errors,
.dark .wpcf7-form .wpcf7-response-output.wpcf7-acceptance-missing {
    background-color: #451a1a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

.dark .wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #14532d;
    border-color: #166534;
    color: #bbf7d0;
}

/* Spinner */
.wpcf7-form .wpcf7-spinner {
    background-color: #e2e8f0;
    border-radius: 9999px;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.dark .wpcf7-form .wpcf7-spinner {
    background-color: #334155;
}

/* Submitting State */
.wpcf7-form.submitting .wpcf7-submit {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== Custom Success Message ===== */
.cf7-success-message {
    margin-top: 1rem;
}

.cf7-success-content {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.dark .cf7-success-content {
    background-color: #14532d;
    border-color: #166534;
    color: #bbf7d0;
}

/* ===== RTL Support ===== */
.rtl .cf7-wrapper .cf7-input-ltr {
    text-align: right;
    direction: rtl;
}

.rtl .wpcf7-not-valid-tip {
    text-align: right;
}

.cf7-col br {
    display: none;
}




@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        right: 0;
        left: auto;
    }
	    .navbar-nav .nav-item {
        margin-left: 35px;
        margin-right: 0;
    }
}
