/* this css for override main css */

.custom-h1 {
  font-size: 35px;
  color: white;
  line-height: 48px;
}

/* .custom-h2 {
    font-size: 40px !important;
    
} */

@media (min-width: 1200px) {
  .custom-h2 {
    font-size: 50px;
  }
}

.menu-logo img {
  /* height: 40px;
    width: 100px; */

  /* padding: 20px; */
}

.logo-white {
  filter: brightness(0) invert(1);
}

.blog-content > * {
  margin-bottom: 1.5rem !important;
}

/* services dropdown */
/* ===============================
   DESKTOP DROPDOWN (Only ≥ 992px)
================================= */
@media (min-width: 992px) {
  .main-menu ul li {
    position: relative;
  }

  .main-menu ul li ul {
    display: none; /* hidden by default */
    position: absolute;
    top: 100%;
    left: 0;

    grid-template-columns: repeat(2, 1fr);
    width: 640px;
    gap: 5px 20px;
    padding: 15px;

    background: #fff;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  /* Show dropdown on hover */
  .main-menu ul li:hover > ul {
    display: grid;
  }

  /* Remove bullets */
  .main-menu ul li ul li {
    list-style: none;
    margin: 0;
  }

  .main-menu ul li ul li:nth-child(-n + 2) {
    border-top: none !important;
  }
}

/* ===============================
   MOBILE (Disable dropdown fully)
================================= */
@media (max-width: 991px) {
  .main-menu ul li ul {
    display: none !important; /* completely hide */
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 0;
  }
}

.img-blog-sm {
  height: 50px;
  width: 70px;
}

/* Share popup css */
.share-modal {
  border-radius: 18px;
  padding: 10px 20px;
}

.social-item {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-size: 22px;
  transition: 0.3s ease;
}

.circle:hover {
  transform: scale(1.1);
}

/* Brand Colors */
.twitter {
  background: #e8f0fe;
  color: #1da1f2;
}
.facebook {
  background: #eceff5;
  color: #3b5998;
}
.reddit {
  background: #fdecea;
  color: #ff4500;
}
.discord {
  background: #ececff;
  color: #5865f2;
}
.whatsapp {
  background: #e6f9f0;
  color: #25d366;
}
.messenger {
  background: #e8f0fe;
  color: #0084ff;
}
.telegram {
  background: #e6f0ff;
  color: #229ed9;
}
.wechat {
  background: #eaf8e1;
  color: #7bb32e;
}
.linkedin {
  background: #e8f4fd;
  color: #0a66c2;
}

/* home page blog card css */

.latest-news .new-post-card .post-img img {
  height: 300px !important;
}

/* ===============================
   ADMIN PANEL STYLES
================================= */

/* Admin Layout & Sidebar Overlay */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  background: #0f172a;
}

/* Desktop Offset */
@media (min-width: 768px) {
  .main-content-offset {
    margin-left: 260px;
  }
}

/* Mobile Sidebar Behavior */
@media (max-width: 767.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.show {
    transform: translateX(0) !important;
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.3);
  }
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Modern Card Styling Global */
.admin-wrapper .card {
  border: none !important;
  border-radius: 1rem !important;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
  transition: transform 0.2s ease;
}
.admin-wrapper .card:hover {
  transform: translateY(-2px);
}

/* Premium Buttons System */
.btn-premium {
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none !important;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-premium:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.25);
}

.btn-premium:active {
  transform: translateY(-1px);
}

.btn-premium:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-premium-secondary {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  background: #ffffff;
  color: #64748b !important;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none !important;
  cursor: pointer;
}

.btn-premium-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b !important;
  transform: translateY(-1px);
}

.btn-premium-action {
  width: 38px;
  height: 38px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0;
}

.btn-premium-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-premium-action.view:hover {
  color: #0ea5e9;
  border-color: #0ea5e9;
  background: #f0f9ff;
}
.btn-premium-action.edit:hover {
  color: #3b82f6;
  border-color: #3b82f6;
  background: #eff6ff;
}
.btn-premium-action.delete:hover {
  color: #f43f5e;
  border-color: #f43f5e;
  background: #fff1f2;
}

/* Utility Classes */
.transition-all {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.counter {
  letter-spacing: -0.5px;
}
.focus-primary:focus {
  border-color: #3b82f6 !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}
.cursor-pointer {
  cursor: pointer;
}

/* Typography Responsive */
@media (min-width: 768px) {
  .h1-md {
    font-size: 2.5rem !important;
  }
  .h2-md {
    font-size: 2rem !important;
  }
}

/* Form & Editor Components */
.editor-wrapper {
  min-height: 400px;
}
.upload-box {
  transition: all 0.2s ease;
}
.upload-box:hover {
  border-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.02) !important;
}

/* Admin Sidebar Specific */
.admin-sidebar .bg-dark {
  background-color: #0f172a !important;
}
.admin-sidebar .text-light-emphasis {
  color: #94a3b8 !important;
}
.admin-sidebar .hover-link:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}
.admin-sidebar .nav-link.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
}

/* Logout Button */
.logout-btn {
  color: #f43f5e !important;
  border: 1px solid rgba(244, 63, 94, 0.1) !important;
  background: rgba(244, 63, 94, 0.02) !important;
  transition: all 0.2s ease !important;
}
.logout-btn:hover {
  background: rgba(244, 63, 94, 0.1) !important;
  color: #fb7185 !important;
  border-color: rgba(244, 63, 94, 0.2) !important;
}

/* ===============================
   PREMIUM LOGIN PORTAL
================================= */

/* Global lock when login is active */
.portal-lock,
.portal-lock body {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  height: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
  overscroll-behavior: none !important;
}

.login-container {
  min-height: 100dvh;
  height: 100dvh;
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  background-color: #020617;
  overflow: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  margin: 0;
  padding: 0;
}

.mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(at 0% 0%, hsla(220, 100%, 12%, 1) 0, transparent 60%),
    radial-gradient(at 50% 0%, hsla(210, 100%, 20%, 1) 0, transparent 60%),
    radial-gradient(at 100% 0%, hsla(220, 100%, 12%, 1) 0, transparent 60%),
    radial-gradient(at 0% 100%, hsla(220, 100%, 8%, 1) 0, transparent 60%),
    radial-gradient(at 100% 100%, hsla(210, 100%, 10%, 1) 0, transparent 60%);
  z-index: 0;
}

.mesh-gradient::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noiseFilter'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3e%3c/svg%3e");
  opacity: 0.04;
  pointer-events: none;
}

.login-card-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 56px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-container {
  display: inline-flex;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.login-logo {
  height: 36px;
  filter: brightness(0) invert(1);
}

.login-card h1 {
  color: #f8fafc;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
  border: none;
}

.subtitle {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.input-group-custom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group-custom label {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  margin-left: 4px;
  display: block;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(2, 6, 23, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 18px;
  transition: all 0.3s;
}

.input-wrapper:focus-within {
  border-color: #3b82f6;
  background: rgba(2, 6, 23, 0.8);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.input-wrapper.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-icon {
  color: #64748b;
  margin-right: 14px;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  padding: 16px 0;
  outline: none;
  box-shadow: none !important;
}

.input-wrapper input::placeholder {
  color: #475569;
}

.toggle-password {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #cbd5e1;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
  letter-spacing: 0.01em;
}

.login-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
  filter: brightness(1.1);
}

.login-submit:active:not(:disabled) {
  transform: translateY(0);
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.login-footer {
  margin-top: 48px;
  text-align: center;
}

.login-footer p {
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.back-link {
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}

.back-link:hover {
  color: #3b82f6;
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 20px;
    border-radius: 24px;
  }
  .login-card h1 {
    font-size: 26px;
    margin-bottom: 6px;
  }
  .subtitle {
    font-size: 14px;
  }
  .logo-container {
    margin-bottom: 16px;
    padding: 10px;
  }
  .login-header {
    margin-bottom: 24px;
  }
  .login-form {
    gap: 18px;
  }
  .login-footer {
    margin-top: 32px;
  }
  .login-card-wrapper {
    max-height: 100dvh;
    height: auto;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}
