html {
  scroll-behavior: smooth;
}

/* Responsive Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.7rem 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 47, 62, 0.07);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #232f3e;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  /* transition: background 0.2s, color 0.2s; */
}

.nav-links li a:hover {
  background: #d2e5ee;
  color: #5113ed;
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0.7rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .logo-container {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.3rem;
  }

  .logo-container img {
    width: 38px;
    height: 38px;
  }

  .channel-name {
    font-size: 1.1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.3rem;
  }

  .nav-links li a {
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
  }
}

/* Floating Social Icons */
.floating-social-icons {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.floating-social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #4caf50;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

.floating-social-icons a:hover {
  background: #45a049;
}

/* Document-style Notes Cards */
.notes-docs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
}

.note-doc {
  flex: 1 1 200px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 1.5rem 1.2rem 3rem 1.2rem;
  min-height: 140px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-doc:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(35, 47, 62, 0.15) !important; /* Force override inline styles if present */
  background: #fff !important; /* Force white bg on hover to override potential gray inline */
}

/* Home YouTube Button */
.home-youtube-btn {
  display: inline-block;
  background: #1976d2;
  color: #fff;
  padding: 0.6rem 1.3rem; 
  border-radius: 8px; 
  font-size: 1.08rem; 
  font-weight: 600; 
  text-decoration: none; 
  box-shadow: 0 2px 8px rgba(35,47,62,0.10);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.home-youtube-btn:hover {
  transform: translateY(-3px);
  background-color: #1565c0 !important;
  box-shadow: 0 6px 12px rgba(35, 47, 62, 0.2) !important;
}

.note-doc h3 {
  margin: 0 0 0.7rem 0;
  font-size: 1.3rem;
  color: #232f3e;
  font-weight: 700;
}

.note-desc {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.doc-download {
  position: absolute;
  bottom: 18px;
  right: 18px;
  margin: 0;
}

.note-doc.locked {
  background: #f3f3f3;
  border: 2px dashed #ff9800;
  opacity: 0.8;
}

.note-doc.locked .download-btn.doc-download {
  background: #1976d2 !important;
  color: #fff !important;
  cursor: pointer !important;
  border: none;
  box-shadow: 0 2px 8px rgba(35, 47, 62, 0.12);
  font-weight: 600;
  border-radius: 7px;
  padding: 0.32rem 0.6rem;
  font-size: 0.88rem;
  position: absolute;
  bottom: 18px;
  right: 18px;
  transition: background 0.2s;
}

.note-doc.locked .download-btn.doc-download:hover {
  background: #0093c4 !important;
}

/* Notes Section Styles */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.note-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fafc;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

.download-btn {
  background: #232f3e;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  font-weight: 500;
}

.download-btn:hover:enabled {
  background: #ff9800;
}

.download-btn.doc-download {
  background: #1976d2 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(35, 47, 62, 0.12);
  font-weight: 600;
  border-radius: 7px;
  padding: 0.32rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  border: none;
  transition: background 0.2s;
}

.download-btn.doc-download:hover:not([disabled]) {
  background: #1976d2 !important;
  /* fallback to main blue if needed */
  background: #1976d2 !important;
  background: #1976d2 !important;
  background: #1976d2 !important;
  background: #1976d2 !important;
  background: #0093c4 !important;
  /* dark sky blue */
  color: #fff !important;
}

/* style.css for The Devops Rite - Responsive YouTube Channel Website */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6fa;
  color: #222;
}

header {
  background: #232f3e;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  position: relative;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px 0;
  background: #1976d2;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-links {
  transition: max-height 0.3s, opacity 0.3s;
}

.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 2px 12px rgba(35, 47, 62, 0.10);
  padding: 1rem 0.5rem;
  z-index: 1001;
  gap: 1rem;
  opacity: 1;
  max-height: 400px;
}

.nav-links {
  opacity: 1;
  max-height: 400px;
}

@media (max-width: 700px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 16px;
    right: 18px;
    margin: 0;
    z-index: 1101;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 2px 12px rgba(35, 47, 62, 0.10);
    padding: 1rem 0.5rem;
    z-index: 1001;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    max-height: 400px;
    display: flex !important;
  }
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 48px;
  width: 48px;
  margin-right: 12px;
  border-radius: 8px;
  object-fit: cover;
  background: none;
  display: block;
  box-shadow: none;
  padding: 0;
}

.channel-name {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #232f3e;
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  box-shadow: none;
}

.nav-links li a:hover {
  background: #d2e5ee;
  color: #5113ed;
}

@media (max-width: 600px) {
  .nav-links li a {
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    background: transparent;
    color: #232f3e;
  }
}

main {
  max-width: 1100px;
  margin: 5.5rem auto 2rem auto;
  padding: 0 1rem;
}

.section {
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 0.7rem 0.6rem;
}

.video-grid {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.2rem;
}

.video-grid::-webkit-scrollbar {
  height: 10px;
}
.video-grid::-webkit-scrollbar-track {
  background: transparent;
}
.video-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 20px;
}
.video-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.32);
}

.video-card { scroll-snap-align: start; flex: 0 0 300px; }

.video-card {
  background: #f9fafc;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(35, 47, 62, 0.07);
}

.video-card:hover {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.18);
  transform: translateY(-4px) scale(1.03);
}

.video-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Tools & Solutions: Tool showcase element */
.tool-dev-showcase {
  background: #f7f7fa;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(35, 47, 62, 0.07);
  padding: 0.9rem;
  margin-top: 5px;
}

/* Tools & Solutions: New Grid Layout */
.tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Specific Vertical Scroll for Premium Notes List */
#premium-notes .tools-list {
  display: block; /* Revert to block for vertical scrolling list */
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  background: #fdfdfd;
}

#premium-notes .tools-list .tool-item {
  width: auto; /* Reset width inside premium notes list */
  flex-direction: row; /* Keep row layout for list items */
  align-items: center;
  margin-bottom: 1rem;
}

#premium-notes .tools-list .tool-item-icon {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
  margin-bottom: 0;
}

#premium-notes .tools-list .tool-item-info {
  margin: 0;
  text-align: left;
}

#premium-notes .tools-list .tool-item-action {
  margin-top: 0;
  width: auto;
}

#premium-notes .tools-list .tool-action-btn {
  width: auto;
}

/* Custom Scrollbar for Premium Notes List */
#premium-notes .tools-list::-webkit-scrollbar {
  width: 8px;
}
#premium-notes .tools-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
#premium-notes .tools-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}
#premium-notes .tools-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centered items */
  text-align: center; /* Centered text */
  justify-content: space-between;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(35, 47, 62, 0.08);
  padding: 2rem;
  width: 300px; /* Smaller width */
  min-height: 300px; /* Constrained height */
  max-width: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  box-sizing: border-box;
}

.tool-item:hover {
  box-shadow: 0 12px 30px rgba(35, 47, 62, 0.15);
  transform: translateY(-5px);
}

.tool-item-icon {
  width: 72px;
  height: 72px;
  border-radius: 214x;
  display: flex;
  align-items: center;
  justify-content: center;
  
  margin-bottom: 1.2rem;
  background: #f8fbff;
  border: 1px solid #eef3f8;
}

.tool-icon-svg {
  width: 40px;
  height: 40px;
  color: #1976d2;
}

.tool-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px; /* Breathing room inside the icon box */
}

/* Specific handling for non-square/transparent logos */
.tool-icon-img[src*=".ico"] {
    object-fit: contain;
    padding: 10px;
}

.tool-item-info {
  width: 100%;
  margin-bottom: 1.5rem;
}

.tool-item-title {
  margin: 0 0 0.6rem 0;
  font-size: 1.35rem; /* Larger title */
  font-weight: 700;
  color: #232f3e;
}

.tool-item-desc {
  margin: 0;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.5;
  display: -webkit-box;
  /* -webkit-line-clamp: 2;  */
  -webkit-box-orient: vertical;
  /* overflow: hidden; */
  height: 3.1em; /* Fixed height for 2 lines approx */
}

.tool-item-action {
  width: 100%;
  margin-top: auto;
}

.tool-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85%;
  background: #1976d2; /* Primary blue */
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.1s;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(25, 118, 210, 0.2);
  border: none;
}


.tool-action-btn:hover {
  background: #1565c0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(25, 118, 210, 0.25);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .tool-item {
    width: 100%;
    padding: 1.5rem;
  }
  
  .tool-item-icon {
    width: 60px;
    height: 60px;
  }
}

.tool-dev-main {
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
}

.tool-dev-image {
  flex: 0 0 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(35, 47, 62, 0.06);
}

.tool-dev-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.tool-dev-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tool-dev-title {
  margin: 0 0 0.35rem 0;
  color: #1976d2;
  font-size: 1.12rem;
}

.tool-dev-desc {
  margin: 0 0 0.45rem 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-dev-points {
  margin: 0;
  padding-left: 1.1rem;
  color: #444;
  font-size: 0.94rem;
  line-height: 1.35;
}

.tool-dev-actions {
  margin-top: 0.7rem;
  display: flex;
  justify-content: flex-start;
}

.tool-dev-download {
  background: #1976d2;
  font-weight: 700;
}

.tool-dev-download:hover {
  background: #ff9800;
}

@media (max-width: 820px) {
  .tool-dev-main {
    flex-direction: column;
  }

  .tool-dev-image {
    flex-basis: auto;
  }

  .tool-dev-image img {
    height: 160px;
  }

  .tool-dev-actions {
    justify-content: stretch;
  }

  .tool-dev-download {
    width: 100%;
    text-align: center;
  }
}

form#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 30px;
}
iframe{
  border-radius: 10px;
}

form input,
form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
}

form button {
  background: #5ba0f4;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

form button:hover {
  background: #1c50fc;

}

#formMessage {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

footer {
  background: #232f3e;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 1rem;
  letter-spacing: 1px;
  border-radius: 0 0 12px 12px;
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }

  main {
    padding: 0 0.5rem;
    margin-top: 6.5rem;
  }

  .section {
    padding: 1rem;
  }
}

/* Contact section flex and logo */

.contact-flex {
  display: flex;
  gap: 2.2rem;
  align-items: stretch;
  justify-content: center;
  margin-top: 1.2rem;
}

.contact-flex form,
.contact-details-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(35, 47, 62, 0.07);
  padding: 1.2rem 1.5rem;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-flex form {
  border-right: 1px solid #eaeaea;
}

.contact-details-box {
  border-left: 1px solid #eaeaea;
}

@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }

  .contact-flex form,
  .contact-details-box {
    /* max-width: 100%; */
    width: 80%;
    position: relative;
    left: -45px;
    min-width: 0;
    border-radius: 12px;
    border: none;
  }
}

/* Floating Social Icons */
.floating-social-icons {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1000;
}

.floating-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #90caf9;
  color: #fff;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(144, 202, 249, 0.18);
  transition: box-shadow 0.2s, transform 0.2s;
}

.floating-social-icons a:nth-child(1) {
  background: #1976d2;
  /* Email: blue */
}

.floating-social-icons a:nth-child(2) {
  background: #0a66c2;
  /* LinkedIn: LinkedIn blue */
}

.floating-social-icons a:nth-child(3) {
  background: #e1306c;
  /* Instagram: Instagram pink */
}

.floating-social-icons a:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transform: scale(1.10);
}

.floating-promotion {
  position: fixed;
  left: 20px;
  bottom: 40px;
  width: 270px;
  min-height: 60px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px 10px 10px;
  box-shadow: 0 4px 18px rgba(44, 62, 80, 0.10);
  z-index: 1000;
  color: #222;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  border: 1px solid #e6e8ec;
  display: flex;
  align-items: center;
}


.floating-promotion .logo {
  width: 38px;
  height: 46px;
  background: #f5f6fa;
  border-radius: 8px;
  margin: 0 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #2b6cb0;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #e6e8ec;
}

.floating-promotion .promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.floating-promotion h3 {
  margin: 0 0 2px 0;
  font-size: 14px;
  text-align: left;
  font-weight: 600;
  color: #2b6cb0;
  letter-spacing: 0.01em;
}

.floating-promotion .description {
  font-size: 11px;
  line-height: 1.3;
  margin-bottom: 4px;
  text-align: left;
  color: #444;
  opacity: 0.95;
}

/* Close button for floating promotion */
.floating-promotion .close-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  background: #f5f6fa;
  border: none;
  color: #888;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
  border: 1px solid #e6e8ec;
}

.floating-promotion .close-btn:hover {
  background: #e6e8ec;
}

@media (max-width: 600px) {
  .floating-promotion{
    width: 40px;
  }
  .promo-content{
    display: none;
   }
  .promo-content a{
    display: none;
  } 
  .description{
    display: none;
  } 
}