/* =====================================================
   AIIT PAGE BUILDER – ADMIN STYLES
   ===================================================== */


/* ===== ELEMENT LIST (LEFT PANEL ITEMS) ===== */

.aiit-element{
    cursor:grab;
    text-align:center;
    font-weight:500;
}

.aiit-element:active{
    cursor:grabbing;
}


/* ===== BUILDER CANVAS ===== */

#aiit-canvas {
    position: relative;
    background: #fafafa;
    border: 2px dashed #d0d0d0;
    border-radius: 6px;
    min-height: 400px;
    padding: 10px;
}

/* ===== BLOCKS INSIDE CANVAS ===== */

.aiit-block{
    background:#ffffff;
    border:1px solid #ddd;
    border-radius:4px;
    padding:10px;
    margin-bottom:10px;
    position:relative;
    cursor:grab;
}



/* ===== DRAG PLACEHOLDER ===== */

.aiit-placeholder{
    border:2px dashed #0d6efd;
    background:rgba(13,110,253,0.05);
    height:60px;
    margin-bottom:10px;
}

.aiit-sort-placeholder{
    height:60px;
    border:2px dashed #0073aa;
    margin-bottom:15px;
    background:#f0f8ff;
}


/* ===== BLOCK TOOLBAR (EDIT / DELETE) ===== */

.aiit-hover-block{
    position:relative;
}

.aiit-block-tools{
    position:absolute;
    top:10px;
    right:10px;
    display:none;
    gap:6px;
    z-index:9999;
}

.aiit-hover-block:hover .aiit-block-tools{
    display:flex !important;
} 

.aiit-controls{
    cursor:move;
}


/* ===== INLINE EDITABLE TEXT ===== */

.aiit-editable{
    cursor:text;
    outline:none;
}

.aiit-editable:focus{
    outline:2px dashed #0d6efd;
}


/* ===== HERO SECTION ===== */
.aiit-hero{
    position: relative;
    min-height: auto;
    display:flex;
    align-items:center;
    background-size:cover;
    background-position:center;
}


.aiit-hero .container{
    z-index:999;
}

/* ===== MODAL (STYLE SETTINGS) ===== */

.aiit-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.aiit-modal-content{
    background:#ffffff;
    padding:25px;
    width:360px;
    border-radius:8px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.aiit-modal-content h5{
    margin-bottom:15px;
}

.aiit-modal-content label{
    font-size:13px;
    font-weight:600;
}

.aiit-modal-content input,
.aiit-modal-content select{
    width:100%;
    margin-top:5px;
    margin-bottom:10px;
}


/* ===== SMALL HELPER TEXT ===== */

.aiit-helper-text{
    font-size:13px;
    color:#777;
}


/* ===== WORDPRESS ADMIN FIXES ===== */

.card{
    border-radius:6px;
}

/* Hide Builder Editor menu item */

#adminmenu .wp-submenu a[href*="aiit-builder-editor"]{
    display:none !important;
}

.aiit-block-tools{
    display:none !important;
}

.aiit-btn-wrapper{
    display:inline-block;
    position:relative;
   width: auto;
}



.aiit-btn-wrapper:hover .aiit-link-icon{
    display:block;
}


.aiit-btn-wrapper:last-child{
    margin-right:0;
}



.aiit-btn-success {
    background-color:#068b2e;
    border: none;
    border-radius: 0;
}

.aiit-link-btn{
   border-radius: 0;  
}
.aiit-bottom-icon-text{
    position:absolute;
    bottom: 25px;
    width: 100%;
    left: 10px;
}

.aiit-feature-item{
    display:flex;
    align-items:center;
    gap:10px;
}

.feature-icon{
    width:24px;
    height:24px;
    cursor:pointer;
    transition:0.2s;
}

.aiit-text-edit{
    cursor:pointer;
}

.feature-icon:hover{
    transform:scale(1.1);
    opacity:.8;
}

.feature-text:focus{
    outline:1px dashed #ccc;
}


.layout-box{
    border:1px solid #ddd;
    padding:30px;
    cursor:pointer;
    border-radius:6px;
    background:#fafafa;
    font-size:18px;
}

.layout-box:hover{
    background:#f0f0f0;
}

.modal {
  z-index: 9999 !important;
}

.modal-backdrop {
  z-index: 9990 !important;
}
.row{
    padding: 10px !important;
    cursor:pointer;
}

.aiit-layout-box{
    border:1px solid #ddd;
    padding:20px;
    cursor:pointer;
    border-radius:6px;
    transition:0.2s;
}

.aiit-layout-box:hover{
    background:#0d6efd;
    color:#fff;
}

.aiit-row-modal label{
    font-weight:600;
    display:block;
    margin-top:10px;
}

.aiit-border-1 { border: 1px solid #fff; }
.aiit-border-2 { border: 2px solid #fff; }
.aiit-border-3 { border: 3px solid #fff; }
.aiit-border-4 { border: 4px solid #fff; }
.aiit-border-5 { border: 5px solid #fff; }
.aiit-border-6 { border: 6px solid #fff; }
.aiit-border-7 { border: 7px solid #fff; }
.aiit-border-8 { border: 8px solid #fff; }
.aiit-border-9 { border: 9px solid #fff; }
.aiit-border-10 { border: 10px solid #fff; }


.aiit-testimonials-section{
    background:#1e64a5;
    color:#fff;
}

.aiit-slider{
    overflow:hidden;
}

.aiit-slider-track{
    display:flex;
    gap:30px;
    transition:transform 0.4s ease;
}

.aiit-testimonial{
    flex:0 0 65%;   /* shows 1.5 cards */
    border:2px solid #fff;
}


.aiit-post-section{
background:#ffffff;
color:#000000;
overflow:hidden;
}

.aiit-read-all{
color:#2a7be4;
font-size:22px;
text-decoration:underline;
}

.aiit-post-slider{
overflow:hidden;
}

.aiit-post-track{
display:flex;
gap:40px;
align-items:center;
justify-content:center;
}

.aiit-post-card{
flex:0 0 25%;
position:relative;
}

.aiit-post-main{
flex:0 0 55%;
}

.aiit-post-card img{
width:100%;
height:520px;
object-fit:cover;
}

.aiit-post-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgb(255, 255, 255);
display:flex;
flex-direction:column;
justify-content:center;
padding:40px;
}

.aiit-post-overlay h2{
font-size:42px;
margin-bottom:20px;
}

.aiit-post-overlay p{
max-width:520px;
}


.col-md-6{
width: 48% !important;
}


.modern-modal {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  width: 420px;
}

.modern-modal {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  width: 420px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.aiit-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* PILLS */
.pills input {
  display: none;
}

.pills label span {
  padding: 8px 14px;
  background: #f1f3f5;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  display: inline-block;
}

.pills input:checked + span {
  background: #007bff;
  color: #fff;
}

.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

input[type="text"], input[type="color"] {
  width: 100%;
  margin: 6px 0;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.flex {
  display: flex;
  gap: 6px;
}


.modern-modal {
  position: relative; /* IMPORTANT */
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f1f3f5;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  background: #dc3545;
  color: #fff;
}

.aiit-style-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.aiit-e {
  position: relative;
}

.aiit-e > *:not(.aiit-style-overlay) {
  position: relative;
  z-index: 2;
}

#aiit-section-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.aiit-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.aiit-modal-content {
    position: relative;
    width: 500px;
    max-height: 80%;
    overflow-y: auto;
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
}

.aiit-section-item {
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
    cursor: pointer;
}

.aiit-section-item:hover {
    background: #f5f5f5;
}

.aiit-save-section {
    opacity: 0;
    transition: 0.2s;
}

.aiit-section:hover .aiit-save-section {
    opacity: 1;
}


#aiit-link-modal.aiit-link-modal-ui {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(0,0,0,0.45);
}

#aiit-link-modal .aiit-modal-box {
    width: 380px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
}

.aiit-tabs, .aiit-bg-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.aiit-tab-btn, .aiit-bg-tab {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.aiit-tab-btn.active, .aiit-bg-tab.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.aiit-tab-pane, .aiit-bg-pane {
    display: none;
}

.aiit-tab-pane.active,
.aiit-bg-pane.active {
    display: block;
}

.flex {
    display: flex;
    gap: 6px;
}

input, select {
    width: 100%;
    padding: 6px;
    margin-top: 5px;
}

#btnPreview {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
}

#aiit-link-close{
    position: absolute;
    right: 0;
    top: 0;

    background-color: #ccc;
    color: #000;

    border-radius: 50%;
    height: 30px;
    width: 30px;

    border: none;
    outline: none;
    cursor: pointer;

    /* CENTER FIX */
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0; /* remove extra shift */
    line-height: 1; /* avoid vertical misalignment */
}


#aiit-link-close:hover{
    background-color: #ee0101;
    color: #ffffff;
}

.aiit-text-edit-child {
    display: inline;
}
.aiit-span {
  display: inline;
}

.aiit-btn-wrapper {
    position: relative;
}

.aiit-link-btn {
    display: inline-block;
    align-items: center;
}

.aiit-btn-icon {
    display: inline-flex;
}

.aiit-btn-icon img {
    display: block;
}

/* Hover edit icon */
.aiit-link-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.aiit-btn-wrapper:hover .aiit-link-icon {
    opacity: 1;
    visibility: visible;
}

.aiit-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

    padding: 2px !important;

  background: #ffffff;
  color: #2563eb; /* nice blue */

  border-radius: 50%;
  border: 1px solid #e5e7eb;

  font-size: 16px;
  cursor: pointer;

  transition: all 0.25s ease;
}

/* Hover effect */
.aiit-link-icon:hover {
  background: #2563eb;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Active click effect */
.aiit-link-icon:active {
  transform: scale(0.95);
}

.feature-icon-new{
      width: 80% !important;
      height: auto !important;
}