  @media (max-width: 768px) {
    .desktop-main-ads {
      display: none;
    }
  }


  .companies-wise-coding-interview-preparation {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
  }

  /* Sidebar */
  .companies-wise-coding-interview-preparation .sidebar {
    width: 350px;
    flex-shrink: 0;
    border-radius: 8px;
    padding: 5px;
    text-decoration: none;
  }

  /* Section wrapper */
  .sidebar .company-choose {
    margin-bottom: 30px;
    padding: 20px 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  /* Company list */
  .sidebar .company-choose ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .sidebar .company-choose ul li {
    margin-bottom: 10px;
  }

  .sidebar .company-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 .company-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 */
  .company-choose-mobile,
  .mobile-top-section {
    display: none;
  }

  /* PHONE + TABLET (max 768px) */
  @media (max-width: 768px) {

    /* Hide sidebar */
    .companies-wise-coding-interview-preparation .sidebar {
      display: none;
    }

    /* Show Ads + Company 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;
    }

    /* Company chooser */
    .company-choose-mobile {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 0 0 20px 0;
    }

    .company-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;
    }

    .company-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) {
    .company-choose-mobile button {
      flex: 1 1 calc(25% - 10px);
      /* 4 per row */
    }
  }








  /* TABLET & DESKTOP (769px and up) */
  @media (min-width: 769px) {
    .companies-wise-coding-interview-preparation .sidebar {
      display: block;
    }

    .company-choose-mobile {
      display: none;
      /* Hide top chooser */
    }
  }



  /* Main content */
  .companies-wise-coding-interview-preparation .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) {
    .companies-wise-coding-interview-preparation {
      flex-direction: column;
      /* stack items */
      padding: 10px;
    }

    .companies-wise-coding-interview-preparation .sidebar {
      width: 100%;
      /* full width */
      margin-bottom: 20px;
      /* space between sidebar and content */
    }

    .companies-wise-coding-interview-preparation .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;
  }

  .interview-tips {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;

  }

  .interview-tips h3 {
    color: #27ae60;
    margin-bottom: 15px;
  }

  .interview-tips ul {
    list-style: disc inside;
    margin-left: 10px;
  }

  .interview-tips li {
    margin-bottom: 10px;
  }

  .questions {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .questions h3 {
    color: #2980b9;
    margin-bottom: 20px;
  }

  .questions ol {
    padding-left: 20px;
  }

  .questions li {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
  }

  .questions li h4 {
    color: #34495e;
    margin-bottom: 5px;
  }

  .questions li p {
    margin: 5px 0;
  }

  .questions code {
    background: #f1f1f1;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e74c3c;
  }






































/* 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 .companies-wise-coding-interview-preparation .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 .company-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 .company-choose ul li a:hover{
  color: white;
 }

/* Buttons */
body.dark-mode .btn-link,
body.dark-mode .company-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 .company-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);
}
