@media (max-width: 768px) {
  .desktop-main-ads {
    display: none;
  }
}

.web-developemnt-interview {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  padding: 20px;
}

/* Sidebar */
.web-developemnt-interview .sidebar {
  width: 350px;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 5px;
  text-decoration: none;
}

/* Section wrapper */
.sidebar .technology-choose {
  margin-bottom: 30px;
  padding: 20px 30px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Technology list */
.sidebar .technology-choose ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .technology-choose ul li {
  margin-bottom: 10px;
}

.sidebar .technology-choose ul li a {
  display: block;
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #1877f2;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar .technology-choose ul li a:hover {
  background: linear-gradient(to right, #6366f1, #ec4899);
  color: white;
  transform: translateY(-2px);
}

/* other interviews sections aside */
.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;
  }

  /* Heading */
  .aside-heading h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    /* gives space for line */
  }

  .aside-heading h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    /* half the text width */
    height: 2px;
    background: linear-gradient(to right, #989af7, #fa8d8d);
    border-radius: 2px;
  }


  /* Quick Links */

  .notes-aside-2 {
    margin-bottom: 20px;
    background-color: #ffffff;
    padding: 10px 10px;
    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: 10px 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: 10px 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 */
    }
  }



  /* section 6 Blog list aside */
  .notes-aside-6 {
    background-color: #ffffff;
    padding: 0px 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .blog-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .blog-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: #000;
    transition: transform 0.2s ease;
  }

  .blog-item:hover {
    transform: translateY(-2px);
  }

  .blog-item img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  }

  .blog-info {
    display: flex;
    flex-direction: column;
  }

  .blog-date {
    font-size: 0.8rem;
    color: #1877f2;
  }

  .blog-info p {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    color: #363333;
    margin: 0;
  }



/* Hide sidebar on small screens */
/* Hide by default */
.technology-choose-mobile,
.mobile-top-section {
  display: none;
}

/* PHONE + TABLET (max 768px) */
@media (max-width: 768px) {
  /* Hide sidebar */
  .web-developemnt-interview .sidebar {
    display: none;
  }

  /* Show Ads + Technology Section */
  .mobile-top-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  /* Heading */
  .mobile-top-heading {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    background: linear-gradient(to right, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Ads style */
  .mobile-top-section .mobile-ads {
    padding: 10px;
    text-align: center;
  }

  /* Technology chooser */
  .technology-choose-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px 0;
  }

  .technology-choose-mobile button {
    flex: 1 1 calc(33.333% - 10px); /* 3 per row */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    color: #1877f2;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  .technology-choose-mobile button:hover {
    background: linear-gradient(to right, #6366f1, #ec4899);
    color: white;
    transform: translateY(-2px);
  }
}

/* Slightly bigger phones → 4 per row */
@media (min-width: 551px) and (max-width: 768px) {
  .technology-choose-mobile button {
    flex: 1 1 calc(25% - 10px); /* 4 per row */
  }
}

/* TABLET & DESKTOP (769px and up) */
@media (min-width: 769px) {
  .web-developemnt-interview .sidebar {
    display: block;
  }
  .technology-choose-mobile {
    display: none; /* Hide top chooser */
  }
}

/* Main content */
.web-developemnt-interview .main-content {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Responsive: Stack sidebar and main content on small screens */
@media (max-width: 768px) {
  .web-developemnt-interview {
    flex-direction: column; /* stack items */
    padding: 10px;
  }
  .web-developemnt-interview .sidebar {
    width: 100%; /* full width */
    margin-bottom: 20px; /* space between sidebar and content */
  }
  .web-developemnt-interview .main-content {
    width: 100%; /* full width */
  }
}


.main-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}




/* Tips section */
.interview-tips {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.6);
}

.interview-tips h3 {
  margin-top: 0;
  color: #158bfa;
}

.interview-tips ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.interview-tips li {
  margin-bottom: 4px;
}

/* Questions section wrapper */
.questions {
  max-width: 900px;
  margin: 0 auto 40px;
}

.questions h3 {
  color: #38bdf8;
  margin-bottom: 12px;
}

/* Ordered list styling */
.questions ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: q-counter;
}

/* Each question card */
.questions li {
  counter-increment: q-counter;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  position: relative;
  overflow: hidden;
}

/* Number badge on the left */
.questions li::before {
  content: "#" counter(q-counter);
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Question text */
.questions strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
  color: #5d68fd;
}

/* Answer text paragraphs */
.questions p {
  margin: 4px 0;
  line-height: 1.5;
}

/* Code block styling */
.questions pre {
  margin-top: 8px;
  padding: 10px 12px;
  background: #020617;
  color: #e5e7eb;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-family: "Fira Code", Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre;
}

/* Subtle syntax-like coloring inside code (optional, simple) */
.questions pre::selection {
  background: #22c55e;
  color: #020617;
}

/* Links inside examples (if any real ones appear later) */
.questions a {
  color: #38bdf8;
  text-decoration: none;
}

.questions a:hover {
  text-decoration: underline;
}

/* Small screen tweaks */
@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .interview-tips,
  .questions {
    padding: 0;
  }

  .questions li {
    padding: 14px 14px;
  }
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #0d1b2a; /* Dark Blue background instead of black */
  color: #d0d7e3; /* Soft off-white text for readability */
  transition: background 0.3s, color 0.3s;
}

/* Main Content */
body.dark-mode .web-developemnt-interview .main-content {
  background-color: #142433; /* Darker blue card background */
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Sidebar & Sections */
body.dark-mode .notes-aside-2,
body.dark-mode .notes-aside-3,
body.dark-mode .notes-aside-5,
body.dark-mode .notes-aside-6,
body.dark-mode .interview-right-side-section,
body.dark-mode .questions,
body.dark-mode .sidebar .technology-choose,
body.dark-mode .interview-tips {
  background-color: #142433; /* Dark bluish-gray */
}

/* Links */
body.dark-mode a {
  color: #4286c5; /* Soft blue link color */
}

body.dark-mode .sidebar .technology-choose ul li a:hover {
  color: white;
}

/* Buttons */
body.dark-mode .btn-link,
body.dark-mode .technology-choose-mobile button,
body.dark-mode .project-card {
  background-color: #1b2a3b; /* Dark blue button background */
  border: 1px solid #3a4a5a;
  color: #d0d7e3;
}

body.dark-mode .btn-link:hover,
body.dark-mode .technology-choose-mobile button:hover,
body.dark-mode .project-card:hover {
  background: linear-gradient(to right, #5a82f7, #f254a0);
  color: white;
}

/* Headings */
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
  color: #e0e7ff; /* Soft bluish-white headings */
}

/* Code blocks */
body.dark-mode code {
  background: #1b2a3b; /* Darker background for code */
  color: #ff8c76; /* Soft red/orange for code highlights */
}




/* Blog items */
body.dark-mode .blog-item {
  background-color: #142433;
}

body.dark-mode .blog-item p,
body.dark-mode .blog-date {
  color: #c0d0e0;
}

/* Ebook list */
body.dark-mode .ebook-list a {
  background-color: #1b2a3b;
}

/* Floating Button Style */
#darkModeBtn {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: #5a82f7; /* Dark blue button */
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  z-index: 9999;
  transition: background 0.3s, transform 0.2s;
}

#darkModeBtn:hover {
  background-color: #f254a0; /* Pink gradient hover */
  transform: translateY(-50%) scale(1.1);
}