/* Show Blade */

/* Main title */
.page-content h1 {
  /* scales from ~28px (mobile) to ~56px (large screens) */
  font-size: clamp(28px, 4vw, 40px) !important;
  line-height: 1.15;
  margin-bottom: 0.4em;
}

/* Subtitle (the h2 right after h1) */
.page-content h1+h2 {
  /* scales from ~16px to ~22px */
  font-size: clamp(16px, 3.2vw, 22px) !important;
  line-height: 1.35;
  letter-spacing: 0.4px;
  margin: 0.5em auto 1.2em !important;
  white-space: normal;
  /* allow wrap on small devices */
}

/* Your earlier specific rule forced nowrap—relax it on small screens */
@media (max-width: 900px) {
  .page-content .et_pb_row.et_pb_row_0 h1 {
    white-space: normal !important;
    /* keep the same responsive scale */
    font-size: clamp(26px, 7vw, 46px) !important;
  }
}

/* Tighten spacing a bit on very small phones */
@media (max-width: 420px) {
  .page-content h1 {
    margin-bottom: 0.3em;
  }

  .page-content h1+h2 {
    letter-spacing: 0.2px;
    margin-bottom: 1em !important;
  }
}


/* Make 2nd column wider and add gap between its inner divs */
.page-content .et_pb_row {
  display: flex !important;
  align-items: flex-start;
  gap: 50px;
}

.page-content .et_pb_row.et_pb_row_0>.et_pb_column_0 {
  flex: 0 0 380px;
  max-width: 380px;
  width: 380px;
}

/* Profile image - responsive and properly fitted */
.page-content .et_pb_row.et_pb_row_0>.et_pb_column_0 .et_pb_image_wrap img {
  width: 100% !important;
  height: auto !important;
  max-width: 380px !important;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}

.page-content .et_pb_row.et_pb_row_0>.et_pb_column_1 {
  flex: 1 1 68%;
  max-width: 68%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  /* vertical gap between text modules */
}

/* Prevent name from breaking and make it bold */
.page-content .et_pb_row.et_pb_row_0 h1 {
  font-weight: bold;
  white-space: nowrap;
  word-break: keep-all;
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

/* Pattern 2 */

.et_pb_row_1 {
  display: flex !important;
  align-items: flex-start;
  /* gap: 50px; */
}

/* Reduce image size in second section's first column */
.et_pb_row_1 .et_pb_column_1 .et_pb_image img {
  /* width: 80%; */
  height: auto;
  display: block;
  margin: 0 auto;
  max-width: 400px;
}

/* Responsive: stack columns on small screens */
@media (max-width: 900px) {
  .page-content .et_pb_row.et_pb_row_0 {
    flex-direction: column !important;
    gap: 0;
  }

  .page-content .et_pb_row.et_pb_row_0>.et_pb_column_0,
  .page-content .et_pb_row.et_pb_row_0>.et_pb_column_1 {
    max-width: 100% !important;
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .page-content .et_pb_row.et_pb_row_0>.et_pb_column_0 .et_pb_image_wrap img {
    max-width: 100% !important;
  }

  .page-content .et_pb_row.et_pb_row_0>.et_pb_column_1 {
    margin-top: 30px;
  }

  .et_pb_row_1 {
    flex-direction: column !important;
    gap: 0;
  }

  .et_pb_row_1>.et_pb_column_1,
  .et_pb_row_1>.et_pb_column_2 {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .et_pb_row_1>.et_pb_column_2 {
    margin-top: 30px;
  }
}

/* Single-column rows should span full width in flex layout */
.page-content .et_pb_row>.et_pb_column_4_4 {
  flex: 1 1 100%;
  max-width: 100%;
}

/* Large, responsive video (up to 1080px) */
.page-content .et_pb_video {
  width: 100% !important;
  max-width: 1080px;
  margin: 20px auto;
}

.page-content .et_pb_video .et_pb_video_box iframe,
.page-content .et_pb_video .et_pb_video_box video {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Below 1080px, stay fluid */
@media (max-width: 1080px) {
  .page-content .et_pb_video {
    max-width: 100%;
  }
}


/* Page background and layout */
.create-page-body {
  background: #f3f4f6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

/* Container box */
.form-container {
  background: #fff;
  width: 100%;
  max-width: 700px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Title */
.form-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Success alert */
.alert-success {
  background: #d1fae5;
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Error alert */
.alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Form groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.5rem;
}

/* Inputs and textarea */
.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

/* HTML Content Editor */
.form-group .html-editor {
  min-height: 300px;
}

/* Submit button */
.form-submit {
  text-align: center;
}

.form-submit button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  margin-right: 1rem;
}

.form-submit button:hover {
  background: #1d4ed8;
}

.form-submit button:active {
  transform: scale(0.98);
}

.form-submit .btn-secondary {
  background: #6b7280;
}

.form-submit .btn-secondary:hover {
  background: #4b5563;
}

.form-submit .btn-success {
  background: #059669;
}

.form-submit .btn-success:hover {
  background: #047857;
}

/* Container */
.page-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  font-family: 'Arial', sans-serif;
}

/* Page Title */
.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #222;
}

/* Page Subtitle */
.page-subtitle {
  color: #666;
  font-weight: normal;
  margin-bottom: 20px;
}

/* Page Meta */
.page-meta {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* Page Content */
.page-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 40px;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
}

.status-badge.published {
  background-color: #d1fae5;
  color: #065f46;
}

.status-badge.draft {
  background-color: #fef3c7;
  color: #92400e;
}

/* Pages list table */
.pages-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.pages-table th,
.pages-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.pages-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.pages-table tr:hover {
  background-color: #f9fafb;
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-success {
  background-color: #059669;
  color: white;
}

.btn-success:hover {
  background-color: #047857;
}

.btn-danger {
  background-color: #dc2626;
  color: white;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-warning {
  background-color: #d97706;
  color: white;
}

.btn-warning:hover {
  background-color: #b45309;
}

/* Preview mode styling */
.preview-mode {
  border: 3px dashed #3b82f6;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  background-color: #eff6ff;
}

.preview-label {
  background-color: #3b82f6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Responsive design */
@media (max-width: 768px) {
  .page-container {
    margin: 20px auto;
    padding: 15px;
  }

  .page-title {
    font-size: 2rem;
  }

  .form-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .pages-table {
    font-size: 0.875rem;
  }

  .action-buttons {
    flex-direction: column;
  }
}

/* Gallery styling (if images are added later) */
.page-gallery-title {
  margin-bottom: 15px;
  color: #222;
}

.mySwiper {
  border-radius: 10px;
  overflow: hidden;
}

.mySwiper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}