/* ════════════════════════════════════════════════════════════════════
   ServiceNow Buddy — Unified Stylesheet
   Combines main_css.css + premium_learning.css
   STRICT RULES:
   - Original neutral dark theme (#202020 body, #222 cards)
   - Original font families (Arial body, questionFont/answerFont content)
   - Original font sizes preserved
   - Light, tasteful innovations only (no heavy visual additions)
   ════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --snib-bg:         #202020;
  --snib-card:       #222;
  --snib-card-2:     #252525;
  --snib-card-3:     #1e1e1e;
  --snib-chip:       #2a2a2a;
  --snib-deep:       #1f1f1f;
  --snib-black:      #111;
  --snib-line:       #333;
  --snib-line-soft:  #444;

  /* Purple — used sparingly */
  --snib-purple:        #673AB7;
  --snib-purple-deep:   #512DA8;
  --snib-purple-glow:   #7E57C2;
  --snib-violet:        #9575CD;
  --snib-violet-soft:   #B39DDB;

  /* Gold — primary highlight */
  --snib-gold:          #FFE082;
  --snib-gold-warm:     #FFD54F;
  --snib-gold-deep:     #FFB300;
  --snib-amber:         #F6D365;

  /* Accents */
  --snib-cyan:    #80DEEA;
  --snib-teal:    #4DB6AC;
  --snib-rose:    #F48FB1;
  --snib-coral:   #FFAB91;
  --snib-pink:    #F8BBD0;
  --snib-sky:     #81D4FA;
  --snib-mint:    #A5D6A7;
  --snib-blue:    #8ab4f8;

  /* Semantic */
  --snib-success:  #66BB6A;
  --snib-danger:   #EF5350;
  --snib-warning:  #FFB300;
  --snib-info:     #42A5F5;

  /* Text */
  --snib-text:         #ddd;
  --snib-text-dim:     #ccc;
  --snib-text-muted:   #bbb;
  --snib-text-faint:   #999;

  /* Effects */
  --snib-shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.3);
  --snib-shadow-md:  0 6px 20px rgba(0, 0, 0, 0.5);

  /* Radius */
  --snib-radius-sm: 5px;
  --snib-radius-md: 10px;
  --snib-radius-lg: 12px;

  /* Typography — ORIGINAL */
  --snib-font-body:    Arial, Helvetica, sans-serif;
  --snib-font-mono:    'Courier New', Courier, monospace;
}

/* ─────────────────────────────────────────────────────────────
   2. CUSTOM FONTS — original .ttf files
───────────────────────────────────────────────────────────── */
@font-face { font-family: headerFont;        src: url(fonts/cormorantsc_bold.ttf); font-display: swap; }
@font-face { font-family: questionFont;      src: url(fonts/hanumanregular.ttf); font-display: swap; }
@font-face { font-family: answerFont;        src: url(fonts/lustriaregular.ttf); font-display: swap; }
@font-face { font-family: userAnswerFont;    src: url(fonts/ScopeOne-Regular.ttf); font-display: swap; }
@font-face { font-family: WebsiteHeaderFont; src: url(fonts/FrederickatheGreat-Regular.ttf); font-display: swap; }
@font-face { font-family: WebsiteName;       src: url(fonts/Rubik80sFade-Regular.ttf); font-display: swap; }
@font-face { font-family: slogan;            src: url(fonts/DancingScript-VariableFont_wght.ttf); font-display: swap; }

/* ─────────────────────────────────────────────────────────────
   3. BASE — original body
───────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--snib-bg);
  color: var(--snib-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

::selection {
  background: rgba(255, 224, 130, 0.3);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   4. SCROLLBAR
───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 20px;
  border: transparent;
}
::-webkit-scrollbar-thumb:hover { background-color: #888; }

/* ─────────────────────────────────────────────────────────────
   5. TYPOGRAPHY
───────────────────────────────────────────────────────────── */
h1, h2, h3 { color: var(--snib-gold); }
p { color: var(--snib-text); }

a { color: var(--snib-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--snib-violet-soft); }

code, pre { font-family: var(--snib-font-mono); }

code:not(pre code) {
  background: rgba(255, 224, 130, 0.08);
  color: var(--snib-gold);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 224, 130, 0.15);
  font-size: 0.88em;
}

pre {
  background: var(--snib-black) !important;
  border: 1px solid var(--snib-line);
  border-radius: var(--snib-radius-md);
  padding: 14px 16px !important;
  overflow-x: auto;
  box-shadow: var(--snib-shadow-sm);
  line-height: normal;
}

.language-javascript { line-height: normal; }

/* ─────────────────────────────────────────────────────────────
   6. CONTAINER
───────────────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 40px 0;
}

ul { padding-left: 20px; }
ul li { margin-bottom: 8px; list-style-type: disc; clear: left; display: list-item; }

/* ─────────────────────────────────────────────────────────────
   7. WEBSITE NAME / SLOGAN (legacy)
───────────────────────────────────────────────────────────── */
#websiteName {
  font-family: headerFont;
  font-weight: bolder;
  font-size: 55px;
  color: var(--snib-amber);
  opacity: 0.9;
  text-align: center;
  margin-left: 0;
}

#slogan {
  text-align: center;
  font-family: slogan;
  font-size: 25px;
  color: white;
  opacity: 0.6;
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────
   8. HERO + PAGE HEADER
───────────────────────────────────────────────────────────── */
#heroSection {
  padding-top: 50px;
  background: linear-gradient(170deg, #000, #111, #222, #111, #222, #111, #222);
  width: 100%;
  height: fit-content;
  padding-bottom: 10px;
  border-radius: 0;
}

.hero {
  text-align: center;
  padding: 60px 20px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #a87ffb, #FFE082, #FFAA99, #a87ffb);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 8s ease-in-out infinite, fadeInDown 1s ease-out;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

#pageHeader {
  font-family: 'Exo 2', sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--snib-gold);
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 1rem;
  opacity: 0.85;
  animation: card-animation 0.5s linear;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 40px;
  margin-bottom: 10px;
  font-weight: 700;
  background: linear-gradient(90deg, #ffca28, #ab47bc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--snib-text-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* Small gold underline accent — light touch */
.page-header::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--snib-gold), transparent);
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────
   9. PROGRESS BAR — animated shimmer (kept, you liked this)
───────────────────────────────────────────────────────────── */
.progress-wrapper {
  margin-top: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.progress-bar {
  height: 12px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, #42a5f5, #7e57c2, #26a69a);
  background-size: 200% 100%;
  position: relative;
  animation: progressShimmer 4s ease-in-out infinite;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes progressShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ─────────────────────────────────────────────────────────────
   10. SECTION NAV — original neutral chips
───────────────────────────────────────────────────────────── */
.section-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 35px 0;
  justify-content: center;
}

.section-nav a {
  display: inline-block;
  padding: 8px 16px;
  margin-right: 8px;
  border-radius: 8px;
  background: var(--snib-chip);
  color: var(--snib-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: 'Courier New', Courier, monospace;
  border-color: #26a69a;
}

.section-nav a:hover {
  background: #333;
  color: var(--snib-gold);
}

/* ─────────────────────────────────────────────────────────────
   11. SECTION TITLES
───────────────────────────────────────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  color: var(--snib-gold);
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

.section-title::before {
  content: '';
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--snib-gold), var(--snib-gold-deep));
}

section {
  border-bottom: 1px solid var(--snib-line-soft);
  padding-bottom: 20px;
}

/* ─────────────────────────────────────────────────────────────
   12. CARDS — ORIGINAL #222 solid
───────────────────────────────────────────────────────────── */
.w3-card {
  color: white;
  background-color: var(--snib-card);
  margin-bottom: 8px;
  margin-left: 0;
  padding-top: 5px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
  word-wrap: break-word;
  border-radius: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.3s ease;

  animation-name: card-animation;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
  animation-timing-function: ease-out;
}

@keyframes card-animation {
  0%   { transform: scale(0); }
  50%  { transform: scale(0.7); }
  100% { transform: scale(1); }
}

.w3-card:hover {
  box-shadow: 0 5px 6px rgba(150, 123, 182, 0.2);
}

/* — Generic .card — */
.card {
  background: #222;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 25px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 5px 14px rgba(150, 123, 182, 0.2);
}

.w3-card-top-pages {
  background-color: var(--snib-card);
  width: 500px;
  padding-bottom: 30px;
}

/* ─────────────────────────────────────────────────────────────
   13. Q&A TILES — ORIGINAL gradient #252525→#1e1e1e
───────────────────────────────────────────────────────────── */
.qa-tile {
  background: linear-gradient(145deg, var(--snib-card-2), var(--snib-card-3));
  padding: 26px;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}

/* Light innovation: gold accent line on hover */
.qa-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--snib-gold), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qa-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.qa-tile:hover::before { opacity: 1; }

.qa-question {
  font-size: 18px;
  font-weight: bold;
  color: var(--snib-gold);
  margin-bottom: 10px;
}

.qa-answer {
  color: var(--snib-text-dim);
  font-size: 15px;
}

/* ─────────────────────────────────────────────────────────────
   14. QUESTION / ANSWER — ORIGINAL custom fonts
───────────────────────────────────────────────────────────── */
#question, .question {
  color: var(--snib-violet-soft);
  font-size: 1.1rem;
  font-family: questionFont;
  font-weight: normal;
}

#answer, .answer {
  color: white;
  font-size: 1rem;
  font-family: answerFont;
  font-weight: normal;
  opacity: 0.8;
}

#answer { line-height: 1.6; font-size: 14.5px; }

/* ─────────────────────────────────────────────────────────────
   15. TAGS
───────────────────────────────────────────────────────────── */
.tag-section {
  padding-bottom: 10px;
  margin-top: 20px;
}

.tag-container { margin-top: 14px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  background: var(--snib-chip);
  color: var(--snib-text);
  border: 1px solid transparent;
  font-weight: 500;
  opacity: 0.88;
  margin: 4px 6px 0 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tag:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

.tag-must, .tag-mustknow {
  border-color: #f9a825;
  color: #f9a825;
}

.tag-must::before, .tag-mustknow::before {
  background: #f9a825;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 168, 37, 0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(249, 168, 37, 0); }
}

.tag-frequent, .tag-frequentlyasked {
  border-color: #42a5f5;
  color: #42a5f5;
}
.tag-frequent::before, .tag-frequentlyasked::before { background: #42a5f5; }

.tag-tricky { border-color: #ab47bc; color: #ab47bc; }
.tag-tricky::before { background: #ab47bc; }

.tag-nicetoknow { border-color: #5e35b1; color: #5e35b1; }
.tag-nicetoknow::before { background: #5e35b1; }

.tag-commonmistake { border-color: lightsalmon; color: lightsalmon; }
.tag-commonmistake::before { background: lightsalmon; }

.tag-examinerfav { border-color: lightpink; color: lightblue; }
.tag-examinerfav::before { background: lightpink; }

.tag-realworld { border-color: var(--snib-mint); color: var(--snib-mint); }
.tag-realworld::before { background: var(--snib-mint); }

.tag-easy { border-color: var(--snib-gold); color: var(--snib-gold); }
.tag-easy::before { background: #66bb6a; }

.tag-medium { border-color: #26a69a; color: #26a69a; }
.tag-medium::before { background: #26a69a; }

.tag-hard { border-color: #ef5350; color: #ef5350; }
.tag-hard::before { background: #ef5350; }

.tag-advanced { border-color: #ab47bc; color: #ab47bc; }
.tag-advanced::before { background: #ab47bc; }

/* ─────────────────────────────────────────────────────────────
   16. INSIGHT BOX
───────────────────────────────────────────────────────────── */
.insight-box {
  background: linear-gradient(135deg, #283593, #1a237e);
  padding: 22px;
  border-radius: 10px;
  margin: 30px 0;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Light innovation: ghost emoji corner accent */
.insight-box::before {
  content: '💡';
  position: absolute;
  top: -8px;
  right: 18px;
  font-size: 56px;
  opacity: 0.08;
  transform: rotate(15deg);
  pointer-events: none;
}

.insight-box h3 { margin-top: 0; color: var(--snib-gold); }

/* ─────────────────────────────────────────────────────────────
   17. SCENARIO BOX
───────────────────────────────────────────────────────────── */
.scenario-box {
  background: var(--snib-deep);
  border-left: 4px solid #42a5f5;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  position: relative;
}

/* Light innovation: floating tag label */
.scenario-box::before {
  content: '🎯 SCENARIO';
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--snib-bg);
  color: #42a5f5;
  font-size: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(66, 165, 245, 0.3);
}

/* ─────────────────────────────────────────────────────────────
   18. TIP BOX
───────────────────────────────────────────────────────────── */
.tip-box {
  border-left: 4px solid var(--snib-teal);
  padding: 10px 14px;
  margin-top: 12px;
  border-radius: 6px;
  color: #E3F2FD;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  gap: 6px;
  transition: 0.2s ease;
}

.tip-box::before {
  content: 'Tip:';
  color: var(--snib-teal);
  white-space: nowrap;
  font-weight: 600;
}

.tip-box:hover {
  background: rgba(129, 212, 250, 0.12);
}

.tip-label { color: var(--snib-teal); font-weight: 600; }

/* ─────────────────────────────────────────────────────────────
   19. HIGHLIGHT + SUBTOPIC
───────────────────────────────────────────────────────────── */
.highlight {
  color: var(--snib-gold);
  padding: 2px 6px;
  border-radius: 4px;
}

.subtopic {
  color: var(--snib-sky);
  font-size: 15.5px;
  font-weight: 550;
  display: block;
  letter-spacing: 0.3px;
}

/* ─────────────────────────────────────────────────────────────
   20. BLOG STYLES
───────────────────────────────────────────────────────────── */
.blogContentHeaders {
  color: var(--snib-amber);
  font-size: 2rem;
  font-family: questionFont;
  font-weight: normal;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.blogContentSubHeaders {
  font-size: 18px;
  font-weight: normal;
}

.blogsubheaders {
  color: #C8D1FF;
  font-size: 1.5rem;
}

.blog-intro {
  border-left: 4px solid var(--snib-rose);
  padding: 1rem 1.25rem;
  margin: 2rem auto;
  max-width: 768px;
  background-color: transparent;
  color: var(--snib-text-dim);
  font-size: 1.2rem;
  line-height: 1.75;
  border-image: linear-gradient(to bottom, var(--snib-rose), var(--snib-violet)) 1;
}

.blogImageBorder {
  background: #000;
  padding: 8px;
}

/* ─────────────────────────────────────────────────────────────
   21. TABLE OF CONTENTS
───────────────────────────────────────────────────────────── */
.toc {
  background-color: #2B2533;
  border-radius: 12px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-top: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transform: translateY(-20px);
  animation: bounceIn 0.6s ease-out forwards;
  position: relative;
  overflow: hidden;
}

/* Light innovation: thin gold ribbon at top */
.toc::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--snib-gold), var(--snib-purple-glow), var(--snib-gold));
  opacity: 0.55;
}

.tocTextColor {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

@keyframes bounceIn {
  0%   { opacity: 0; transform: translateY(-20px); }
  50%  { opacity: 1; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

#blogTOClink {
  color: var(--snib-cyan);
  margin-right: 10px;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

#blogTOClink::before {
  content: '•';
  color: var(--snib-cyan);
  margin-right: 10px;
  font-size: 1.2em;
}

#blogTOClink:hover {
  text-decoration-line: underline;
  color: var(--snib-violet);
  padding-left: 2px;
}

/* ─────────────────────────────────────────────────────────────
   22. LINKS
───────────────────────────────────────────────────────────── */
#link, .link { color: var(--snib-blue); }
#navigation_link { text-decoration: underline var(--snib-blue); }

/* ─────────────────────────────────────────────────────────────
   23. PRICING
───────────────────────────────────────────────────────────── */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.price-card {
  background: #222;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  border-color: #444;
}

.price-card h3 { margin-bottom: 10px; }

.price {
  font-size: 32px;
  color: var(--snib-gold);
  margin: 15px 0;
}

.price small { font-size: 16px; color: #aaa; }

.price-features {
  text-align: left;
  margin-top: 15px;
  list-style: none;
  padding-left: 0;
}

.price-features li {
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
  list-style: none;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--snib-success);
  font-weight: 700;
}

.recommended {
  border: 2px solid var(--snib-gold);
  transform: scale(1.03);
}

.badge {
  background: var(--snib-gold);
  color: #000;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
}

.module-title {
  margin-top: 40px;
  border-left: 4px solid var(--snib-gold);
  padding-left: 12px;
}

/* ─────────────────────────────────────────────────────────────
   24. BUTTONS
───────────────────────────────────────────────────────────── */
.btn {
  margin-top: 20px;
  background: var(--snib-gold);
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Light innovation: shine sweep on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover { background: var(--snib-gold-warm); }
.btn:hover::before { transform: translateX(100%); }

.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 45px;
  flex-wrap: wrap;
}

.practice-btn {
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  color: white;
  padding: 12px 26px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: opacity 0.2s, transform 0.2s;
}

.complete-btn {
  background: linear-gradient(135deg, #66bb6a, #43a047);
  color: white;
  padding: 12px 26px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: opacity 0.2s, transform 0.2s;
}

.practice-btn:hover, .complete-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.adButton {
  background-color: var(--snib-purple);
  font-size: 16px;
  color: #FFF;
  width: 200px;
  height: 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.adButton:hover { background-color: var(--snib-purple-deep); }

/* ─────────────────────────────────────────────────────────────
   25. TABLES
───────────────────────────────────────────────────────────── */
.table_content {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--snib-card);
  border: 1px solid rgba(255, 224, 130, 0.15);
}

.table_content th {
  background: linear-gradient(90deg, #2c2c2c, #1f1f1f);
  color: var(--snib-gold);
  padding: 12px;
  text-align: left;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 224, 130, 0.25);
}

.table_content td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--snib-text);
}

.table_content tr:last-child td { border-bottom: none; }

.table_content tr:hover {
  background-color: rgba(255, 224, 130, 0.05);
  transition: 0.2s ease;
}

.table_content td:first-child {
  color: var(--snib-gold);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   26. FORMS
───────────────────────────────────────────────────────────── */
#label_user_question_text {
  color: var(--snib-mint);
  font-size: 18px;
}

#nick_name_label { color: var(--snib-mint); }

#user_question_text, #user_comment_text, .user_answer {
  height: 80px;
  width: 90%;
  background-color: #000;
  color: white;
  padding-left: 10px;
  padding-right: 10px;
  margin-right: 10%;
  border: 1px solid #333;
  border-radius: 4px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#user_question_text:focus, #user_comment_text:focus, .user_answer:focus {
  outline: none;
  border-color: var(--snib-purple-glow);
  box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.2);
}

#comment_name, #question_name, .answer_name {
  height: 40px;
  width: 30%;
  background-color: #000;
  color: white;
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid #333;
  border-radius: 4px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#comment_name:focus, #question_name:focus, .answer_name:focus {
  outline: none;
  border-color: var(--snib-purple-glow);
  box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.2);
}

#submit_question, #add_comment {
  background-color: #4CAF50;
  border: none;
  color: black;
  padding: 12px 32px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 10px 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

#submit_question:hover, #add_comment:hover {
  background-color: #43A047;
  transform: translateY(-1px);
}

.error { color: #CF6679; }

#show_questioned_by, #show_commentor_name, .show_answered_by {
  font-weight: 600;
  font-size: 18px;
  color: #9FA8DA;
}

#show_comment {
  background-color: var(--snib-black);
  border-radius: 1px;
  border-color: var(--snib-blue);
  padding: 12px;
  margin-top: 8px;
  opacity: 0.8;
}

#commented_date, #questioned_date {
  text-align: center;
  float: right;
  opacity: 0.4;
}

.reply_button, .approve_question_button, .approve_answer_button,
.reject_answer_button, .reject_question_button {
  background-color: #9FA8DA;
  border: none;
  color: black;
  padding: 6px 14px;
  font-weight: 500;
  text-align: center;
  font-size: 14px;
  margin: 10px 2px;
  cursor: pointer;
  float: right;
  height: 30px;
  width: 80px;
  border-radius: 3px;
  transition: opacity 0.2s, transform 0.2s;
}

.reply_button:hover, .approve_question_button:hover,
.approve_answer_button:hover, .reject_answer_button:hover,
.reject_question_button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.input_element_pack { margin-top: 10px; }

.helpfulCountClass {
  border-style: solid;
  border-color: #555;
  border-width: 1px;
  border-radius: 3px;
  padding: 7px;
  color: var(--snib-text-dim);
}

.helpfulButtonClass:hover {
  background-color: #555 !important;
}

/* ─────────────────────────────────────────────────────────────
   27. AUTHOR CARD
───────────────────────────────────────────────────────────── */
.author-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.author-card {
  background-color: var(--snib-card);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 2px solid var(--snib-line-soft);
}

.author-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.author-header {
  display: flex;
  align-items: center;
  padding: 20px;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

.author-header:hover .author-image {
  transform: scale(1.1);
}

.author-info { flex: 1; }

.author-name {
  font-size: 1.5em;
  color: #ccc;
  margin: 0;
  font-weight: 600;
}

.author-role {
  font-size: 1.1em;
  color: #777;
  margin: 5px 0;
}

.author-bio {
  color: var(--snib-text-muted);
  font-size: 1em;
  line-height: 1.6;
  margin-top: 10px;
}

.author-social {
  display: flex;
  margin-top: 15px;
  gap: 15px;
}

.social-icon {
  text-decoration: none;
  color: #888;
  font-size: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: #80CBC4;
  transform: scale(1.1);
}

.social-icon.linkedin:hover { color: #0077b5; }
.social-icon.twitter:hover  { color: #1DA1F2; }
.social-icon.github:hover   { color: #fff; }

.author-footer {
  text-align: center;
  padding: 15px;
  background-color: var(--snib-line-soft);
  border-top: 1px solid #e0e0e0;
}

.view-profile {
  color: var(--snib-text);
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s ease;
}

.view-profile:hover { color: #fff; }

/* ─────────────────────────────────────────────────────────────
   28. UTILITIES
───────────────────────────────────────────────────────────── */
.invert_image { filter: invert(90%); }
.leaderBoardAdd { text-align: center; }
.footerLinks { padding: 30px; }
.material-icons { vertical-align: bottom; }

.float-child-link1 { float: left; }
.float-child-link2 { float: right; }

.navigation_links_parent {
  width: auto;
  background: none;
  height: 20px;
  font-size: 20px;
  margin-bottom: 30px;
  margin-top: 30px;
}

/* ─────────────────────────────────────────────────────────────
   29. APPLICATION MENU (legacy compat)
───────────────────────────────────────────────────────────── */
.applicationMenu {
  font-size: 20px;
  text-align: center;
  width: 100%;
  z-index: 2;
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.applicationMenu::-webkit-scrollbar { display: none; }

.menu, .dropdown {
  display: inline;
  width: auto;
  height: 50px;
  padding-right: 10px;
  padding-left: 10px;
  text-align: center;
}

li a#link {
  background-color: var(--snib-purple);
  text-decoration: none;
}

.subMenu {
  display: none;
  position: absolute;
  z-index: 6;
  background: rgba(60, 60, 60, 0.8);
}

#login_buttons { display: none; }

/* ─────────────────────────────────────────────────────────────
   30. RIGHT-SIDE AD SLOTS
───────────────────────────────────────────────────────────── */
#right-side-top-add    { position: absolute; right: 10px; top: 820px;  width: 250px; }
#right-side-second-add { position: absolute; right: 10px; top: 100px;  width: 250px; }
#right-side-third-add  { position: absolute; right: 10px; top: 1720px; width: 250px; }
#right-side-forth-add  { position: absolute; right: 10px; top: 1820px; width: 250px; text-align: center; }

#introductionFooter { margin-left: 250px; }
#mostVisitedPages { margin-left: 250px; }

#footer { 
  margin-bottom: 100px; 
}

#footerAddDesktop {
  position: fixed;
  bottom: 0;
  text-align: center;
  left: 350px;
  background: rgba(222, 224, 252, 0);
  z-index: 3;
}

#footerAddMobile {
  width: 100%;
  height: auto;
  display: none;
  position: fixed;
  bottom: 0;
  text-align: center;
  background: rgba(222, 224, 252, 0);
  z-index: 3;
}

/* ─────────────────────────────────────────────────────────────
   31. RESPONSIVE
───────────────────────────────────────────────────────────── */
@media screen and (min-width: 901px) {
  #DesktopView { display: block; }
  #MobileView { display: none; }
  .mobile-ads { display: none; }
  .amazonAd { display: block; }

  .mainContent {
    margin-left: 260px;
    margin-right: 320px;
    padding-top: 50px;
  }

  .mobileViewExpertPage { display: none; }
  #openNavigation { position: fixed; }
}

@media screen and (max-width: 900px) {
  .mobile-ads { display: block; }
  .amazonAd { display: none; }
  #mySidenav { width: 0; }
  .mainContent {
    margin-left: 0;
    margin-right: 0;
    padding-top: 60px;
  }
  #MobileView { display: none; }
  .footerLinks { padding: 20px; }
  .desktop-ads { display: none; text-align: center; }
  #right-side-top-add,
  #right-side-second-add,
  #right-side-third-add,
  #right-side-forth-add { display: none; }

  #websiteName { margin-left: 0; font-size: 30px; }
  #mostVisitedPages { margin-left: 0; width: 100%; }
  #introductionFooter { margin-left: 0; }
  #footer { margin-left: 0; margin-right: 0; }
  #footerAddDesktop { display: none; }
  #footerAddMobile { display: block; }

  .menu { width: 15%; }
  #login_buttons { display: block; }

  .container { width: 92%; padding: 24px 0; }

  .hero h1, #pageHeader { font-size: 1.9rem; }
  .page-header h1 { font-size: 30px; }

  .qa-tile { padding: 18px; }
  .w3-card { padding: 5px 12px 12px; }
  .card { padding: 18px; }

  .section-title { font-size: 1.3rem; }

  #user_question_text, #user_comment_text, .user_answer { width: 100%; margin-right: 0; }
  #comment_name, #question_name, .answer_name { width: 100%; margin-bottom: 8px; }

  .author-header { flex-direction: column; text-align: center; }
  .author-image { margin-right: 0; margin-bottom: 14px; }

  .action-buttons { flex-direction: column; }
  .action-buttons .btn,
  .action-buttons .practice-btn,
  .action-buttons .complete-btn { width: 100%; }
}

@media screen and (max-width: 480px) {
  .container { width: 94%; padding: 18px 0; }
  .hero h1, #pageHeader { font-size: 1.55rem; }
  .page-header h1 { font-size: 26px; }
  .subtitle { font-size: 15px; }
  .qa-question { font-size: 16px; }
  .qa-answer { font-size: 14px; }
  .tag { font-size: 11px; }
  .price-card { padding: 24px 20px; }
  .price { font-size: 28px; }
}

/* ─────────────────────────────────────────────────────────────
   32. ACCESSIBILITY
───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--snib-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* End of stylesheet */