/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/
:root {
    --cnvs-body-font     :  			'Inter', sans-serif;
    --cnvs-primary-font  :        		var(--cnvs-body-font);
    --cnvs-themecolor	 :				 #b29e84;
    --cnvs-themecolor-rgb:				 204, 19, 92;
}

.block-form-2 .form-control {
    --cnvs-input-btn-padding-y: 15px;
    --cnvs-input-btn-padding-x: 2px;
    --cnvs-input-btn-font-weight: 500;
    --cnvs-input-btn-font-size: 18px;
    --cnvs-input-btn-border-color: #DDD;
}

.block-form-2 .form-control::-moz-placeholder {
    color: #DDD;
    font-weight: 400;
    font-size: 15px;
}
.block-form-2 .form-control:-ms-input-placeholder {
    color: #DDD;
    font-weight: 400;
    font-size: 15px;
}
.block-form-2 .form-control::-webkit-input-placeholder {
    color: #DDD;
    font-weight: 400;
    font-size: 15px;
}

.block-form-2 label:not(.custom-control-label):not(.error) {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: #777;
    margin-bottom: 8px;
    font-size: 14px;
}

.block-form-2 .social-icon {
    background-color: rgba(0,0,0,0.1);
    font-size: 16px;
}

.nav-pills .nav-link {
    padding: 10px;
    color: #FFF;
    background-color: var(--cnvs-themecolor);
    border: 1px solid transparent;
    font-size:12px;
}

.block-form-2 .nav-pills .nav-link.active,
.block-form-2 .nav-pills .show > .nav-link,
.block-form-2 .nav-pills .nav-link:not(.active) {
    background-color: var(--cnvs-themecolor);
}

.block-form-2 .nav-pills .nav-link:not(.active) {
    opacity: .7;
}

.block-form-2 .nav-pills .nav-link.active ~ .nav-link {
    opacity: 1;
    color: var(--cnvs-constrast-600);
    background-color: var(--cnvs-constrast-100);
    pointer-events: none;
}

.block-form-2 .flatpickr-input.form-control[readonly] {
    background-color: inherit;
}

label.error {
    display: block !important;
    color: #E42C3E;
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: 0.9;
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: var(--cnvs-themecolor);
    border-color: var(--cnvs-themecolor);
}

.flatpickr-day.today {
    border-color: var(--cnvs-themecolor);
}

.svg-image {
    position: absolute;
    top: auto;
    bottom: 2px;
    z-index: 0;
    right: 10px;
    width: 98%;
    opacity: .7;
}

.nav-pills .nav-link {
background-color: #FFF;
color: #b29e84;
border: 1px solid #b29e84;
cursor: not-allowed;
    pointer-events: none;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
color: #fff;
background-color: #b29e84;
}

/* Scale the CV template to fit inside the preview box */
#preview iframe, 
#preview .fk-container,  #lastDoc .fk-container{
width: 100%;
height: 100%;
object-fit: contain; /* Ensures proper scaling while maintaining aspect ratio */
display: block;
/* margin: auto; */
}

/* Prevent inner content from overflowing */
/*
#preview .fk-container > div {
transform: scale(0.9); 
transform-origin: top left; 
}*/

/* Add responsive adjustments */

/* Ensure the preview container is responsive */
#preview {
width: 100%;
height: auto;
max-width: 555px;
/* max-height: 1100px;  Ensure the template doesn't exceed this */
overflow: hidden; /* Prevent overflow */
padding: 0px;
background-color: #fff;
/*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
margin: auto;
position: relative;

}
#lastDoc {
width: 100%;
height: auto;
max-width: 800px; /* Adjust to match your layout */
max-height: 1100px; /* Ensure the template doesn't exceed this */
overflow: hidden; /* Prevent overflow */
background-color: #fff;
margin: auto;
position: relative;
}
#lastDoc #live-preview{
transform: scale(.55);
transform-origin: top left;
}
#selectedtemp{
/* width: 100%;
height: auto;
max-width: 800px;  Adjust to match your layout */
/* max-height: 1100px;  Ensure the template doesn't exceed this */
overflow: hidden; /* Prevent overflow */
background-color: #fff;
margin: auto;
position: relative;
}
#selectedtemp #show{
transform: scale(.86);
transform-origin: top left;
border: 1px solid #ccc;
padding: 5px;
}

.portfolio-item .fk-container{
transform: scale(.9);
transform-origin: top left;
width:100%;

}
/* Scale and center the HTML content inside the preview */
/*#preview iframe, 
#preview .fk-container {
width: 538px; height: 761px ;
object-fit: contain;
display: block;
margin: auto;
transform: scale(0.95); 
transform-origin: top left;
}/*

/* Make it fully responsive for smaller screens */
@media screen and (max-width: 768px) {
/* #preview {
max-width: 100%; 
padding: 5px; 
        margin: 0 25%;
} */
#preview iframe, 
#preview .fk-container {
width: 542px; height: 767px ; border: 1px solid #ccc; overflow: hidden;
transform: scale(0.85); /* Smaller scaling for mobile */
}
}




#live-preview{

width: 797px;
height: auto ;
transform: scale(.66);
transform-origin: top left;
/*margin-top: 20px;*/
border: 1px solid #ccc;
}
#preview, #wrapper, #content {
height: auto !important;
min-height: 100vh;
}

.our-templates-showcase .templatebox {
border: 1px solid #b29e8447;
}
.our-templates-showcase .portfolio-item {
display: flex;
}
.our-templates-showcase .portfolio-item .grid-inner.templatebox {
display: flex;
flex-direction: column;
height: 100%;
}
.our-templates-showcase .portfolio-item .portfolio-image {
position: relative;
width: 100%;
aspect-ratio: 8.5 / 11;
background-color: #fff;
overflow: hidden;
}
.our-templates-showcase .portfolio-item .portfolio-image > a {
display: block;
width: 100%;
height: 100%;
}
.our-templates-showcase .portfolio-item .portfolio-image img {
width: 100%;
height: 100%;
object-fit: contain;
}
.our-templates-showcase .portfolio-item .portfolio-image .bg-overlay,
.our-templates-showcase .portfolio-item .portfolio-image .bg-overlay-bg,
.our-templates-showcase .portfolio-item .portfolio-image .bg-overlay-content {
height: 100%;
}
.our-templates-showcase .portfolio-desc {
margin-top: auto;
min-height: 56px;
}
@media (max-width: 768px) {
    .our-templates-showcase .portfolio-desc {
        min-height: 48px;
    }
}
.NoSub {
/*	border: 1px solid #b29e8447;
*/	text-align: center;
padding: 10px;
}
.resumeup {
/*margin-top: 42px;*/
margin-bottom: 42px;
background-color: #b29e84;
background-color: transparent;
color: #423e3a;
border: 1px solid #423e3a;
font-size: 14px;
display: inherit;
flex-direction: column;
justify-content: center;
align-items: center;
}/*
.resumeup .button-inner, .resumeup:hover .button-inner {
padding-left: 10px
}*/
[class*="resumeup"]::before {
display: inherit;
font-size: 40px;
color: #b29e84;
}
.d-flex .resumeup:hover {
border: 3px solid #423e3a;
color: #423e3a;
background-color: transparent;
}
.d-flex .resumeup:hover span{
color: #423e3a;
}

.SelectTemplate {      .preview{
margin-left: 100px !important;
}

font-size:15px;
}
.rounded-new {
padding: 10px;
border: 10px solid #253439;
}
.DownloadBtn{
border: 1px solid;
border-color: #253439;
}
.inputbutton{
/*background-color: #b5babd;*/
background-color: #e9ecef;
color: #26353a;

}
.inputbutton:hover{
/*background-color:#9ba2a5*/
background-color: #e9ecef;
color: #26353a;
}
.skillsbutton{
padding:0;
background-color: transparent;
display: inline-block;
position: relative;
cursor: pointer;
outline: none;
white-space: nowrap;
}
.skillsbutton .skillicon{
margin-left: 5px;
margin-right: 0px;

}
.spinner {      .preview{
margin-left: 100px !important;
}

border: 4px solid #f3f3f3; /* Light gray */
border-top: 4px solid #3498db; /* Blue */
border-radius: 50%;
width: 30px;
height: 30px;
animation: spin 1s linear infinite;
margin: 10px auto;
}

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#product-color-dots .owl-dot {
    display: inline-block;
    background-color: transparent;
    width: 20px;
    height: 20px;
    margin: 0 2px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #FFF;
    box-shadow: 0 0 0 1px rgba(0,0,0,0);      .preview{
        margin-left: 100px !important;
    }

    transform: scale(1);
    -webkit-transition: box-shadow .2s ease, transform .2s ease;
    -o-transition: box-shadow .2s ease, transform .2s ease;
    transition: box-shadow .2s ease, transform .2s ease;
}

#product-color-dots .owl-dot.active {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
    transform: scale(1.2);
}

/***************************************************************************
form styling      .preview{
    margin-left: 100px !important;
}

*********************************************************************/
#contact-title,#phone-item,#email-item,#country-item, #education-title {
display: none;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}

#contact-title.show, #phone-item.show, #email-item.show, #country-item.show, #education-title.show {
display: block;
opacity: 1;
}


#summary-title {
display: none;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}

#summary-title.show {
display: block;
opacity: 1;
}

.ui-datepicker-calendar {
display: none;
}
.add-btn, .add-btn:hover{
background-color: transparent;      .preview{
margin-left: 100px !important;
}

border: 1px solid;
color: #253439;
border-color: #253439;
text-align: left;

}
.add-btn::before{
margin-right: 10px;
}
.remove-btn, .remove-btn:hover {
background-color: transparent;
color: #253439;
border-color: #2534391c;      .preview{
margin-left: 100px !important;
}

border-color: #253439;
margin-top:32px;

text-align: right;
padding:0;
}
#Skill-container, #Language-container, #References-container, #Internship-container, #courses-container,#education-container{
border:1px solid;
border-color: #2534391c;
border-radius: .5rem;
padding:3%;


}
.slider{
display: block;      .preview{
margin-left: 100px !important;
}

}
.rb-row{
text-align: right;
}
.suggested-summary-box {
position: relative;
margin-top: 20px;
border: 1px solid #ccc;
border-radius: 8px;
padding: 20px;
background-color: #f9f9f9;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.suggested-summary-box textarea {
width: 100%;
resize: none;
border: 1px solid #ddd;
border-radius: 4px;
padding: 10px;
background-color: #fff;
}

.suggested-summary-box button {
border-radius: 4px;
padding: 10px 20px;
}
#Summary,#SummaryAI, #DescriptionI, #DescriptionIAI, .ql-snow {
height: auto; /* Allows the height to grow */
overflow: hidden; /* Prevents scrollbars */
resize: none; /* Disables manual resizing */
min-height: 50px; /* Minimum height */
max-height: 300px; /* Optional: Maximum height */
}
/************************************************************************************/

.Sara-Start {
display: block;
position: absolute;      .preview{
margin-left: 100px !important;
}

bottom: 0;
left: auto;
text-align: center;
right: 0;
width: 8rem;
height: 1rem;
color: var(--cnvs-contrast-500);
font-size: 20px;
line-height: 1;

}
.Sara-Start-row{
display: inline-block;

}
.Sara-Start i{

text-transform: uppercase;
text-decoration-line: underline;
}


.pagination-controls {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
margin-top: 20px;
}
.hidden {
display: none;
}
.page {
    display: none;
}
.page.active {
    display: block;
}
.pagination-controls {
    margin-top: 20px;
}
.a4-page {
width: 210mm;
height: 297mm;
margin: 10px auto;
padding: 20px;
background: transparent;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.pagination-controls {
display: flex;
justify-content: center;
margin-top: 20px;
}

.pagination-controls button {
padding: 10px 15px;
margin: 0 5px;
border: 1px solid #ccc;
background: #f9f9f9;
cursor: pointer;
}

.pagination-controls button.active {
background: #007bff;
color: white;
font-weight: bold;
}
.page-break {
page-break-after: always;
height: 0;
visibility: hidden;
}


.pagination-controls button:hover {
background: #e2e6ea;
}


.section {
margin-bottom: 20px;
}

.visual-page-break {
border-top: 2px dashed #ccc; /* Dashed line as a visual separator */
margin: 20px 0; /* Space around the separator */
width: 100%;
height: 0; /* No actual height */
clear: both; /* Ensure it clears floated elements */
}.page-break {
page-break-before: always; /* Ensures a new page during printing */
border-top: 2px dashed #ccc; /* Optional: Dashed line for visual feedback */
margin: 20px 0; /* Optional: Adds spacing around the break */
width: 100%;
height: 0; /* No actual height */
clear: both; /* Clears floated content */
}


@media print {
.page-break {
display: block; /* Ensures it appears during printing */
}
}
.ql-editor {
autocorrect: off;
spellcheck: false;
}
.loading-spinner {
text-align: center;
font-size: 3.2em;
color: #253439;
padding: 20px;
}

.fa-spinner {
font-size: 2em;
margin-right: 10px;
}
.footer-logo {
transform: scale(.7);
transform-origin: top left;
}
#footer .footer-widgets-wrap{
padding-top: 3rem !important;
padding-bottom:3rem !important;
}

@media screen and (max-width: 768px) {
#preview {
width: 100%;
height: auto;
max-height: none;
}
}
@media screen and (max-width: 995px) {
.footer-widgets-wrap .mobilef{
padding-bottom:0px;
}
}
@media screen and (max-width: 1325px) {
#live-preview{
transform:Scale(.56);
}
.nav-pills{
display: flex;
flex-wrap: wrap;
padding-left: 0;
margin-bottom: 0;
list-style: none;
justify-content: center;
}
.nav-pills a {
margin-bottom:19px;
}
.nav-pills a:last-child {
margin-bottom:0px;
}

}@media screen and (max-width: 1100px) {
#live-preview{
transform:Scale(.5);
}

}@media screen and (max-width: 825px) {
#live-preview{
transform:Scale(.45);

}

}@media screen and (max-width: 550px) {
#Summary, #SummaryAI, #DescriptionI, #DescriptionIAI, .ql-snow {
height: auto;
overflow: visible;
resize: none;
min-height: 50px;
max-height: 300px;
}
.tab-action-btn-prev, .tab-action-btn-next{
padding:7px !important;	
font-size:.8rem !important;
}

}@media screen and (max-width: 425px) {
#live-preview{
transform:Scale(.35);
transform-origin: top left;

}

}
.fa-saving-spinner {
font-size: 1em;
margin-right: 10px;
}
.promo-popup-overlay {
position: fixed;
top: 0; left: 0; 
width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}

.promo-popup-content {
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
width: 90%;
max-width: 400px;
text-align: center;
}

.promo-popup-content input {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
}

.promo-popup-content button {
background: #253439;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
width: 100%;
border-radius: 5px;
}

.promo-popup-content button:hover {
background: #253439f5;
}
.promo-popup-content p{
margin:10;
}

.close-btnpop {
position: absolute;
top: 10px;
right: 10px;
background: #ff0000 !important;
color: #ffffff;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-weight: bold;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

}
.close-btnpop:hover {
background: #cc0000;
}
.modal-dialog .rounded{
max-height:645px;

}
.form-widget{
width: -webkit-fill-available;
}
/* شكل زر */
.date-btn {
 /* مساحة لأيقونة */
  cursor: pointer;
  
}
.payment-modal-overlay {
    position: fixed;
    inset: 0; /* نفس: top:0; right:0; bottom:0; left:0; */
    background: rgba(0, 0, 0, 0.5); /* تعتيم الخلفية */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* فوق كل شيء */
}

.payment-modal {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px 28px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-size: 0.95rem;
    direction: ltr;
    text-align: left;
}

/* اختيارية: ترتيب الأزرار */
.payment-modal .modal-footer,
.payment-modal .text-end {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.date-btn::placeholder { color: #98a2ad; }

/* أيقونة تقويم على اليمين (اختياري) */
.date-btn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%238a8f99' d='M7 2v2H5a2 2 0 0 0-2 2v2h18V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zM3 10v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V10zm4 2h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* خلي التقويم دائمًا فوق الحاويات ذات overflow */
.flatpickr-calendar {
  z-index: 100000 !important;
}
.template-slider {
    positio    .live-preview-section {
n: relative;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 15px;
    box-sizing: border-box;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 calc(33.333% - 20px);
    box-sizing: border-box;
    margin: 0 10px;
}

.slide img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.template-slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #00000055;
    color: white;
    border: none;
    font-size: 24px;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 0;
    z-index: 100;
}

.template-slider .prev { left: 10px; }
.template-slider .next { right: 10px; }

.template-slider button:hover { background: #00000088; }

/* إلغاء أي تأثير من كود البورتفوليو القديم */
#portfolio,
.portfolio.row.grid-container,
.portfolio.grid-container {
    display: block !important;
    flex-wrap: unset !important;
    grid-template-columns: unset !important;
}

/* تأكد من أن السلايدر يشتغل بشكل مرن 100% */
.slides {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.slide {
  flex: 0 0 33.33% !important;
  margin: 0 10px !important;
}

.template-slider {
  overflow: hidden;
  width: 100%;
}


/* كبر الفورم فقط على الموبايل */
@media (max-width: 576px) {

  /* خلي عمود الفورم ياخذ 100% ويشيل الـ padding تبع ps-5 */
  .cv-form-section {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }

  /* خفف الحواف الداخلية للتابات ومحتواها، بس عشان يبينوا full-width */
  .cv-form-section .form-tabs,
  .cv-form-section .tab-content {
    border-radius: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* شيل أي سكرول أفقي ومساحة زايدة على الموبايل */
@media (max-width: 576px) {

  html, body {
    overflow-x: hidden !important;
  }

  /* تأكيد إن ما في عنصر عريض يعمل سحب يمين */
  #vue-app,
  .content-wrap,
  .content-section,
  .live-preview-section,
  .cv-preview-section,
  #preview,
  #live-preview {
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* مهم: نتأكد إن live-preview مش مزاح لليسار فيسبب مساحة يمين */
  #live-preview {
    left: 0 !important;
  }
  .cv-form-section{
	  padding-left: 0rem !important;
	  padding-top: 0rem !important;
	  width:100% !important;
  }
}
