/* ==========================================================================
   Native Speakers Blog Grid & Modern UI Styles
   ========================================================================== */

#tildafonts-loading {
  display: none !important;
}

:root {
  --ns-font-family: "FuturaPT", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ns-color-primary: #ff8562;
  --ns-color-primary-hover: #e06846;
  --ns-color-text-main: #111827;
  --ns-color-text-muted: #4b5563;
  --ns-color-text-light: #9ca3af;
  --ns-color-card-bg: #ffffff;
  --ns-color-card-border: #eaedf0;
  --ns-color-card-border-hover: #cbd5e1;
  --ns-color-bg-subtle: #f8fafc;
  --ns-radius-card: 14px;
  --ns-radius-img: 10px;
  --ns-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --ns-shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.08);
}

/* Hero Section */
.ns-blog-hero {
  position: relative;
  background: #0f172a;
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.95) 100%), url("/images/tild6536-3766-4230-b431-383233373730__img_7941.jpg");
  background-size: cover;
  background-position: center;
  padding: 130px 20px 60px;
  text-align: center;
  color: #ffffff;
}

.ns-blog-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}

.ns-blog-hero__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ff8562 !important;
  margin-bottom: 12px;
}

.ns-blog-hero__title {
  font-family: var(--ns-font-family);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #ffffff !important;
}

.ns-blog-hero__subtitle {
  font-size: 17px;
  line-height: 1.55;
  color: #cbd5e1 !important;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

@media (max-width: 768px) {
  .ns-blog-hero {
    padding: 100px 16px 45px;
  }
  .ns-blog-hero__title {
    font-size: 32px;
  }
  .ns-blog-hero__subtitle {
    font-size: 15px;
  }
}

/* Grid Wrapper & Container */
.ns-blog-section {
  background-color: #f8fafc;
  padding: 60px 0 90px;
  min-height: 500px;
}

.ns-blog-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Grid Layout */
.ns-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .ns-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }
}

@media (max-width: 640px) {
  .ns-blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ns-blog-container {
    padding: 0 16px;
  }
  .ns-blog-section {
    padding: 40px 0 60px;
  }
}

/* Card Component */
.ns-card {
  display: flex;
  flex-direction: column;
  background: var(--ns-color-card-bg);
  border: 1px solid var(--ns-color-card-border);
  border-radius: var(--ns-radius-card);
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: var(--ns-shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), 
              box-shadow 0.25s cubic-bezier(0.2, 0, 0.2, 1), 
              border-color 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  color: inherit;
  position: relative;
}

.ns-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ns-shadow-hover);
  border-color: var(--ns-color-card-border-hover);
}

/* Cover Image */
.ns-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
  display: block;
  flex-shrink: 0;
}

.ns-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.ns-card:hover .ns-card__img {
  transform: scale(1.04);
}

/* Content Area */
.ns-card__body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ns-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ns-card__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--ns-color-primary) !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ns-card__title {
  font-family: var(--ns-font-family);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ns-color-text-main) !important;
  margin: 0 0 10px;
  transition: color 0.15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ns-card:hover .ns-card__title {
  color: var(--ns-color-primary) !important;
}

.ns-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ns-color-text-muted) !important;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Action bar inside card */
.ns-card__footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ns-color-primary) !important;
}

.ns-card__footer-arrow {
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.ns-card:hover .ns-card__footer-arrow {
  transform: translateX(4px);
}

/* Pagination / Load More */
.ns-blog-pagination {
  margin-top: 48px;
  text-align: center;
}

.ns-btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ns-font-family);
  color: #ffffff !important;
  background-color: #111827;
  border: 1px solid #111827;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ns-btn-load-more:hover {
  background-color: #ff8562;
  border-color: #ff8562;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 133, 98, 0.25);
}

.ns-btn-load-more:active {
  transform: translateY(0);
}


/* ==========================================================================
   Header Navigation Over Dark Hero
   ========================================================================== */

.t199__header:not(.t199__is__active) .t199__menu-item {
  color: #ffffff !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

.t199__header:not(.t199__is__active) .t199__menu-item:hover,
.t199__header:not(.t199__is__active) .t199__menu-item:focus-visible {
  color: #FFE600 !important;
}

.t199__header:not(.t199__is__active) .t199__menu-item.t-active {
  color: #FFE600 !important;
  opacity: 1 !important;
}

.t199__header.t199__is__active .t199__menu-item {
  color: #111827 !important;
  font-weight: 600;
}

.t199__header.t199__is__active .t199__menu-item:hover,
.t199__header.t199__is__active .t199__menu-item:focus-visible {
  color: #ff8562 !important;
}

.t199__header:not(.t199__is__active) .t-menuburger span {
  background-color: #ffffff !important;
}
