* {
  margin: 0;
  padding: 0;
  font-family: "DM Sans", sans-serif;
}

.navbar {
  width: 100%;
  background: #ffffff;
  border-radius: 0 0 40px 40px;
}

.nav-container {
  max-width: 100%;
  margin: 0 40px;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.nav-logo svg {
  width: 80px;
  height: 80px;
}

.nav-logo span {
  font-size: 35px;
  letter-spacing: 0.5px;
  font-weight: 400;
  color: #111;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.nav-menu a {
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  background: rgba(241, 241, 241, 1);
  color: #222;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  letter-spacing: 0.8px;
  font-weight: 400;
  transition: 0.3s;
  white-space: nowrap;
}

.nav-menu a:hover {
  background: rgba(4, 1, 114, 1);
  color: rgba(255, 255, 255, 1);
}

.nav-menu a.active {
  background: rgba(4, 1, 114, 1);
  color: rgba(255, 255, 255, 1);
}

.youtube-btn img {
  display: block;
  width: 60px;
  height: 36px;
  background: none !important;
}

.desktop-youtube {
  display: inline-flex;
  align-items: center;
}

.mobile-youtube {
  display: none;
}

.subscribe-btn {
  text-decoration: none;
  background: #e60000;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 500;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.desktop-subscribe {
  display: inline-block;
  flex: 0 0 auto;
}

.mobile-subscribe {
  display: none;
}

.subscribe-btn:hover {
  background: #cc0000;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #111;
  border-radius: 2px;
}

/* Large screens */
@media (min-width: 1440px) {
  .nav-logo span {
    font-size: 38px;
  }
}

/* Large Laptop */
@media (max-width: 1366px) {
  .nav-container {
    margin: 0 24px;
    padding: 12px 20px;
  }

  .nav-menu {
    gap: 12px;
  }

  .nav-menu a {
    padding: 6px 12px;
    font-size: 13px;
  }

  .subscribe-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Laptop */
@media (max-width: 1200px) {
  .nav-container {
    padding: 14px 20px;
    margin: 0 20px;
  }

  .nav-menu a {
    font-size: 13px;
    padding: 6px 12px;
  }

  .nav-logo svg {
    width: 70px;
    height: 70px;
  }

  .nav-logo span {
    font-size: 30px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .nav-container {
    padding: 12px 16px;
    margin: 0 16px;
  }

  .nav-logo svg {
    width: 60px;
    height: 60px;
  }

  .nav-logo span {
    font-size: 26px;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-menu a {
    font-size: 12px;
    padding: 6px 10px;
  }

  .subscribe-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* Small Tablet */
@media (max-width: 900px) {
  .nav-container {
    padding: 10px 14px;
    margin: 0 12px;
  }

  .nav-logo svg {
    width: 55px;
    height: 55px;
  }

  .nav-logo span {
    font-size: 24px;
  }

  .nav-menu {
    gap: 8px;
  }

  .nav-menu a {
    font-size: 11px;
    padding: 5px 8px;
  }

  .subscribe-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Mobile - iPad/Large Mobile */
@media (max-width: 768px) {
  .nav-container {
    padding: 12px 16px;
    margin: 0;
    border-radius: 0 0 24px 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-logo {
    order: 1;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .nav-menu {
    order: 2;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding: 16px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    justify-content: flex-start;
    flex: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    font-size: 13px;
    padding: 8px 14px;
    width: fit-content;
  }

  .desktop-subscribe {
    display: none;
  }

  .mobile-subscribe {
    display: inline-block;
    order: 4;
    margin-top: 8px;
  }

  .nav-logo svg {
    width: 55px;
    height: 55px;
  }

  .nav-logo span {
    font-size: 24px;
  }

  .subscribe-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* Small Mobile */
@media (max-width: 600px) {
  .nav-container {
    padding: 10px 12px;
    gap: 10px;
  }

  .nav-logo svg {
    width: 50px;
    height: 50px;
  }

  .nav-logo span {
    font-size: 20px;
  }

  .nav-menu {
    padding: 12px;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-menu a {
    font-size: 12px;
    padding: 6px 10px;
  }

  .subscribe-btn {
    padding: 8px 16px;
    font-size: 11px;
  }

  .menu-toggle span {
    width: 24px;
    height: 2.5px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .nav-container {
    padding: 10px 10px;
    margin: 0;
  }

  .nav-logo {
    gap: 6px;
  }

  .nav-logo svg {
    width: 45px;
    height: 45px;
  }

  .nav-logo span {
    font-size: 18px;
  }

  .nav-menu {
    padding: 12px;
    gap: 8px;
  }

  .nav-menu a {
    font-size: 11px;
    padding: 5px 8px;
  }

  .subscribe-btn {
    padding: 7px 14px;
    font-size: 10px;
  }

  .menu-toggle span {
    width: 22px;
  }
}

/* Very Small Devices */
@media (max-width: 360px) {
  .nav-container {
    padding: 8px 8px;
  }

  .nav-logo span {
    font-size: 16px;
  }

  .nav-logo svg {
    width: 40px;
    height: 40px;
  }

  .nav-menu a {
    font-size: 10px;
    padding: 4px 6px;
  }

  .subscribe-btn {
    padding: 6px 10px;
    font-size: 9px;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
  }
}

/* Subscribe Overlay */
.subscribe-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.subscribe-modal {
  background: #fff;
  width: 90%;
  max-width: 750px;
  padding: 60px 70px;
  border-radius: 28px;
  position: relative;
  text-align: center;
  box-sizing: border-box;
}

.close-modal {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: #e60000;
}

.subscribe-modal h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 18px;
}

.subscribe-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  max-width: 520px;
  margin: 0 auto 35px;
}

/* Form */
.subscribe-modal form {
  text-align: left;
  max-width: 400px;
  margin: auto;
}

.subscribe-modal label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.subscribe-modal input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 5px;
  background-color: rgba(244, 244, 247, 1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  font-size: 14px;
  box-sizing: border-box;
}

.subscribe-modal input:focus {
  outline: none;
  border-color: #e60000;
}

.subscribe-submit {
  width: 50%;
  display: block;
  margin: 0 auto;
  margin-top: 10px;
  padding: 14px;
  background: rgba(210, 0, 7, 1);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.subscribe-submit:hover {
  background: #cc0000;
}

/* Modal Responsive */
@media (max-width: 768px) {
  .subscribe-modal {
    padding: 40px 30px;
  }

  .subscribe-modal h2 {
    font-size: 24px;
  }

  .subscribe-desc {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .subscribe-modal {
    padding: 35px 25px;
    width: 95%;
  }

  .subscribe-modal h2 {
    font-size: 20px;
  }

  .subscribe-modal form {
    max-width: 100%;
  }

  .subscribe-submit {
    width: 100%;
  }
}













/* Added styles for subscription modals and validation */

.error-message {
  display: block;
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  min-height: 16px;
}

.subscribe-modal input:invalid {
  border-color: #e74c3c;
}

.subscribe-modal input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.success-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.success-modal {
  background: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  .from {
    transform: translateY(-50px);
    opacity: 0;
  }

  .nav-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.active {
    display: flex;
  }

  .desktop-youtube {
    display: none;
  }

  .mobile-youtube {
    display: inline-flex;
  }

  .mobile-youtube-wrapper {
    display: flex;
    justify-content: center;
    margin: 2px 0;
  }

  /* Kill menu pill styles */
  .nav-menu a.youtube-btn {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  /* Image-only YouTube button */
  .mobile-youtube img {
    width: 65px;
    height: 35px;
    display: block;
  }

  .nav-menu .subscribe-btn {
    background: #e60000;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
    width: fit-content;
    align-self: center;
    margin-top: 3px;
  }

  .desktop-subscribe {
    display: none;
  }

  .mobile-subscribe {
    display: inline-block;
    margin-top: 16px;
    align-self: flex-start;
  }

  .menu-toggle {
    display: flex;
  }
}


/* Small Mobile */
@media (max-width: 480px) {
    .nav-logo svg {
        width: 50px;
        height: 50px;
    }

    .nav-logo span {
        font-size: 22px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .youtube-btn {
      padding: 10px 20px;
    }

}

/* Enhanced subscribe modal styles */
.subscribe-modal {
  max-width: 450px;
}

.subscribe-modal label {
  display: block;
  margin-top: 15px;
  color: #262f5d;
  font-weight: 600;
  margin-bottom: 8px;
}

.subscribe-modal input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s;
}

.subscribe-modal input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.subscribe-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Language Selector Styles */
.lang-selector {
  position: relative;
  display: inline-block;
  margin-right: 15px;
}

.lang-btn {
  background: #f1f1f1;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

.lang-btn img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.chevron {
  font-size: 10px;
  color: #666;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 8px 0;
  display: none;
  z-index: 1000;
  margin-top: 5px;
  border: 1px solid #eee;
}

/* Creates a bridge for the hover state */
.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.lang-selector:hover .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.2s;
}

.lang-dropdown a:hover {
  background: #f5f5f5;
}

.lang-dropdown a.active {
  background: #f0f7ff;
  color: #0066ff;
  font-weight: 600;
}

.lang-dropdown img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .lang-selector {
    margin: 10px 0;
    width: 100%;
    order: 4;
  }

  .lang-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .lang-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: #f9f9f9;
    margin-top: 0;
  }
}
