/**
 * Theme Name: Sky Pilot
 * Theme URI: https://lifterlms.com
 * Author: LifterLMS
 * Author URI: https://lifterlms.com
 * Description: The best WordPress LMS theme built for speed using modern technology and optimized for beautiful eLearning experiences. Deliver the best learner experience with a theme built exclusively for courses & membership sites.
 * Requires at least: 6.1
 * Tested up to: 6.2
 * Requires PHP: 7.4
 * Version: 2.2.0
 * License: GPLv2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: sky-pilot
 * Domain Path: /languages
 * Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, sticky-post, threaded-comments
 */

/**
 * Global styles.
 */

* {
	box-sizing: border-box;
}

/**
 * General structure.
 */
footer.site-footer {
	clear: both;
	margin-top: 0;
}

/**
 * Base elements.
 */
hr {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--contrast-lightest);
}

/**
 * Tables.
 */
table {
	background-color: #fcfcfc;
	border: 10px solid #fcfcfc;
	border-collapse: collapse;
	border-radius: calc(var(--wp--custom--border--radius) * 2);
	color: var(--wp--preset--color--contrast);
	margin: var(--wp--preset--spacing--30) 0;
	max-width: 100%;
	overflow: hidden;
	width: 100%;
}

th,
td {
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
	vertical-align: top;
}

thead th,
thead td,
tbody th {
	font-family: var(--wp--custom--heading--font-family);
	font-weight: var(--wp--custom--heading--font-weight);
	text-align: left;
	vertical-align: bottom;
}

tbody td {
	vertical-align: middle;
}

tbody tr th:first-child,
tbody tr td:first-child {
	border-bottom-left-radius: calc(var(--wp--custom--border--radius) * 2);
	border-top-left-radius: calc(var(--wp--custom--border--radius) * 2);
}

tbody tr th:last-child,
tbody tr td:last-child {
	border-top-right-radius: calc(var(--wp--custom--border--radius) * 2);
	border-bottom-right-radius: calc(var(--wp--custom--border--radius) * 2);
}

tbody tr:nth-child(odd) th,
tbody tr:nth-child(odd) td {
	background-color: #f5f5f5;
}

/**
 * Forms.
 */
label {
	font-family: var(--wp--custom--heading--font-family);
	font-weight: var(--wp--custom--heading--font-weight);
}

fieldset {
	border-color: var(--wp--preset--color--contrast-lighter);
	border-radius: var(--wp--custom--border--radius);
	border-style: solid;
	border-width: 1px;
	margin: var(--wp--preset--spacing--20) 0;
}

legend {
	font-family: var(--wp--custom--heading--font-family);
	font-weight: var(--wp--custom--heading--font-weight);
}

[type="text"],
[type="password"],
[type="email"],
[type="url"],
[type="tel"],
[type="number"] {
	background-color: var(--wp--preset--color--base);
	background-clip: padding-box;
	border: 1px solid var(--wp--preset--color--contrast-lighter);
	border-radius: var(--wp--custom--border--radius);
	box-sizing: border-box;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--18);
	line-height: 1;
	padding: calc(var(--wp--preset--spacing--10) / 2);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	width: 100%;
}

textarea {
	background-color: var(--wp--preset--color--base);
	background-clip: padding-box;
	border: 1px solid var(--wp--preset--color--contrast-lighter);
	border-radius: var(--wp--custom--border--radius);
	box-sizing: border-box;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--18);
	line-height: 1;
	padding: calc(var(--wp--preset--spacing--10) / 2);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	width: 100%;
}

input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible {
	border-color: #80bdff;
	box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
	outline: thin dotted;
}

select {
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	appearance: none;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast-lighter);
	border-radius: var(--wp--custom--border--radius);
	box-sizing: border-box;
	color: var(--wp--preset--color--contrast);
	padding: calc(var(--wp--preset--spacing--10) / 2);
	margin: 0;
	width: 100%;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--18);
	cursor: inherit;
	line-height: 1.6;
	z-index: 1;
	outline: none;
	background-repeat: no-repeat;
	background-image: linear-gradient(45deg, transparent 50%, currentcolor 50%), linear-gradient(135deg, currentcolor 50%, transparent 50%);
	background-position: right 15px top 1.3rem, right 10px top 1.3rem;
	background-size: 5px 5px, 5px 5px;
}

select::-ms-expand {
	display: none;
}

select:focus {
	border: 1px solid #80bdff;
	box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
	outline: thin dotted;
}

[type="submit"] {
	background-color: var(--wp--preset--color--tertiary);
	border-radius: var(--wp--custom--border--radius);
	border-width: 0;
	color: var(--wp--preset--color--base);
	cursor: pointer;
	display: inline-block;
	font-family: var(--wp--custom--heading--font-family);
	font-size: var(--wp--preset--font-size--18);
	font-weight: var(--wp--custom--heading--font-weight);
	line-height: 1;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
	text-decoration: none;
	transition: background-color 0.25s ease-in-out;
}

[type="submit"]:hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
}

:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast-lighter);
	border-radius: var(--wp--custom--border--radius);
	overflow: hidden;
	padding: 0;
}

.wp-block-search__button-inside input[type="search"] {
	background-color: var(--wp--preset--color--base);
	background-clip: padding-box;
	font-size: var(--wp--preset--font-size--18);
	line-height: 1;
	padding: calc(var(--wp--preset--spacing--10) / 2);
}

.wp-block-search input[type="search"]:not(.wp-block-search__button-inside input[type="search"]) {
	background-color: var(--wp--preset--color--base);
	background-clip: padding-box;
	border: 1px solid var(--wp--preset--color--contrast-lighter);
	border-radius: var(--wp--custom--border--radius);
	box-sizing: border-box;
	font-size: var(--wp--preset--font-size--18);
	line-height: 1;
	padding: calc(var(--wp--preset--spacing--10) / 2);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wp-block-search input[type="search"]:focus:not(.wp-block-search__button-inside input[type="search"]),
.wp-block-search input:focus-visible:not(.wp-block-search__button-inside input[type="search"]) {
	border-color: #80bdff;
	box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
	outline: thin dotted;
}

.wp-block-search__button-inside input[type="search"]:focus,
.wp-block-search__button-inside input:focus-visible {
	box-shadow: none;
	outline: transparent;
}

.wp-block-search__button-inside .wp-block-search__button {
	border-radius: 0;
}

header .wp-block-search__button,
footer .wp-block-search__button {
	padding: calc(var(--wp--preset--spacing--10) / 2);
}

/**
 * Core WordPress elements.
 */
.avatar {
	border-radius: 50%;
}

/**
 * Author card.
 */
.is-style-sky-pilot-post-author-boxed {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast-lightest);
	border-radius: 12px;
	clear: both;
	display: block;
	text-align: center;
}

.is-style-sky-pilot-post-author-boxed .wp-block-post-author__byline,
.is-style-sky-pilot-post-author-boxed .wp-block-post-author__name {
	display: inline-block;
	font-family: var(--wp--custom--heading--font-family);
	font-size: var(--wp--preset--font-size--18);
	padding: 0 3px;
	width: auto;
}

.is-style-sky-pilot-post-author-boxed .wp-block-post-author__name {
	font-weight: 900;
}

.is-style-sky-pilot-post-author-boxed .wp-block-post-author__avatar {
	margin-right: 0;
}

.is-style-sky-pilot-post-author-boxed .wp-block-post-author__bio {
	font-size: var(--wp--preset--font-size--18);
}

/**
 * Buttons
 */
button {
	font-family: var(--wp--custom--heading--font-family);
}

/* Outline Buttons */
.wp-block-button .wp-block-button__link {
	word-break: initial;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 3px;
}

.wp-block-button.is-style-outline.has-large-font-size .wp-block-button__link {
	border-width: 5px;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover:not(.wp-block-button.is-style-outline .wp-block-button__link.has-background:hover) {
	background-color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* XS Font Size */
.wp-block-button.has-14-font-size .wp-block-button__link {
	padding-top: calc(var(--wp--preset--spacing--10) / 2);
	padding-right: var(--wp--preset--spacing--10);
	padding-bottom: calc(var(--wp--preset--spacing--10) / 2);
	padding-left: var(--wp--preset--spacing--10);
}

.wp-block-button.is-style-outline.has-14-font-size .wp-block-button__link {
	border-width: 2px;
}

.wp-block-button.has-14-font-size.is-style-outline .wp-block-button__link {
	padding-top: calc(var(--wp--preset--spacing--10) / 2 - 3px);
	padding-right: calc(var(--wp--preset--spacing--10) - 3px);
	padding-bottom: calc(var(--wp--preset--spacing--10) / 2 - 3px);
	padding-left: calc(var(--wp--preset--spacing--10) - 3px);
}

/* L or XL Font Size */
.wp-block-button.has-large-font-size .wp-block-button__link {
	padding-top: calc(var(--wp--preset--spacing--20) / 2);
	padding-right: var(--wp--preset--spacing--30);
	padding-bottom: calc(var(--wp--preset--spacing--20) / 2);
	padding-left: var(--wp--preset--spacing--30);
}

.wp-block-button.has-large-font-size.is-style-outline .wp-block-button__link {
	padding-top: calc(var(--wp--preset--spacing--20) / 2 - 5px);
	padding-right: calc(var(--wp--preset--spacing--30) - 5px);
	padding-bottom: calc(var(--wp--preset--spacing--20) / 2 - 5px);
	padding-left: calc(var(--wp--preset--spacing--30) - 5px);
}

/**
 * Navigation Block Styles
 */
.is-style-navigation-button > * {
	border: 3px solid;
	border-radius: var(--wp--custom--border--radius);
	color: currentcolor;
	padding-top: calc(var(--wp--preset--spacing--10) / 2 - 3px);
	padding-right: calc(var(--wp--preset--spacing--10) - 3px);
	padding-bottom: calc(var(--wp--preset--spacing--10) / 2 - 3px);
	padding-left: calc(var(--wp--preset--spacing--10) - 3px);
}

.is-style-navigation-button > *:hover,
.wp-block-navigation .is-style-navigation-button > *:hover {
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation__submenu-icon path {
	stroke-width: 2;
}

/**
 * Comments.
 */

.wp-block-post-comments-form input:not([type="submit"]),
.wp-block-post-comments-form textarea {
	border: 1px solid var(--wp--preset--color--contrast-lighter);
	border-radius: var(--wp--custom--border--radius);
}

/**
 * Columns
 */
.wp-block-column.has-background {
	padding: var(--wp--preset--spacing--20);
}

/**
 * Custom class for query loop items
 */
.wp-block-query .wp-block-post > .wp-block-group,
.loop-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid #ddd;
	border-radius: 12px;
	overflow: hidden;
}

.wp-block-query .wp-block-post > .wp-block-group > *:not(figure):not(.wp-block-post-featured-image__placeholder):not(.wp-block-post-featured-image),
.loop-card > *:not(figure) {
	padding-right: var(--wp--preset--spacing--20);
	padding-left: var(--wp--preset--spacing--20);
}

/**
 * Featured Image
 */
.wp-block-post-featured-image__placeholder img {
	height: auto;
	width: 100%;
}

.wp-block-post-featured-image__placeholder img:not(.loop-card .wp-block-post-featured-image__placeholder img):not(.wp-block-query .wp-block-post .wp-block-post-featured-image__placeholder img),
.wp-block-query .wp-block-post.sticky .wp-block-post-featured-image__placeholder img {
	border-radius: 12px;
}

.loop-card .wp-block-post-featured-image__placeholder {
	padding: 0;
}

/*
 * Utility
 */
.list-style-none {
	list-style: none;
}

@media (max-width: 781px) {

	.hide-mobile {
		display: none;
	}
}

@media (min-width: 782px) {

	.hide-desktop {
		display: none;
	}
}

/**
 * Inherits.
 */

/* Allows for the use of text-decoration on links without settings. */
[style*="text-decoration:"] a:not(:hover) {
	text-decoration: inherit;
}
/* =========================================================
   LifterLMS Course Catalog - Grid + Card UI
   ========================================================= */

/* =========================================================
   LifterLMS Course Catalog - BTK Card UI (KEMER TASARIM)
   ========================================================= */

/* Grid */
.post-type-archive-course ul.llms-loop-list,
.tax-course_cat ul.llms-loop-list,
.tax-course_tag ul.llms-loop-list{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 22px !important;
  padding-left: 0 !important;
  margin: 0 !important;
  align-items: stretch !important;
}

/* li reset */
.post-type-archive-course ul.llms-loop-list > li,
.tax-course_cat ul.llms-loop-list > li,
.tax-course_tag ul.llms-loop-list > li{
  list-style: none !important;
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
}

/* Card */
.btk-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btk-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}
.btk-card__link{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Media */
.btk-card__media{
  height: 165px;
  background: #f3f4f6;
  overflow: hidden;
}
.btk-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.btk-card__body{
  padding: 14px 14px 16px;
}

/* Category */
.btk-card__cat{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .18);
  margin-bottom: 10px;
}

/* Title */
.btk-card__title{
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #111827;

  display: -webkit-box;
  /*-webkit-line-clamp: 2;*/
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

/* =========================================================
   KEMER (strap) - zorluk + ders sayısı
   ========================================================= */

.sp-course-card .btk-card__meta{
  /* kemer */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;

  background: #fafafa;
  border: 1px solid rgba(0,0,0,.08);

  /* profesyonel satır düzeni */
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #334155;

  /* baloncuk hissini bitir */
  box-shadow: none;
}

/* meta içindeki gereksiz boşluklar */
.sp-course-card .btk-card__meta > *{
  margin: 0 !important;
}

/* Zorluk (LifterLMS çıktısı) - baloncuk değil düz metin */
.sp-course-card .btk-card__meta .llms-difficulty,
.sp-course-card .btk-card__meta .llms-loop-item-difficulty,
.sp-course-card .btk-card__meta .llms-meta-difficulty{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;

  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;

  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 70%;
}

/* Zorluk içindeki ayraç/nokta/label gibi parçaları temizle */
.sp-course-card .btk-card__meta .llms-difficulty .llms-sep,
.sp-course-card .btk-card__meta .llms-difficulty .llms-separator,
.sp-course-card .btk-card__meta .llms-difficulty .sep,
.sp-course-card .btk-card__meta .llms-difficulty .dot,
.sp-course-card .btk-card__meta .llms-difficulty .bullet,
.sp-course-card .btk-card__meta .llms-difficulty .llms-meta-sep,
.sp-course-card .btk-card__meta .llms-difficulty .llms-label{
  display: none !important;
}

/* Zorluk ikonunu kemere uygun boyutla */
.sp-course-card .btk-card__meta .llms-difficulty i,
.sp-course-card .btk-card__meta .llms-difficulty svg{
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 auto !important;
  opacity: .75 !important;
}

/* Ders sayısı - sağda, zorlukla aynı font */
.sp-course-card .btk-card__meta .btk-pill--lessons{
  margin-left: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;

  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;

  white-space: nowrap !important;
}

/* Eğer "22 ders" içinde ekstra style varsa sıfırla */
.sp-course-card .btk-card__meta .btk-pill{
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

/* =========================================================
   Progress - ince bar
   ========================================================= */
.btk-card__progress .llms-progress{
  margin: 0;
}
.btk-card__progress .llms-progress .llms-progress-bar{
  height: 6px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}
.btk-card__progress .llms-progress .llms-progress-text{
  font-size: 12px !important;
  font-weight: 700;
  color: #0f172a;
}

/* Opsiyonel: "Tahmini Zaman:" label gizle */
.llms-length .llms-label{
  display: none !important;
}
.llms-length{
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

/* Responsive */
@media (max-width: 520px){
  .post-type-archive-course ul.llms-loop-list,
  .tax-course_cat ul.llms-loop-list,
  .tax-course_tag ul.llms-loop-list{
    gap: 16px !important;
  }

  .sp-course-card .btk-card__meta{
    padding: 9px 10px;
    font-size: 12.5px;
  }

  .sp-course-card .btk-card__meta .llms-difficulty,
  .sp-course-card .btk-card__meta .llms-loop-item-difficulty,
  .sp-course-card .btk-card__meta .llms-meta-difficulty{
    max-width: 62%;
  }
}
