/* Global */
body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  background-color: white;
  color: #333;
}

/* Header */
.coding-interview-header {
  background-image: linear-gradient(to top, #e3e2e7 0%, #fceaf7 100%);
  text-align: center;
  padding-top: 70px;
}

.ai-feedback-badge {
  display: inline-block;
  font-size: 0.9rem;
  background: #f4f4f6;
  color: #7a7a7a;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgb(226, 224, 224);
  font-weight: 500;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.ai-feedback-badge span {
  font-weight: bold;
  color: #937bca;
}

.coding-interview-header h1 {
  max-width: 1000px;
  font-size: 53px;
  line-height: 1.2;
  margin: auto;
}

.coding-interview-header p {
  font-size: 1.2rem;
  margin: 20px auto;
  max-width: 800px;
  line-height: 1.5;
  color: #333;
}

.coding-interview-highlight {
  background: linear-gradient(to right, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.coding-interview-hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
   margin-bottom:70px;
}

.coding-interview-btn {
  padding: 0.75rem 4rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

}

.coding-interview-btn.start-btn {
  background: linear-gradient(to right, #6366f1, #ec4899);
  color: white;
}

.coding-interview-btn.explore-btn {
  background-color: #ffffff;
  color: #191717;
}

.coding-interview-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .coding-interview-header {
    padding: 50px 16px;
  }

  .coding-interview-header h1 {
    text-align: left;
    font-size: 2rem;
    margin-left: 10px;
  }

  .coding-interview-header p {
    font-size: 1rem;
  }

  .coding-interview-hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 100px;
  }

  .coding-interview-btn {
    width: 100%;
    max-width: 320px;
  }
}

.coding-interview-header {
  position: relative;
  overflow: hidden;
  padding: 70px 0px 0px 0px;

  /* space for the waves */
}


.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100px;
  max-height: 100px;
}

/* Animation stays the same */
.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

/* Mobile adjustments for waves */
@media (max-width: 768px) {
  .coding-interview-header {
    position: relative;
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 0px;
    /* Give space for waves under buttons */
  }

  .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    min-height: 50px;
    z-index: 0;
  }
}

@media (max-width: 768px) {
  .coding-feature-container {
    justify-content: center;
  }

}


/* Technical Interview Resources */

main {
  display: flex;
  max-width: 1400px;
  margin: auto;
}

/* Wrapper sticky sidebar */
.main-side-layout {
  flex: 1;
  position: sticky;
  top: 50px;
  /* distance from top when scrolling */
  align-self: flex-start;
  height: fit-content;
}

/* Main content area */
.main-side-content {
  flex: 3;
}

/* Table of Contents Box */
.table-of-content {
  padding: 20px 0px;
  border-radius: 8px;
  margin-top: 30px;
  font-family: system-ui, sans-serif;
}

.interview-right-side-section {
  margin-bottom: 20px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.interview-right-side-section h4 {
  margin-top: 20px;
  font-size: 16px;
  color: #2662e4;
  border-left: #0076fd 3px solid;
  background: linear-gradient(to right, #6366f1, #ec4699);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-left: 6px;
}

.interview-right-side-section .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.interview-right-side-section .btn-link {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.interview-right-side-section .btn-link:hover {
  background: linear-gradient(to right, #6366f1, #ec4899);
  color: white;

}

/* aside heading */
/* Heading */
.aside-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  position: relative;
  display: inline-block;
}

.aside-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 80%;
  height: 2px;
  background: linear-gradient(to right, #989af7, #fa8d8d);
  border-radius: 2px;
}

/* Quick Links */

.notes-aside-2 {
  margin-bottom: 20px;
  background-color: #ffffff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* List reset */
.notes-aside-2 ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

/* List items */
.notes-aside-2 li {
  background: transparent;
  border-radius: 8px;
  padding: 1px 8px;
  font-weight: 500;
  color: #1877f2;
  transition: background var(--transition), transform var(--transition);
}

/* Link styles */
.notes-aside-2 a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.3;
  padding: 6px 8px;
  border-radius: 6px;
  position: relative;
  /* needed for ::after underline */
  transition: color var(--transition), background var(--transition),
    transform var(--transition);
  outline: none;
}

/* Underline effect */
.notes-aside-2 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #1d43bf;
  /* brand color */
  transition: width 0.3s ease;
}

/* Hover & active */
.notes-aside-2 li:hover,
.notes-aside-2 a:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}

.notes-aside-2 a:hover {
  background: linear-gradient(to right, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.notes-aside-2 a:hover::after {
  width: 40%;
}

/* Focus state */
.notes-aside-2 a:focus {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
  background: rgba(56, 189, 248, 0.03);
}

/* Muted text example — if you want small counts/tags */
.notes-aside-2 .muted {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 8px;
}

.notes-aside-2 ul li a::before {
  margin-right: 8px;
}

/* Scoped icons */
.notes-aside-2 ul li:nth-child(1) a::before {
  content: "📝";
}

.notes-aside-2 ul li:nth-child(2) a::before {
  content: "💡";
}

.notes-aside-2 ul li:nth-child(3) a::before {
  content: "📄";
}

.notes-aside-2 ul li:nth-child(4) a::before {
  content: "🎓";
}

.notes-aside-2 ul li:nth-child(5) a::before {
  content: "💼";
}

.notes-aside-2 ul li:nth-child(6) a::before {
  content: "💻";
}

.notes-aside-2 ul li:nth-child(7) a::before {
  content: "🌍";
}

.notes-aside-2 ul li:nth-child(8) a::before {
  content: "🔥";
}

/* .notes-aside-3 */

.notes-aside-3 {
  margin-bottom: 20px;
  background-color: #ffffff;
  padding: 0px 20px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.notes-aside-3 a {
  text-decoration: none;
}

/* Grid layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
}

/* Card styling */
.project-card {
  background-color: #d6e3e9;
  border-radius: 12px;
  padding: 8px 1px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Icon styling */
.project-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Title */
.project-card h4 {
  font-weight: 500;
  font-size: 1rem;
  color: #1877f2;
  margin: 0;
}

.project-card h4:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}

.project-card h4:hover {
  background: linear-gradient(to right, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-card h4:hover::after {
  width: 40%;
}

/* notes-aside-4 */

.notes-aside-5 {
  margin-bottom: 20px;
  background-color: #ffffff;
  padding: 0px 20px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Ebook grid inside section */
.ebook-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 images per row */
  gap: 10px;
  /* spacing between items */
  margin-top: 12px;
}

.ebook-list a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: #d6e3e9;
}

.ebook-list a:hover {
  transform: translateY(-4px);
}

.ebook-list img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ✅ Hide sidebar on phones */
@media (max-width: 768px) {
  .main-side-layout {
    display: none;
  }

  .main-side-content {
    flex: 1;
    /* Take full width */
  }
}

/* 
.resource-section*/

.resource-section,
.technical-topic-interview {
  padding: 10px 20px;
  color: #000;
  margin: auto;
  border-radius: 12px;
}

.resource-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;

}

.resource-section h3,
.technical-topic-interview h3 {
  font-size: 20px;
  margin: 30px 0 15px;
  background: linear-gradient(to right, #6366f1, #ec4699);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.resource-grid,
.technical-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.resource-card {
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to right, #b1b2f7, #f3b4d4) border-box;
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  width: calc(33.3% - 15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  min-height: 200px;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
  /* Ensure inner content doesn't bleed over rounded corners */
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-card img,
.resource-icon {
  height: 130px;
  width: 130px;
  margin-bottom: 1px;
  object-fit: contain;
}

.resource-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.resource-bottom {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  padding-top: 1px;
  background: #fff;
  border-bottom-left-radius: 10px;
  /* Fix hidden corners */
  border-bottom-right-radius: 10px;
  /* Fix hidden corners */
  z-index: 1;
}

.resource-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, #aaacfa, #f3b1d2);
}

.resource-bottom div {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  position: relative;
}

.resource-bottom div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, #6366f1, #ec4699);
}

.resource-bottom div:last-child {
  border-right: none;
}

.see-more {
  display: inline-block;
  margin-top: 30px;

  font-size: 18px;
  color: #0076fd;
  text-decoration: underline;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.see-more:hover {
  color: rgb(56, 55, 55);
}

@media (max-width: 768px) {
  .resource-card {
    width: calc(50% - 10px);
  }
  .resource-section h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .resource-card {
    width: 100%;
  }
}







@media (max-width: 768px) {
  .desktop-main-ads {
    display: none;
  }
}











