/* Mobile readability improvements for landing pages */

@media (max-width: 991.98px) {
  body,
  p,
  li,
  input,
  select,
  textarea,
  button {
    font-size: 15px;
    line-height: 1.65;
  }

  h1,
  .h1 {
    font-size: clamp(2.8rem, 7.2vw, 4rem);
    line-height: 1.2;
  }

  h2,
  .h2 {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    line-height: 1.25;
  }

  h3,
  .h3 {
    font-size: clamp(2rem, 5vw, 2.6rem);
    line-height: 1.3;
  }

  h4,
  .h4 {
    font-size: clamp(1.8rem, 4.2vw, 2.2rem);
    line-height: 1.3;
  }

  h5,
  .h5 {
    font-size: clamp(1.6rem, 3.8vw, 2rem);
    line-height: 1.35;
  }

  h6,
  .h6 {
    font-size: clamp(1.45rem, 3.4vw, 1.8rem);
    line-height: 1.4;
  }

  .tf-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .heading-section h2,
  .heading-section h3,
  .page-title h1,
  .page-title h2,
  .page-title-home10 h1 {
    margin-bottom: 10px;
  }

  .heading-section .sub,
  .article-summary,
  .meta-item p,
  .entry-meta li,
  .author,
  .comment-item p {
    font-size: 14px;
    line-height: 1.65;
  }

  .grid-layout-4,
  .grid-layout-3,
  .grid-layout-2 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .blog-article-item,
  .course-item,
  .widget-saying-item,
  .dashboard-item,
  .cart-item,
  .service-card {
    width: 100%;
    max-width: 100%;
  }

  .meta,
  .course-item .meta,
  .blog-article-item .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .meta-item {
    min-width: 0;
  }

  .tf-btn,
  .tf-btn-arrow,
  .header-action-btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.3;
  }

  .header .header-btn {
    gap: 8px;
  }

  .header-cart .header-text {
    font-size: 13px;
  }

  .header-cart-count {
    font-size: 12px;
  }

  .article-reading .article-body,
  .article-reading .tinymce-content,
  .article-reading .article-body p,
  .article-reading .article-body li {
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .comment-form .tf-input,
  .comment-form textarea,
  .comment-form input,
  .form-control,
  .form-select {
    font-size: 15px;
  }

  .table-responsive {
    font-size: 13px;
  }

  /* Home */
  .page-title-home10 .content h1 {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 30px;
    line-height: 36px !important;
    letter-spacing: 1px;
  }

  .page-title-home10 .headline-description,
  .sub-headline-description {
    max-width: 62ch;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-title-home10 .bottom-btns {
    display: grid;
    gap: 10px;
    justify-content: center;
  }

  /* Services */
  .grid-list-items-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
  }

  .course-item .content .bottom {
    gap: 8px;
  }

  .course-item .content .price,
  .course-item .content .h5.price,
  .course-item .content .h6.price {
    font-size: 1.7rem;
    line-height: 1.35;
  }

  /* Blog */
  .page-blog-single .image-head img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
  }
  .blog-article-item .article-thumb{
    height: auto !important;
  }
  .article-reading h1{
    font-size: 2.1rem;
    line-height: 28px !important;
  }
  .page-blog-single .image-head{
    width: 100% !important;
  }

  .blog-single-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .comment-item {
    padding: 12px 0;
  }

  /* My Profile */
  .profile-container {
    padding-left: 0;
    padding-right: 0;
  }

  .dashboard_navigationbar {
    margin-bottom: 12px;
  }

  .dashboard-item {
    font-size: 14px;
    line-height: 1.45;
    padding: 12px 14px;
  }

  .course-card-body .course-name {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .course-card-body .course-desc,
  .course-card-body .course-meta {
    font-size: 13px;
    line-height: 1.6;
  }
}

@media (max-width: 575.98px) {
  .tf-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  body,
  p,
  li {
    font-size: 14px;
    line-height: 1.7;
  }

  .heading-section .sub,
  .article-summary,
  .meta-item p,
  .entry-meta li,
  .author,
  .comment-item p {
    font-size: 13px;
  }

  .header-cart .header-text,
  .header-cart-count {
    font-size: 12px;
  }

  .tf-btn,
  .tf-btn-arrow,
  .header-action-btn {
    width: 100%;
    justify-content: center;
  }

  .header .header-action-btn {
    width: auto;
  }

  .page-title-home10 .bottom-btns {
    width: 100%;
  }
  .page-title-home10 .content .bottom-btns{
    gap: 5px 20px;
  }

  .page-title-home10 .bottom-btns .tf-btn {
    width: 100%;
  }

  .grid-list-items-4 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .course-card-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .course-item .content .bottom {
    display: grid;
    gap: 8px;
  }

  .course-item .content .bottom .tf-btn-arrow,
  .course-item .content .bottom form,
  .course-item .content .bottom button {
    width: 100%;
  }

  .page-blog-single .image-head img {
    max-height: 220px;
  }

  .comments-wrap,
  .blog-single-wrap,
  .section-right,
  .section-dashboard-right,
  .section-order-right,
  .section-setting-right {
    padding-left: 0;
    padding-right: 0;
  }
}
