/* =====================================================
   PROCEPT SHORTCODES – FINAL STABLE CSS
   Alignment + Animation (Drupal-safe)
   ===================================================== */

/* ===============================
   CONTAINER
   =============================== */

.procept-shortcodes {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
  clear: both;
}

/* Ensure theme does not override width */
.layout-content .procept-shortcodes,
.region-content .procept-shortcodes,
.block-system-main-block .procept-shortcodes {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   ROW (Flexbox only)
   =============================== */

.procept-shortcodes .row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  margin: 0 -15px;
}

/* ===============================
   COLUMN BASE
   =============================== */

.procept-shortcodes .column {
  padding: 15px;
  box-sizing: border-box;
  min-height: 1px;
  float: none !important;
}

/* ===============================
   COLUMN WIDTHS (CRITICAL)
   =============================== */

.procept-shortcodes .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.procept-shortcodes .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.procept-shortcodes .col-md-3 { flex: 0 0 25%; max-width: 25%; }
.procept-shortcodes .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.procept-shortcodes .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }

/* IMPORTANT: keep 50/50 split */
/* .procept-shortcodes .col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
} */

.procept-shortcodes .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.procept-shortcodes .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.procept-shortcodes .col-md-9 { flex: 0 0 75%; max-width: 75%; }
.procept-shortcodes .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.procept-shortcodes .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.procept-shortcodes .col-md-12 { flex: 0 0 100%; max-width: 100%; }

/* ===============================
   MOBILE STACKING
   =============================== */

@media (max-width: 768px) {
  .procept-shortcodes .column {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===============================
   ANIMATION BASE
   =============================== */

.animate-element {
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity, transform;
}

/* Applied by JS */
.animate-element.animated {
  opacity: 1;
}

/* ===============================
   ANIMATION TYPES
   =============================== */

.animate-element[data-animation="fadeIn"].animated {
  animation: fadeIn 0.6s ease forwards;
}

.animate-element[data-animation="fadeInRight"].animated {
  animation: fadeInRight 0.6s ease forwards;
}

.animate-element[data-animation="fadeInLeft"].animated {
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-element[data-animation="fadeInUp"].animated {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-element[data-animation="fadeInDown"].animated {
  animation: fadeInDown 0.6s ease forwards;
}

/* ===============================
   KEYFRAMES
   =============================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   BOX SHORTCODE
   =============================== */

.box {
  margin: 40px 0;
  padding: 30px;
  background: #f5f5f5;
  border-radius: 10px;
  box-sizing: border-box;
}

.box.border-circle {
  border-radius: 10px;
}

.box.box-background {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
}

.box.align-left { text-align: left; }
.box.align-center { text-align: center; }
.box.align-right { text-align: right; }

/* ===============================
   TYPOGRAPHY HELPERS
   =============================== */

.column h2,
.column h3,
.column h4 {
  margin-top: 0;
  margin-bottom: 15px;
}

.column p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* ===============================
   ACCESSIBILITY
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .animate-element,
  .animate-element.animated {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===============================
   PRINT
   =============================== */

@media print {
  .animate-element {
    opacity: 1 !important;
    animation: none !important;
  }

  .column {
    page-break-inside: avoid;
  }
}
/* IMPORTANT: keep 50/50 split */
.procept-shortcodes .col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

a.dexp-btn-reflect {
  display: inline-block;
  padding: 14px 28px;
  background-color: #3f3f3f;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===============================
   TABS STYLING - VERTICAL SIDEBAR
   =============================== */

.procept-tabs {
  margin: 30px 0;
  display: flex;
  gap: 0;
  background: #fff;
}

/* Left sidebar for tabs */
.procept-tabs .nav-tabs {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  border-right: 1px solid #e0e0e0;
  border-bottom: none;
  min-width: 200px;
  background: #f8f9fa;
}

.procept-tabs .nav-item {
  margin: 0;
}

.procept-tabs .nav-link {
  display: block;
  padding: 15px 20px;
  color: #666;
  text-decoration: none;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.procept-tabs .nav-link:hover {
  color: #333;
  background: #fff;
  border-left-color: #ccc;
}

.procept-tabs .nav-link.active {
  color: #0066cc;
  border-left-color: #0066cc;
  background: #fff;
  font-weight: 500;
}

/* Right content area */
.procept-tabs .tab-content {
  flex: 1;
  padding: 20px 30px;
  background: #fff;
}

.procept-tabs .tab-pane {
  display: none;
}

.procept-tabs .tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Mobile responsive - stack vertically */
@media (max-width: 768px) {
  .procept-tabs {
    flex-direction: column;
  }
  
  .procept-tabs .nav-tabs {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .procept-tabs .nav-link {
    border-left: none;
    border-bottom: 1px solid #e0e0e0;
    border-top: 3px solid transparent;
  }
  
  .procept-tabs .nav-link.active {
    border-left: none;
    border-top-color: #0066cc;
  }
  
  .procept-tabs .tab-content {
    padding: 20px 15px;
  }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .procept-tabs .nav-tabs {
    min-width: 180px;
  }
  
  .procept-tabs .nav-link {
    padding: 12px 15px;
    font-size: 13px;
  }
  
  .procept-tabs .tab-content {
    padding: 15px 20px;
  }
}
