/* Colapad + Strapi additions.
   Extends the original theme only; all original styles remain untouched. */

/* Brand logo ------------------------------------------------------------ */
.main-nav .navbar-brand img.logo-main { width: 180px; height: auto; }
.footer-logo img { width: 200px; height: auto; }
@media (max-width: 991px) {
  .main-nav .navbar-brand img.logo-main { width: 145px; }
  .footer-logo img { width: 165px; }
}
@media (max-width: 400px) {
  .main-nav .navbar-brand img.logo-main { width: 120px; }
  .footer-logo img { width: 140px; }
}

/* Simple CMS pages ----------------------------------------------------- */
.cms-page {
  padding: 90px 0 100px;
  font-family: "Jost", sans-serif;
}
.cms-page h1 {
  margin: 0 0 22px;
  font-family: "Jost", sans-serif;
  font-size: 42px;
  line-height: 1.2;
  color: #141414;
}
.cms-page p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.75;
  color: #565656;
}
.cms-page-kicker {
  margin: 0 0 12px !important;
  color: #000 !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cms-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.cms-btn-placeholder {
  border-style: dashed;
  background: transparent;
  color: #6c757d !important;
  cursor: not-allowed;
  opacity: .8;
}
.cms-btn-placeholder:hover {
  background: transparent;
  color: #6c757d !important;
}
@media (max-width: 767px) {
  .cms-page { padding: 60px 0 70px; }
  .cms-page h1 { font-size: 32px; }
  .cms-page-actions .cms-btn { width: 100%; text-align: center; }
}

/* Breadcrumbs ---------------------------------------------------------- */
.cms-breadcrumbs {
  margin: 40px 0 10px;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  color: #6c757d;
}
.cms-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.cms-breadcrumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: #b5b5b5;
}
.cms-breadcrumbs a {
  color: #6c757d;
  text-decoration: none;
}
.cms-breadcrumbs a:hover { color: #000; }
.cms-breadcrumbs li[aria-current="page"] { color: #141414; font-weight: 600; }

/* Loading / empty / error states --------------------------------------- */
.cms-state {
  padding: 45px 30px;
  margin-bottom: 30px;
  text-align: center;
  border: 1px dashed #dcdcdc;
  border-radius: 6px;
  font-family: "Jost", sans-serif;
  color: #6c757d;
}
.cms-state h3 {
  color: #141414;
  font-weight: 700;
  margin-bottom: 8px;
}
.cms-state p { margin: 0 0 16px; }
.cms-state.is-error { border-color: #e6b8b8; background: #fffafa; }
.cms-state.is-empty { border-color: #dcdcdc; background: #fafafa; }
.cms-state .cms-btn { margin-top: 4px; }

.cms-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-bottom: 14px;
  border: 2px solid #e0dede;
  border-top-color: #000;
  border-radius: 50%;
  animation: cms-spin .8s linear infinite;
}
@keyframes cms-spin { to { transform: rotate(360deg); } }

/* Buttons --------------------------------------------------------------- */
.cms-btn {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid #000;
  border-radius: 50px;
  background: #000;
  color: #fff !important;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .3s ease-in-out;
  cursor: pointer;
}
.cms-btn:hover { background: #fff; color: #000 !important; }
.cms-btn:disabled { opacity: .55; cursor: default; }
.cms-btn-outline { background: transparent; color: #141414 !important; }
.cms-btn-outline:hover { background: #000; color: #fff !important; }

/* Search form ----------------------------------------------------------- */
.cms-search-form {
  display: flex;
  gap: 10px;
  margin: 0 0 35px;
}
.cms-search-form input.form-control {
  height: 50px;
  border-radius: 50px;
  border: 1px solid #dcdcdc;
  padding: 0 22px;
  font-family: "Jost", sans-serif;
}
.cms-search-form input.form-control:focus {
  border-color: #000;
  box-shadow: 0 0 0 .15rem rgba(0,0,0,.08);
}
.cms-search-form .cms-btn { min-width: 110px; height: 50px; line-height: 30px; }
.cms-search-summary {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 25px;
}
.cms-search-summary strong { color: #141414; }

/* Tag chips ------------------------------------------------------------- */
.cms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}
.cms-tags a,
.cms-category-links a {
  background: #f2f2f2;
  color: #141414;
  padding: 6px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition: all .3s ease-in-out;
}
.cms-tags a:hover,
.cms-category-links a:hover { background: #000; color: #fff; }

/* Author box ------------------------------------------------------------ */
.cms-author-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0;
  padding: 24px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  font-family: "Jost", sans-serif;
}
.cms-author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #eee;
}
.cms-author-box h4 { margin: 0 0 4px; font-weight: 700; font-size: 18px; }
.cms-author-box h4 a { color: #141414; text-decoration: none; }
.cms-author-box h4 a:hover { color: #000; }
.cms-author-box p { margin: 0; font-size: 14px; color: #6c757d; }
.cms-author-box .cms-author-role {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  margin-bottom: 4px;
  font-weight: 600;
}

/* The author box is rendered after the bottom prev/next strip so it never
   sits against or inside the article's bottom media/related area. */
.cms-author-slot {
  clear: both;
  margin: 10px 0 30px;
}
.cms-author-slot .cms-author-box { margin: 0; }

/* Sharing --------------------------------------------------------------- */
.cms-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6c757d;
}
.cms-share a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f2f2f2;
  color: #141414;
  text-decoration: none;
  transition: all .3s ease-in-out;
}
.cms-share a:hover { background: #000; color: #fff; }

/* Rendered article body ------------------------------------------------- */
.cms-content {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.7;
  color: #3d3d3d;
  margin-top: 30px;
}
.cms-content h1, .cms-content h2, .cms-content h3, .cms-content h4 {
  font-family: "Inter", sans-serif;
  color: #141414;
  font-weight: 700;
  margin: 32px 0 14px;
}
.cms-content h2 { font-size: 30px; }
.cms-content h3 { font-size: 24px; }
.cms-content p { margin-bottom: 20px; }
/* Override the template's smaller, heavier article paragraph style. */
.blog-single .single-blog .cms-content p { font-size: 20px; font-weight: 400; line-height: 1.7; }
.cms-content ul, .cms-content ol { padding-left: 24px; margin-bottom: 20px; }
.cms-content li { margin-bottom: 8px; }
.cms-content a { color: #000; text-decoration: underline; }
.cms-content blockquote {
  border-left: 3px solid #000;
  padding: 8px 0 8px 22px;
  margin: 25px 0;
  color: #141414;
  font-style: italic;
  font-size: 21px;
}
.cms-content img { max-width: 100%; height: auto; border-radius: 5px; margin: 15px 0; }
.cms-content pre {
  background: #141414;
  color: #f7f7f7;
  padding: 18px;
  border-radius: 6px;
  overflow-x: auto;
}
.cms-content code { color: #e83e8c; }
.cms-content pre code { color: inherit; }
.cms-content hr { border: 0; border-top: 1px solid #eee; margin: 30px 0; }

/* Related articles ------------------------------------------------------ */
.cms-related { margin: 60px 0 30px; }
.cms-related h2,
.cms-section-title h2 {
  font-family: "Jost", sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
}
.cms-related .row { margin: 0 -10px; }
.cms-related .col-md-4 { padding: 0 10px; }
.cms-related-card { margin-bottom: 20px; }
.cms-related-card a.cms-related-thumb {
  display: block;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 14px;
}
.cms-related-card img { width: 100%; transition: .5s cubic-bezier(.645,.045,.355,1); }
.cms-related-card a.cms-related-thumb:hover img { transform: scale(1.04); }
.cms-related-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; font-family: "Jost", sans-serif; font-weight: 700; }
.cms-related-card h3 a { color: #141414; text-decoration: none; }
.cms-related-card h3 a:hover { color: #000; }
.cms-related-card .cms-related-meta { font-size: 12px; color: #6c757d; }

/* Sidebar widgets ------------------------------------------------------- */
.cms-widget { margin-top: 45px; }
.cms-widget .latest-widget-title h2 { font-size: 28px; margin-bottom: 10px; font-weight: 700; text-transform: uppercase; }
.cms-widget .latest-widget { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.cms-widget .latest-widget-thum { position: relative; flex: 0 0 32%; width: 32%; }
.cms-widget .latest-widget-thum img { display: block; width: 100%; height: auto; max-height: 84px; object-fit: contain; background: #f6f6f6; transition: transform .3s ease-in-out; }
.cms-widget .latest-widget:hover .latest-widget-thum img { transform: scale(.97); }
.cms-widget .latest-widget-thum .icon a { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50px; background: #000; display: flex; align-items: center; justify-content: center; }
.cms-widget .latest-widget-thum .icon a img { width: 50%; }
.cms-widget .latest-widget-content { flex: 1; min-width: 0; }
.cms-widget .latest-widget-content .content-title a { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; line-height: 1.35; color: #141414; text-decoration: none; }
.cms-widget .latest-widget-content .content-title a:hover { color: #000; }
.cms-widget .latest-widget-content .content-meta ul { padding: 0; margin: 0; display: flex; list-style: none; }
.cms-widget .latest-widget-content .content-meta ul li { font-size: 13px; color: #6c757d; }
.cms-category-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Author / tag profile header ------------------------------------------- */
.cms-profile {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
  font-family: "Jost", sans-serif;
}
.cms-profile img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  flex: 0 0 auto;
}
.cms-profile .cms-profile-badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  flex: 0 0 auto;
}
.cms-profile h1 { font-size: 32px; font-weight: 700; margin: 0 0 6px; }
.cms-profile p { margin: 0; color: #6c757d; font-size: 15px; }

/* Pagination helper ----------------------------------------------------- */
.cms-pagination-note {
  text-align: center;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  color: #6c757d;
  margin-top: 12px;
}

/* Small screens --------------------------------------------------------- */
@media (max-width: 767px) {
  .cms-search-form { flex-direction: column; }
  .cms-search-form .cms-btn { width: 100%; }
  .cms-author-box { flex-direction: column; text-align: center; }
  .cms-profile { flex-direction: column; text-align: center; }
  .cms-share { justify-content: center; }
}

/* Article image sizing -------------------------------------------------- */
/* Uploaded images are shown full-size with no shadow and no empty box space.
   The wrapper has no fixed height, so the image and its box stay the same size. */
.featured-post-thumb { flex: 0 0 45%; width: 45%; box-shadow: none !important; }
.featured-post-thumb img { display: block; width: 100%; max-width: 100%; height: auto; background: none; }
.blog-post-thumb img { display: block; width: 100%; max-width: 100%; height: auto; background: none; }
.blog-post-widget .latest-widget-thum img { display: block; width: 100%; max-width: 100%; height: auto; background: none; }
.cms-related-thumb img { display: block; width: 100%; max-width: 100%; height: auto; background: none; }
.blog-single .single-blog > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: none;
  margin: 0 0 35px;
  box-shadow: none !important;
}
/* Inline body images must stay inside the article column (no bleed). */
.blog-single .single-blog .cms-content img {
  margin: 15px 0 !important;
  max-width: 100%;
  height: auto;
  box-shadow: none !important;
}
@media (max-width: 767px) {
  .featured-post-thumb { flex: none; width: 100%; }
}
