@charset "UTF-8";

    .font-hand {font-family:'Caveat',cursive; font-weight:600;}
    .hero {display:grid;grid-template-columns:60fr 40fr;gap:56px;align-items:center;}
    .footr {display:grid;grid-template-columns:34fr 22fr 22fr 22fr;gap:48px;}
    @media (max-width: 768px) {
        section { grid-template-columns: 1fr !important; padding-top: 48px !important; }
    }
    .team {display:grid;grid-template-columns:40fr 60fr;gap:56px;align-items:start;}
    @media (max-width: 768px) {
        #editors > div { grid-template-columns: 1fr !important; }
    }
  .btn-primary {
    display: inline-block;
    background: var(--color-red-500);
    color: #fff;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background .2s, color .2s;
  }
  .btn-primary:hover { background: #fff; color: #0f172a; }
  .nav-link {
    font-size: 14px;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: color .2s;
  }
  .nav-link:hover { color: var(--color-gray-900); }
  .btn-login {
    font-size: 14px;
    color: #6b7280;
    background: #f1f5f9;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s, color .2s;
  }
  .btn-login:hover { background: #e2e8f0; color: #111827; }

  .essay-types-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
  }
  .essay-types-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
  }
  .essay-type-ribbon {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .essay-type-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
  }
  .essay-type-tag:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fff1f2;
  }
  .essay-types-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  @media (max-width: 640px) {
    .essay-type-ribbon { grid-template-columns: repeat(2, 1fr); }
    .essay-types-footer { flex-direction: column; gap: 10px; align-items: flex-start; }
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #94a3b8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: border-color .2s, color .2s;
  }
  .carousel-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
  }
  .review-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: border-color .2s, color .2s;
  }
  .review-btn:hover { border-color: #ef4444; color: #ef4444; }
  #testimonials-grid { display: grid; grid-template-columns: 30fr 70fr; gap: 56px; align-items: start; }
  #carouselWindow { overflow: hidden; width: 100%; }
  #carouselTrack  { display: flex; transition: transform .7s ease-in-out; width: 100%; }
  .carousel-slide { min-width: 100%; width: 100%; flex-shrink: 0; box-sizing: border-box; }
  .carousel-slide-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
  .review-card { display: flex; flex-direction: column; box-sizing: border-box; }
  .review-card-body { flex-grow: 1; }
  .review-card-footer { margin-top: auto; }
  .dot-btn { height: 6px; border-radius: 4px; border: none; cursor: pointer; padding: 0; transition: width .3s, background .3s; }
  @media (max-width: 768px) {
    #testimonials-grid       { grid-template-columns: 1fr; }
    .carousel-slide-inner    { grid-template-columns: 1fr; }
  }
  .justifd {flex-direction: row-reverse;}

  .scrollable-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .scrollable-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
  }
  .scrollable-card-dots {
    display: flex;
    gap: 6px;
  }
  .scrollable-card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
  }
  .scrollable-card-body {
    height: 360px;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
  }
  .scrollable-card-body::-webkit-scrollbar {
    width: 4px;
  }
  .scrollable-card-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
  }
  .scrollable-card-body::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 4px;
  }
  .scrollable-card-body p {
      font-size: 13px;
      line-height: 1.6;
      color: #374151;
      margin-bottom: 16px;
    }
    .scrollable-card-body p:last-child { margin-bottom: 0; }
    
    .scrollable-card-body h2 {
      font-family: 'Newsreader', serif;
      font-size: 18px;
      font-weight: 600;
      color: #111827;
      margin-top: 20px;
      margin-bottom: 8px;
      line-height: 1.3;
    }
    
    .scrollable-card-body h3 {
      font-family: 'Newsreader', serif;
      font-size: 16px;
      font-weight: 600;
      color: #1f2937;
      margin-top: 16px;
      margin-bottom: 6px;
      line-height: 1.3;
    }
    
    .scrollable-card-body ul {
      list-style: none;
      padding: 0;
      margin: 0 0 16px 0;
    }
    
    .scrollable-card-body ul li {
      position: relative;
      padding-left: 16px;
      font-size: 13px;
      line-height: 1.6;
      color: #374151;
      margin-bottom: 6px;
    }
    
    .scrollable-card-body ul li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 8px;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #ef4444;
    }
    
    .scrollable-card-body ul li:last-child { margin-bottom: 0; }
  .scrollable-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
  }

  .footer-heading {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
  }
  .footer-link {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
    margin-bottom: 12px;
  }
  .footer-link:hover { color: #fff; }
  .footer-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: border-color .2s, color .2s;
  }
  .footer-social:hover { border-color: #ef4444; color: #ef4444; }
  .footer-grid {
    display: grid;
    grid-template-columns: 34fr 22fr 22fr 22fr;
    gap: 48px;
  }
  .footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 56px;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #94a3b8;
  }
  .footer-badge svg { color: #ef4444; }
  @media (min-width: 640px) {
    .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  }
  @media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  }
  @media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
  }

.pagination{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin:0;
    padding:0;
    list-style:none;
}

.pagination li{
    margin:0;
}

.pagination li a,
.pagination li span{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    height:42px;
    padding:0 14px;
    border:1px solid #e2e8f0;
    background:#ffffff;
    color:#475569;
    font-size:14px;
    font-weight:600;
    border-radius:10px;
    text-decoration:none;
    transition:all .2s ease;
}

.pagination li a:hover{
    background:#ef4444;
    border-color:#ef4444;
    color:#ffffff;
}

.pagination .active span{
    background:#ef4444;
    border-color:#ef4444;
    color:#ffffff;
    box-shadow:0 4px 12px rgba(239,68,68,.15);
}

.pagination .disabled span{
    background:#f8fafc;
    color:#94a3b8;
    cursor:not-allowed;
}

.pagination li:first-child a,
.pagination li:last-child a,
.pagination li:first-child span,
.pagination li:last-child span{
    padding:0 18px;
}