:root {
  --bg-page: #030712;
  --bg-card: rgba(30, 41, 59, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.1);
  --primary: #38bdf8;
  --c-blue: #60a5fa;
  --c-indigo: #818cf8;
  --c-violet: #a78bfa;
  --c-purple: #c084fc;
  --c-fuchsia: #e879f9;
  --c-pink: #f472b6;
  --c-rose: #fb7185;
  --c-orange: #fb923c;
  --c-amber: #fbbf24;
  --c-yellow: #facc15;
  --c-lime: #a3e635;
  --c-green: #4ade80;
  --c-emerald: #34d399;
  --c-teal: #2dd4bf;
  --c-cyan: #22d3ee;
  --c-sky: #38bdf8;
}

.internship-body {
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
}

.internship-container {
  width: 100%;
  min-height: 100vh;
  padding-bottom: 120px;
  position: relative;
  z-index: 1;
}

.internship-bg {
  position: fixed;
  inset: 0;
  height: 100%;
  width: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(56, 189, 248, 0.12),
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(139, 92, 246, 0.12),
      transparent 40%
    ),
    radial-gradient(circle at 50% 50%, #0f172a, #020617);
  z-index: -2;
  pointer-events: none;
}

.internship-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  opacity: 0.5;
}

.internship-bg::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 180px 24px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-heading {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
  word-wrap: break-word;
}

.hero-subtext {
  font-size: 1.35rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 850px;
  margin: 0 auto 3.5rem;
  font-weight: 500;
}

.search-container {
  position: relative;
  z-index: 10;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.search-input {
  width: 100%;
  padding: 24px 60px 24px 65px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: #fff;
  outline: none;
  font-weight: 400;
}

.search-icon {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.2rem;
  pointer-events: none;
}

.search-input-wrapper:focus-within .search-icon {
  color: var(--primary);
}

.search-clear {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  visibility: hidden;
}

.search-clear.visible {
  visibility: visible;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.search-clear:focus-visible,
.search-input:focus-visible,
.filter-button:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.search-input:focus-visible {
  outline-offset: -2px;
}

.filters {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 20px;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    scrollbar-width: none;
  }

  .hero {
    padding: 140px 16px 50px;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-heading {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    padding: 0 8px;
  }

  .hero-subtext {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    padding: 0 12px;
  }

  .search-container {
    max-width: 100%;
    padding: 0 8px;
  }

  .search-input {
    padding: 18px 50px 18px 55px;
    font-size: 1rem;
  }

  .search-icon {
    left: 20px;
    font-size: 1rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

.filter-button {
  padding: 12px 28px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.filter-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.filter-button.active {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border-color: #38bdf8;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

.count {
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  color: inherit;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 600;
}

.filter-button.active .count {
  background: rgba(0, 0, 0, 0.1);
}

.internships-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 5;
}

@media (max-width: 1024px) {
  .internships-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .internships-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
}

.internship-card {
  position: relative;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.internship-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.03),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.internship-card:hover::before {
  opacity: 1;
}

.internship-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(56, 189, 248, 0.1);
}

.card-bar {
  display: none;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  font-size: 1.5rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2px;
}

.internship-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.card-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  flex-grow: 1;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tech-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apply-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  color: #0f172a !important;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.apply-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.3);
}

.apply-button:active {
  transform: scale(0.96);
}

.g-development {
  --accent-color: var(--c-blue);
}

.g-development .card-icon,
.g-development .apply-button {
  background: linear-gradient(135deg, var(--c-blue), var(--c-indigo));
}

.g-data-ai {
  --accent-color: var(--c-emerald);
}

.g-data-ai .card-icon,
.g-data-ai .apply-button {
  background: linear-gradient(135deg, var(--c-emerald), var(--c-teal));
}

.g-data-viz {
  --accent-color: var(--c-orange);
}

.g-data-viz .card-icon,
.g-data-viz .apply-button {
  background: linear-gradient(135deg, var(--c-orange), var(--c-rose));
}

.g-design {
  --accent-color: var(--c-pink);
}

.g-design .card-icon,
.g-design .apply-button {
  background: linear-gradient(135deg, var(--c-pink), var(--c-fuchsia));
}

.g-programming {
  --accent-color: var(--c-violet);
}

.g-programming .card-icon,
.g-programming .apply-button {
  background: linear-gradient(135deg, var(--c-violet), var(--c-purple));
}

.g-office-tools {
  --accent-color: var(--c-cyan);
}

.g-office-tools .card-icon,
.g-office-tools .apply-button {
  background: linear-gradient(135deg, var(--c-cyan), var(--c-sky));
}

.g-excel-sheet {
  --accent-color: var(--c-lime);
}

.g-excel-sheet .card-icon,
.g-excel-sheet .apply-button {
  background: linear-gradient(135deg, var(--c-lime), var(--c-green));
}

.g-college-projects {
  --accent-color: var(--c-indigo);
}

.g-college-projects .card-icon,
.g-college-projects .apply-button {
  background: linear-gradient(135deg, var(--c-indigo), var(--c-violet));
}

.g-digital-marketing {
  --accent-color: var(--c-amber);
}

.g-digital-marketing .card-icon,
.g-digital-marketing .apply-button {
  background: linear-gradient(135deg, var(--c-amber), var(--c-orange));
}

.g-content-writing {
  --accent-color: var(--c-rose);
}

.g-content-writing .card-icon,
.g-content-writing .apply-button {
  background: linear-gradient(135deg, var(--c-rose), var(--c-pink));
}

.g-research-paper {
  --accent-color: var(--c-sky);
}

.g-research-paper .card-icon,
.g-research-paper .apply-button {
  background: linear-gradient(135deg, var(--c-sky), var(--c-blue));
}

.verification-card {
  background: rgba(251, 191, 36, 0.1);
  border: 1px dashed rgba(251, 191, 36, 0.5);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.verification-card:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: #fbbf24;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}

.verification-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  color: #fff;
  box-shadow: 0 8px 16px rgba(251, 191, 36, 0.3);
  font-size: 2rem;
}

.verification-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 16px;
}

.verification-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.verification-cta {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  background: rgba(251, 191, 36, 0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.verification-cta:hover {
  background: rgba(251, 191, 36, 0.2);
  transform: translateY(-2px);
}

.no-results {
  text-align: center;
  padding: 80px;
  grid-column: 1/-1;
  color: var(--text-muted);
  background: rgba(30, 41, 59, 0.4);
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
  display: none;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #0f172a;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.6);
  background: #fff;
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 12px 40px;
    max-width: 100vw;
  }

  .hero-heading {
    font-size: clamp(1.5rem, 10vw, 2rem);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
    padding: 0 4px;
    word-spacing: 0.05em;
  }

  .hero-subtext {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 1.5rem;
    padding: 0 8px;
  }

  .search-input {
    padding: 16px 45px 16px 50px;
    font-size: 0.95rem;
  }

  .search-icon {
    left: 18px;
    font-size: 0.95rem;
  }

  .search-clear {
    width: 26px;
    height: 26px;
    right: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding: 160px 30px 55px;
  }

  .hero-heading {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
  }

  .hero-subtext {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
  }
}
