/* Global */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: white;
  color: #333;
}

/* Header Section */
.free-coding-notes-header {
    background: linear-gradient(to bottom, #edd2f8, #bdd3ff);
  text-align: center;
  padding: 70px 20px 170px 20px;
  color: #333;
}

.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;
}

.free-coding-notes-header h1 {
  font-size: 50px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.2;
}

.free-coding-notes-header p {
  font-size: 1.2rem;
  margin: 20px auto 0;
  max-width: 900px;
  line-height: 1.5;
  color: inherit;
  text-align: center;
}

.free-coding-notes-header .highlight {
  background: linear-gradient(to right, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-btn {
  padding: 0.75rem 3.5rem;
  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);
}

.header-btn.internship {
  background: linear-gradient(to right, #6366f1, #ec4899);
  color: white;
}

.header-btn.jobs {
  background: #fff;
  color: #191717;
}

body.dark-mode .header-btn.jobs {
  background: #2a2a2a;
  color: #fff;
}

.header-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .free-coding-notes-header {
    padding: 50px 16px;
    text-align: left;
    height: auto;
  }

  .free-coding-notes-header h1 {
    font-size: 2rem;
    margin-left: 10px;
  }

  .free-coding-notes-header p {
    font-size: 1rem;
    align-items: center;
  }

  .header-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .header-btn {
    width: 100%;
    max-width: 320px;
  }
}

.free-coding-notes-header {
  position: relative; /* Needed for absolute positioning of waves */
  overflow: hidden;   /* Hide extra parts of 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) {
  .free-coding-notes-header {
    position: relative;
    overflow: hidden;
    padding-bottom: 80px; /* Give space for waves under buttons */
  }

  .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    min-height: 50px;
    z-index: 0; 
  }

  .header-buttons {
    position: relative;
    z-index: 1; 
  }
}


/* Free Coding Digital Notes */

.notes-layout {
  display: flex;
  gap: 2rem;
  padding: 40px 20px;
  max-width: 1500px;
  margin: auto;
  flex-wrap: wrap;
}

.notes-main {
  flex: 3;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

}

/* Style for the grid container */

/* Section styling */
.notes-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Title styling */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2f3844;
}

/* Grid layout */
.notes-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Card styling */
.free-coding-ebook-notes-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.free-coding-ebook-notes-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.free-coding-ebook-notes-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.free-coding-ebook-notes-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem;
  color: #3f7cdf;
}

/* Download Button */
.download-btn {
  display: inline-block;
  background: linear-gradient(to right, #6366f1, #ec4899);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .section-title {
    font-size: 1.5rem;
  }

  .download-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }


  .notes-main {
    background-color: #ffffff;
    box-shadow: none;
  }

  .notes-layout {
    flex-direction: column;
    /* stack items vertically */
    align-items: center;
    /* center child (notes-main) horizontally */
    justify-content: center;
    /* optional, centers vertically if needed */
  }

  .notes-main {
    width: 100%;
    max-width: 500px;
    /* keeps it nicely centered, not too wide */
  }

  .notes-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    justify-content: center;
    /* keep cards centered */
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .download-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }

 
  .notes-main {
    background-color: #ffffff;
    box-shadow: none;
  }

  .notes-layout {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .notes-main {
    width: 100%;
    max-width: 400px;
  }

  .notes-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    justify-content: center;
     margin-right: 20px;
  }
  /* Section styling */
.notes-section {
  padding: 2rem 0rem;
  width: 100%;
 

}
}




.notes-aside {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 360px;

}

/* 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;
}



.notes-aside a {
  text-decoration: none;
}

.notes-aside-1 {

  background-color: #f10f0f;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}




/* Admin Section */
.admin-section {
  padding: 1rem 0rem;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 12px;

}

.admin-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.admin-name {
  font-size: 18px;
  font-weight: 670;
  color: #333;
  margin-top: -10px;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;

}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;

}


.admin-section .github {
  background: #242527;
}

.admin-section .twitter {
  background: #1da1f2;
}

.admin-section .instagram {
  background: #e4405f;
}

.admin-section .youtube {
  background: #f02248;
}

.admin-section .linkedin {
  background: #0077b5;
}

.admin-section .telegram {
  background: #0088cc;
}

.social-links a:hover {
  opacity: 0.85;
  transform: scale(1.1);
}



/* Quick Links */

.notes-aside-2 {
  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 {
  background-color: #ffffff;
  padding: 0px 20px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 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-4 {
  background-color: #ffffff;
  padding: 0px 20px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


/* Grid */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.insta-card {
  border-radius: 1px;
  overflow: hidden;
}

.insta-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  transition: transform 0.3s ease;
}

.insta-card img:hover {
  transform: scale(1.05);
}

/* Follow button */
.insta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 20px;
  background: linear-gradient(to right, #6366f1, #ec4899);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  /* needed for underline */
  overflow: hidden;
  transition: background 0.3s ease;
}

.insta-btn i {
  margin-right: 6px;
  font-size: 1rem;
}

/* Underline effect */
.insta-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  /* adjust underline position */
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #fff;
  /* underline color */
  transition: width 0.3s ease;
}

.insta-btn:hover::after {
  width: 60%;
  /* underline length */
}



/* notes-aside-4 */

.notes-aside-5 {
  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);
}




/* 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;
}



/* aside-section-7  */
.notes-aside-7 {
  background-color: #fff;
  padding: 0 20px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.desk-deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.desk-deals-card {
  text-decoration: none;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desk-deals-card:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.desk-deals-card img {
  max-width: 100%;
  border-radius: 8px;
}

.desk-deals-card p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1877f2;
}

/* Responsive */
@media (max-width: 768px) {
  .notes-layout {
    flex-direction: column;
  }

  .notes-main,
  .notes-aside {
    width: 100%;
  }
}





/* Default hide mobile ad */
.mobile-ad { display: none; }
.desktop-ad { display: block; }

/* When screen is below 1024px → show phone ad */
@media (max-width: 1024px) {
  .desktop-ad { display: none; }
  .mobile-ad { display: block; }
}

/* Center ads safely */
.responsive-ad {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}