.pt-100 {
  padding-top: 100px;
}
.pb-75 {
  padding-bottom: 75px;
}

/* CATEGORY CARD */
.category-card {
  display: block;
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e6f0ff;
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.08);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.05), transparent);
  z-index: 0;
}

.category-card * {
  position: relative;
  z-index: 2;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(26, 115, 232, 0.18);
  border-color: #1a73e8;
}

.category-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

/* COURSE CARD */
.course-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  transition: 0.3s;
  margin-bottom: 30px;
}

.course-thumb {
  overflow: hidden;
}

.course-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-content {
  background: #fff;
  padding: 20px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.course-tag {
  display: inline-block;
  background: #eaf3ff;
  color: #1a73e8;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 10px;
}

.course-price span {
  color: #0c3c6b;
  font-weight: 600;
  font-size: 18px;
}

.add-btn {
  display: block;
  margin-top: 15px;
  background: #1a73e8;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 30px;
  text-decoration: none;
}
/* BUTTON (Hidden by default) */
.course-btn {
  padding: 15px;
}
.course-btn a {
  display: block;
  background: #0c3c6b;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 30px;
  text-decoration: none;
}
/* 🔥 HOVER EFFECT */

.course-card:hover .course-thumb img {
  transform: scale(1.05);
}

/* course details */
.details-hero {
  background: linear-gradient(135deg, #1a73e8, #0f4c81);
  color: #fff;
  padding: 80px 0;
}

.details-hero h2 {
  font-size: 32px;
  margin: 15px 0;
}

.details-category {
  background: #0d3c6a;
  border-radius: 6px;
  margin-bottom: 15px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  color: #fff;
}
.details-area {
  padding: 40px 0;
}

.details-block {
  margin-bottom: 50px;
}

.details-block h3 {
  margin-bottom: 20px;
  font-size: 24px;
}

.learn-list {
  list-style: none;
  padding: 0;
}

.learn-list li {
  width: 50%;
  float: left;
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.learn-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1a73e8;
}
.course-details-sidebar {
  margin-top: -150px;
}
.details-sidebar {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 30px;
  z-index: 10;
}

.details-sidebar img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.price-box {
  text-align: center;
  margin-bottom: 20px;
}

.price-box del {
  display: block;
  color: #888;
}

.price-box span {
  font-size: 24px;
  font-weight: 700;
  color: #0c3c6b;
}

.btn-primary {
  display: block;
  text-align: center;
  background: #1a73e8;
  color: #fff;
  padding: 12px;
  border-radius: 30px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #0f4c81;
}

.course-info {
  list-style: none;
  padding: 0;
}

.course-info li {
  margin-bottom: 10px;
  font-size: 14px;
}
.page-header__content2 {
  text-align: left !important;
}
.page-header__content2 h2 {
  font-size: 40px;
}
.page-header {
  padding: 60px 0 !important;
  position: relative;
}
@media (max-width: 991px) {
  .details-sidebar {
    margin-top: 40px;
    position: relative;
    top: 0;
  }
}

/* tabs */
.course-category-nav-wrapper {
  padding: 25px 0 10px;
  background: #f8f9fc; /* light section background */
}

/* MAIN NAV */
.course-category-nav {
  position: relative;
  justify-content: center; /* LEFT aligned */
}

/* NAV BOX */
.course-category-nav nav {
  background: #ffffff;
  border: 1px solid #e6e8f0;
  border-radius: 10px;
  padding: 10px 15px;
  box-shadow:
    inset 0 1px 4px #3036510f,
    0 1px 1px #3036510f;
}

/* REMOVE default UL spacing */
.course-category-nav nav ul {
  margin: 0;
  padding: 0;
}

/* HORIZONTAL ITEMS */
.course-category-nav nav ul li {
  display: inline-block;
  margin-right: 5px;
}

/* TAB STYLE */
.course-category-nav nav ul li a {
  display: inline-block;
  padding: 8px 50px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ACTIVE */
.course-category-nav nav ul li.current a {
  background: #0c3d6a;
  color: #fff;
}

/* HOVER */
.course-category-nav nav ul li a:hover {
  background: #eaf1ff;
  color: #1a73e8;
}

/* ===== CART ITEM ===== */
.cart-heading {
  margin-bottom: 20px;
}

.cart-heading-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-icon {
  font-size: 28px;
}

.cart-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.cart-count {
  color: #777;
  font-size: 14px;
}

.cart-item-new {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.cart-image img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-course-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cart-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.cart-price {
  font-size: 16px;
  margin-bottom: 10px;
}

.cart-price del {
  color: #999;
  margin-right: 8px;
}

.cart-price span {
  color: #1a73e8;
  font-weight: 600;
}

.cart-remove {
  font-size: 13px;
  color: #d9534f;
  text-decoration: none;
  padding: 4px;
  border-radius: 5px;
}

.cart-remove:hover {
  color: #d9534f;
  background-color: #d9534f47;
}
.cart-info {
  width: 100%;
}
.title-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.cart-meta span {
  font-size: 10px;
  font-weight: 600;
}
.cart-meta .filter {
  background-color: #6d28d2;
  color: #fff;
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: 600;
  margin-right: 10px;
}
.remove-btn {
  float: right;
}
@media (max-width: 768px) {
  .cart-item-new {
    flex-direction: column;
  }

  .cart-image img {
    width: 100%;
    height: 180px;
  }
}

/* ===== CHECKOUT OVERLAY ===== */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 9999;
}

.checkout-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== SLIDE PANEL ===== */
.checkout-container {
  width: 100%;
  max-width: 1100px;
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  position: relative;
}

.checkout-overlay.active .checkout-container {
  transform: translateX(0);
}

/* CLOSE BUTTON */
.checkout-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 22px;
  cursor: pointer;
}

/* CONTENT GRID */
.checkout-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: 100%;
}

/* LEFT SIDE */
.checkout-left {
  padding: 60px 50px;
}

.checkout-left h3 {
  margin-bottom: 30px;
}

/* FORM */
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.checkout-left textarea::placeholder {
  color: #666666;
}
.form-row input,
.form-row select,
.checkout-left textarea {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.checkout-left textarea:focus {
  background: rgba(255, 255, 255, 0.55);
  border-color: #c8414f;
  box-shadow: 0 8px 20px rgba(200, 65, 79, 0.25);
  transform: translateY(-2px);
  outline: none;
}

.checkout-left textarea {
  width: 100%;
  resize: none;
}

.checkout-submit {
  background: #0c3c6b;
  color: #fff;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.checkout-submit:hover {
  background: #111827;
}

/* RIGHT SIDE */
.checkout-right {
  background: #f7f9fc;
  padding: 60px 40px;
  border-left: 1px solid #eee;
}

.summary-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .checkout-content {
    grid-template-columns: 1fr;
  }
  .checkout-right {
    border-left: none;
    border-top: 1px solid #eee;
  }
}

/* SUMMARY STYLING */
.discount-row span:last-child {
  color: #28a745;
  font-weight: 500;
}

.total-row {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: 10px;
  font-size: 18px;
}

/* SUMMARY BUTTON */
.summary-btn {
  margin-top: 20px;
  width: 100%;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  .checkout-right {
    padding: 15px 0px;
  }
  .checkout-left {
    padding: 30px;
  }
  .summary-box {
    padding: 20px 30px;
  }

  .form-row input,
  .form-row select,
  .checkout-left textarea {
    width: 100%;
  }
}
/* ===== MOBILE HEADER ===== */
.checkout-mobile-header {
  display: none;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.checkout-mobile-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.checkout-close-mobile {
  cursor: pointer;
  font-size: 18px;
}

/* ===== MOBILE SUMMARY TOGGLE ===== */
.mobile-summary-toggle {
  display: none;
  padding: 15px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.mobile-summary-toggle button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
}
@supports (color: color-mix(in oklab, red, transparent)) {
  .mobile-summary-toggle button:focus {
    outline: 2px solid color-mix(in oklab, #1a73e8 60%, transparent);
  }
}
.summary-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-arrow {
  transition: transform 0.3s ease;
  top: -5px;
  position: relative;
}

.mobile-summary-content.active + .summary-right .summary-arrow {
  transform: rotate(180deg);
}

.mobile-summary-content {
  margin-top: 15px;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 1px 3px 5px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.04);
  display: none;
}

/* MOBILE CONTINUE BUTTON */
.mobile-continue {
  display: none;
  margin-top: 20px;
}
.checkout-open .enroll-sticky-vertical {
  display: none !important;
}
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  background: #0c3d6a;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  box-shadow: none;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: #111827;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.25);
}

.btn-primary:focus,
.btn-primary:active {
  outline: none;
  border: none;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .checkout-content {
    display: block;
  }

  .checkout-right {
    display: none;
  }

  .checkout-mobile-header {
    display: block;
  }

  .mobile-summary-toggle {
    display: block;
  }

  .mobile-continue {
    display: block;
  }
  .checkout-close {
    display: none;
  }
}

/* for course-list page  */
.course-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 5px;
}

.course-action-row a,
.course-action-row button {
  flex: 1;
  text-align: center;
  padding: 10px 0;
}

/* Optional styling */
.course-action-row .buy-btn {
  background: #ff6b00;
  border-radius: 30px;
}

.course-action-row .in-cart {
  background: #28a745;
}

/* Mobile responsive */
@media (max-width: 576px) {
  /* .course-action-row {
    flex-direction: column;
  } */
}
.course-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  margin-bottom: -15px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-row span {
  font-size: 15px;
}
.course-content h4 {
  margin-bottom: 8px;
}

.course-content h5 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.course-content h4 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.course-html-content ul {
  list-style-type: disc !important;
  margin-left: 20px !important; 
  margin-bottom: 15px;
  padding-left: 15px !important;
}

.course-html-content ol {
  list-style-type: decimal !important; 
  margin-left: 20px !important;
  margin-bottom: 15px;
  padding-left: 15px !important;
}

.course-html-content li {
  margin-bottom: 8px; 
  display: list-item !important; 
}

.course-html-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}
