/* ============================================================
   QUOTEDENCODER — Global Stylesheet
   Shared across all pages via <link rel="stylesheet" href="/assets/css/global.css">
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}
.mt-30 {
    margin-top: 30px !important;
}
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f4fb;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
  padding-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #2563eb;
}

/* ── HEADER ── */
.custom-header {
  background: linear-gradient(90deg, rgba(37, 80, 175, 0.92), rgba(0, 168, 168, 0.92));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(37, 99, 210, 0.22);
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.4px;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon {
  font-size: 1.5rem;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(255,255,255,0.6); }
  50% { text-shadow: 0 0 18px rgba(255,255,100,0.9), 0 0 30px rgba(255,200,0,0.5); }
}

.logo-accent { color: #a5f3eb; }
.site-logo a:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links > li > a {
  color: rgba(255, 255, 255, 0.93);
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.nav-links > li > a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.dropdown-arrow {
  font-size: 0.7rem;
  opacity: 0.8;
  transition: transform 0.2s;
}

.dropdown:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow { transform: rotate(180deg); }

.dropdown { position: relative; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* No physical gap for hover */
  left: 0;
  padding-top: 10px; /* The visual gap is now 'solid' for hover */
  z-index: 1000;
  min-width: 260px;
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: 75vh;
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  list-style: none;
  padding: 0.6rem 0;
  animation: dropIn 0.2s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #2d3748 !important;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.89rem;
  transition: background 0.15s, padding-left 0.15s, color 0.15s;
}

.dropdown-menu li a .icon {
  font-size: 1rem;
  width: 1.2rem;
  text-align: center;
}

.dropdown-menu li a:hover {
  background: linear-gradient(90deg, #eef4ff, #f0fff8);
  padding-left: 1.4rem;
  color: #2563eb !important;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content { display: block; }

.dropdown-menu::-webkit-scrollbar { width: 4px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: #c5cdf7; border-radius: 4px; }


.theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 0.38rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  height: 3px;
  width: 26px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
  display: block;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── FOOTER ── */
.site-footer {
  background: linear-gradient(135deg, #0f1f40, #0a2233);
  color: #c8d8f0;
  padding: 0;
  font-size: 0.88rem;
  position: relative;
}

.footer-wave { color: #f0f4fb; line-height: 0; margin-bottom: -1px; }
.footer-wave svg { display: block; width: 100%; height: 40px; }

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 2.5rem;
  padding: 2.8rem 2rem 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
}

.footer-brand p { margin: 0 0 0.5rem; opacity: 0.78; line-height: 1.65; font-size: 0.87rem; }
.footer-tagline { font-size: 0.8rem !important; opacity: 0.55 !important; }

.footer-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #a5f3eb;
  letter-spacing: 0.02em;
}

.footer-tools h4,
.footer-right h4 {
  color: #fff;
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.55rem;
}

.footer-tools h4::after,
.footer-right h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, #4a90e2, #50e3c2);
  border-radius: 2px;
}

.footer-tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.42rem; }
.footer-tools ul li a { color: #93bbf0; text-decoration: none; transition: color 0.2s, padding-left 0.2s; font-size: 0.84rem; display: block; padding: 0.1rem 0; }
.footer-tools ul li a:hover { color: #a5f3eb; padding-left: 5px; }

.footer-links { display: flex; flex-direction: column; gap: 0.48rem; margin-bottom: 1.3rem; }
.footer-links a { color: #93bbf0; text-decoration: none; font-size: 0.84rem; transition: color 0.2s, padding-left 0.2s; padding: 0.1rem 0; }
.footer-links a:hover { color: #a5f3eb; padding-left: 4px; }

.contact-btn {
  display: inline-block;
  background: linear-gradient(135deg, #4a90e2, #50e3c2);
  color: #fff !important;
  padding: 0.55rem 1.3rem;
  font-weight: 700;
  border-radius: 22px;
  text-decoration: none;
  font-size: 0.84rem;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(80, 227, 194, 0.25);
}

.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(80,227,194,0.4); opacity: 0.9; }
.footer-note { margin: 0.8rem 0 0; font-size: 0.78rem; opacity: 0.5; font-style: italic; }

.footer-visitor-bar { text-align: center; padding: 1rem 1rem 0.6rem; border-top: 1px solid rgba(255,255,255,0.07); }

.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
}

.visitor-icon { font-size: 0.9rem; animation: pulse-soft 2.5s ease-in-out infinite; }

@keyframes pulse-soft {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.visitor-label { color: #93bbf0; font-weight: 500; }

.visitor-count {
  color: #a5f3eb;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  min-width: 2.5rem;
  text-align: center;
}

.footer-bottom { text-align: center; padding: 1.1rem 1rem; font-size: 0.78rem; opacity: 0.55; }
.footer-bottom a { color: #93bbf0; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; opacity: 1; }

/* ── COOKIE CONSENT ── */
#cookieConsentBanner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: #212529;
  color: #f8f9fa;
  padding: 15px;
  z-index: 9999;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#cookieConsentBanner .cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

#cookieConsentBanner .cookie-text { flex-grow: 1; text-align: left; }
#cookieConsentBanner .cookie-text a { color: #0d6efd; text-decoration: underline; }
#cookieConsentBanner .cookie-btns { white-space: nowrap; }

.cookie-accept-btn {
  background-color: #0d6efd;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
}

.cookie-decline-btn {
  background-color: transparent;
  color: #f8f9fa;
  border: 1px solid #6c757d;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

/* ── DARK MODE ── */
body.dark-mode { background: #0f172a !important; color: #e2e8f0 !important; }

body.dark-mode .custom-header {
  background: linear-gradient(90deg, rgba(15,23,50,0.96), rgba(10,35,35,0.96)) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

body.dark-mode .nav-links > li > a { color: #e2e8f0 !important; }

body.dark-mode .dropdown-menu {
  background: rgba(22,33,58,0.98) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06) !important;
}

body.dark-mode .dropdown-menu li a { color: #c5d3e8 !important; }
body.dark-mode .dropdown-menu li a:hover { background: rgba(59,130,246,0.15) !important; color: #93c5fd !important; }
body.dark-mode .site-footer { background: linear-gradient(135deg, #070d1c, #050f14) !important; }
body.dark-mode .footer-wave { color: #0f172a; }

/* ── MOBILE RESPONSIVE HEADER ── */
@media (max-width: 930px) {
  .nav-toggle { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(30,70,180,0.98), rgba(0,120,120,0.98));
    backdrop-filter: blur(16px);
    width: 100%;
    position: absolute;
    top: 62px; left: 0;
    transition: max-height 0.38s ease, padding 0.3s;
    padding: 0;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }

  .nav-links.open { max-height: 800px; padding: 0.5rem 0; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { padding: 0.75rem 1.5rem; border-radius: 0; }

  .dropdown-content {
    position: static;
    display: none;
    padding-top: 0;
    min-width: 100%;
  }

  .dropdown-menu {
    box-shadow: none;
    background: rgba(255,255,255,0.1) !important;
    backdrop-filter: none;
    border-radius: 0;
    border: none;
    max-height: none;
    overflow: visible;
    animation: none;
  }

  .dropdown-menu li a { color: rgba(255,255,255,0.88) !important; padding-left: 2.5rem; }
  .dropdown-menu li a:hover { background: rgba(255,255,255,0.15) !important; padding-left: 2.8rem; color: #fff !important; }

  body.dark-mode .dropdown-menu { background: rgba(0,0,0,0.2) !important; }
}

@media (max-width: 760px) {
  .footer-container { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
}

/* ── CONTENT PAGE STYLES ── */
.page-hero {
  background: linear-gradient(135deg, #1a4fcb, #0891b2);
  color: #fff;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 60%);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
  position: relative;
}

.page-hero p {
  opacity: 0.88;
  font-size: 1rem;
  line-height: 1.65;
  position: relative;
  max-width: 550px;
  margin: 0 auto;
}

/* Content Cards */
.content-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,99,210,0.07);
}

.content-card h2 {
  color: #1e40af;
  font-size: 1.3rem;
  margin: 0 0 1rem;
  padding-left: 0.9rem;
  border-left: 4px solid #4a90e2;
  line-height: 1.4;
}

.content-card p, .content-card li {
  line-height: 1.8;
  color: #475569;
  font-size: 0.96rem;
}

.content-card ul, .content-card ol {
  padding-left: 1.5rem;
  margin: 0.8rem 0;
}

.content-card li { margin-bottom: 0.4rem; }

body.dark-mode .content-card {
  background: #1e2a45;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark-mode .content-card h2 { color: #93c5fd; border-color: #2563eb; }
body.dark-mode .content-card p, body.dark-mode .content-card li { color: #94a3b8; }

/* ── UTILITY CLASSES ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.2rem; }
.container-lg { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
