/* =====================================================
   AI TOOLS CAROUSEL — STYLES
   Theme: orange/blue ed-tech look (Digital Aacharyas style)

   Edit the variables in :root below to fine-tune once you
   confirm your exact brand hex codes / font names.
===================================================== */

:root{
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Jost', 'Segoe UI', Arial, sans-serif;

  --color-bg: #ffffff;            /* section background */
  --color-card-bg: #ffffff;       /* card background */
  --color-primary: #FF6B1A;       /* orange brand accent */
  --color-primary-dark: #E0550A;  /* darker orange for hover/links */
  --color-secondary: #0B2545;     /* deep navy blue */
  --color-text-heading: #0B2545;  /* navy headings */
  --color-text-body: #5A6472;     /* muted gray-blue body text */
  --color-border: #EDEEF3;
  --color-shadow: rgba(11, 37, 69, 0.09);
}

.aitools-section{
  background: var(--color-bg);
  font-family: var(--font-body);
  padding: 48px 0;
  overflow: hidden;
}

.aitools-header{
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 0 24px;
  text-align: center;
}

.aitools-header h2{
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 8px;
  font-weight: 700;
}

.aitools-header h2 span{
  color: var(--color-primary);
}

.aitools-header p{
  color: var(--color-text-body);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.aitools-carousel-wrap{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 76px;
}

.aitools-track{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.aitools-track:active{ cursor: grabbing; }
.aitools-track::-webkit-scrollbar{ display: none; }

.aitools-card{
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 14px var(--color-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aitools-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 28px var(--color-shadow);
}

.aitools-icon{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.aitools-card h3{
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.aitools-card .tag{
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.aitools-card p{
  color: var(--color-text-body);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.aitools-card a{
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
}
.aitools-card a:hover{ text-decoration: underline; }

.aitools-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-card-bg);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 10px var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .2s ease, color .2s ease, transform .15s ease;
  color: var(--color-primary);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
.aitools-nav:hover{ background: var(--color-primary); color: #fff; }
.aitools-nav:active{ transform: translateY(-50%) scale(.92); }
.aitools-nav.prev{ left: 0; }
.aitools-nav.next{ right: 0; }

.aitools-dots{
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
.aitools-dots span{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background .2s ease, width .2s ease;
}
.aitools-dots span.active{
  background: var(--color-primary);
  width: 20px;
  border-radius: 4px;
}

@media (max-width: 640px){
  .aitools-carousel-wrap{ padding: 0 50px; }
  .aitools-card{ flex-basis: 220px; }
  .aitools-nav{ width: 42px; height: 42px; font-size: 20px; }
}