/* Overall Site Styles */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}
main {
  flex: 1;
}
/* YouTube Theme for Header */
.navbar {
  background-color: #212121;
}
.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #ffffff !important;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}
.nav-link {
  color: #ffffff !important;
  transition: color 0.3s ease-in-out;
}
.nav-link:hover {
  color: #ff0000 !important;
}
.nav-link::after {
  display: none;
}
.navbar-toggler {
  border: none;
  background: transparent;
  padding: 8px;
  width: 42px;
  height: 42px;
  position: relative;
}
.navbar-toggler:focus {
  outline: none;
}
.navbar-toggler-icon {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #ff0000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #ff0000;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease-in-out;
}
.navbar-toggler-icon::before {
  top: -7px;
}
.navbar-toggler-icon::after {
  top: 7px;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: #ffffff;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: #ffffff;
}
.btn-primary {
  background-color: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
  transition: background-color 0.3s, transform 0.2s;
}
.btn-primary:hover {
  background-color: #cc0000;
  border-color: #cc0000;
  transform: scale(1.05);
}
.shop-card .btn-primary {
  width: 250px;
  box-sizing: border-box;
  margin: 10px auto;
}
@media (max-width: 576px) {
  .shop-card .btn-primary {
    width: 100%;
    max-width: 250px;
  }
}
.card {
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  margin-bottom: 20px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.card:hover {
  transform: translateY(-5px);
}
.card-img-top {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.shop-card .card-img-top {
  width: 250px;
  height: 250px;
  object-fit: cover;
}
.shop-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.blog-card .card-img-top {
  width: 100%;
  max-width: 1280px;
  height: auto;
  object-fit: contain;
}
.blog-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.blog-card .card-title {
  font-size: 1.1rem;
  margin: 10px 0;
  text-align: center;
  max-width: 100%;
}
.blog-card .card-title a {
  color: #ff0000;
  text-decoration: none;
}
.blog-card .card-title a:hover {
  color: #cc0000;
  text-decoration: underline;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  display: block;
}
.blog-content p {
  max-width: 800px;
  margin: 15px auto;
}
.custom-content {
  border: 2px dashed #ff0000;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  text-align: center;
  color: #666;
}
.ad-placeholder {
  background-color: #eee;
  color: #666;
  text-align: center;
  font-size: 14px;
  max-width: 1280px;
  margin: 20px auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-placeholder ins {
  width: 100%;
  height: auto;
}
@media (min-width: 768px) {
  .ad-placeholder {
    height: 90px;
    max-width: 728px;
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .ad-placeholder {
    height: 250px;
    max-width: 300px;
  }
}
@media (max-width: 575px) {
  .ad-placeholder {
    height: 50px;
    max-width: 320px;
    font-size: 12px;
  }
}
.ad-top {
  margin-bottom: 20px;
}
.ad-bottom {
  margin-top: 20px;
}
.sticky-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f0f0f0;
  color: #666;
  text-align: center;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}
.sticky-bottom-ad .ad-content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticky-bottom-ad .close-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s, font-weight 0.2s;
}
.sticky-bottom-ad .close-btn:hover {
  color: #333;
  font-weight: bold;
}
@media (min-width: 768px) {
  .sticky-bottom-ad {
    height: 90px;
    max-width: 728px;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .sticky-bottom-ad {
    height: 50px;
    max-width: 300px;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 575px) {
  .sticky-bottom-ad {
    height: 50px;
    max-width: 320px;
    font-size: 12px;
    left: 50%;
    transform: translateX(-50%);
  }
}
.modal-ad-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-ad-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.modal-ad-content .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s, font-weight 0.2s;
}
.modal-ad-content .close-btn:hover {
  color: #333;
  font-weight: bold;
}
@media (min-width: 768px) {
  .modal-ad-content {
    width: 100%;
    max-width: 600px;
    height: 400px;
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .modal-ad-content {
    width: 100%;
    max-width: 400px;
    height: 300px;
  }
}
@media (max-width: 575px) {
  .modal-ad-content {
    width: 100%;
    max-width: 300px;
    height: 250px;
  }
}
@media (max-width: 991px) {
  #languageDropdown, .dropdown-menu {
    display: none !important;
  }
  .language-switcher-btn {
    display: inline-block;
    color: #ffffff !important;
    font-size: 1rem;
    margin-left: 1rem;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
  }
  .language-switcher-btn:hover {
    color: #ff0000 !important;
  }
  .language-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
  }
  .language-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  .language-modal-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
  }
  .language-modal-content .language-item {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .language-modal-content .language-item:hover {
    background-color: #f0f0f0;
  }
  .language-modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
  }
  .language-modal-content .close-btn:hover {
    color: #333;
  }
}
.section {
  display: none;
}
.section.active {
  display: block;
}
#thumbnailContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section:not(#home) {
  text-align: center;
}
.section:not(#home) h1,
.section:not(#home) h2,
.section:not(#home) p,
.section:not(#home) form,
.section:not(#home) .row {
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
}
.section:not(#home) .card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section:not(#home) form.w-75 {
  width: 100% !important;
  max-width: 600px;
}
@media (max-width: 576px) {
  .card {
    width: 100%;
  }
  .input-group {
    width: 100% !important;
  }
}
.search-bar {
  width: 50%;
  margin: 0 auto;
  margin-bottom: 1.5rem;
}
.search-bar input {
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.search-bar input:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
  outline: none;
}
@media (orientation: portrait) {
  .search-bar {
    width: 90%;
  }
}
.tool-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  cursor: pointer;
  padding: 10px 15px;
}
.tool-card:hover,
.tool-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  outline: 2px solid #007bff;
  outline-offset: 2px;
}
.tool-card .icon {
  background: #007bff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  font-size: 1.8rem;
  margin-right: 15px;
  flex-shrink: 0;
}
.tool-card .title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .tool-card {
    padding: 12px;
  }
  .tool-card .icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  .tool-card .title {
    font-size: 0.95rem;
  }
}
.filter-buttons {
  display: flex;
  overflow-x: auto;
  padding: 10px 0;
  margin-bottom: 20px;
  gap: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.filter-buttons::-webkit-scrollbar {
  display: none;
}
.filter-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  color: #333;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.filter-btn:hover {
  background: #e9ecef;
  border-color: #ccc;
  color: #333;
}
.filter-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}
@media (max-width: 768px) {
  .filter-buttons {
    justify-content: flex-start;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 14px;
    text-align: center;
  }
}
@media (max-width: 576px) {
  .filter-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}