/* ===== Global Reset & Fonts ===== */
* {
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ddd;
  background-color: #121212;
  line-height: 1.6;
}

/* ===== Navigation Bar ===== */
.navbar {
  position: fixed; 
  top: 0; 
  left: 0;        /* ensures bar starts at the very left */
  width: 100%;    /* ensures bar spans entire width */
  z-index: 999;
  background-color: rgba(0,0,0,0.9); /* consistent with your main page */
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.nav-logo span {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #ddd;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffcc00;
}

/* Mobile Menu Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
}

/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  background: url("../img/hero-bg.jpg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 4rem;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #ffcc00;
}

.hero-overlay p {
  font-size: 1.2rem;
}

/* ===== Main Content Sections ===== */
.content-section {
  padding: 4rem 1rem;
  max-width: 1000px;
  margin: 2rem auto;
}

.content-section h2 {
  margin-bottom: 1rem;
  color: #ffcc00;
}

.content-section p,
.content-section ul {
  margin-bottom: 1rem;
}

.article-list {
  list-style-type: disc;
  padding-left: 2rem;
}

.article-list a {
  color: #ffcc00;
  text-decoration: none;
}

.article-list a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== Article Page Specific ===== */
.article-hero {
  height: 50vh;
  background: url("../img/hero-bg.jpg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 4rem;
  position: relative;
}

.article-hero-overlay {
  background: rgba(0,0,0,0.7);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.article-hero-overlay h1 {
  font-size: 2.5rem;
  color: #ffcc00;
}

.article-content {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  color: #ddd;
}

.article-content h2, .article-content h3 {
  color: #ffcc00;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
  margin-bottom: 1rem;
}

.article-content blockquote {
  background: rgba(255,204,0,0.1);
  border-left: 4px solid #ffcc00;
  padding: 1rem;
  font-style: italic;
}

.article-content a {
  color: #ffcc00;
  text-decoration: underline;
}

.article-content a:hover {
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  background: rgba(0,0,0,0.8);
  padding: 1rem 0;
  color: #aaa;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    display: none;
  }

  .nav-links li {
    margin: 1rem 0;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Explicitly override Google's CSS classes */

.doc-content {
  background-color: #ffffff !important; /* Clean white background */
  color: #333333 !important; /* Pleasant dark-grey text for high contrast */
  padding: 50px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
}

/* Readable dark-grey color for text */
body, .c1, .c6, .c10, .c15, .c12, p, li {
  color: #333333 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Pleasant blue for headings */
h1, h2, h3, h4, h5, h6, .c9, .c11, .c4 {
  color: #005bac !important;
  margin-top: 35px !important;
  margin-bottom: 15px !important;
}

/* Standard, clearly visible link color */
a, .c2 {
  color: #0066cc !important; 
  text-decoration: underline !important;
}

/* References Heading Horizontal Line (Light theme) */
.references-heading {
  border-top: 2px solid #005bac !important; /* Matching heading/link color */
  padding-top: 25px !important;             /* Padding between line and heading */
  margin-top: 40px !important;              /* Space above the line */
  margin-bottom: 15px !important;           /* Space below the heading */
  color: #005bac !important;                /* Ensuring consistent heading color */
}

/* Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0,0,0,0.9);
  padding: 0.75rem 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.nav-logo span {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #ddd;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffcc00;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
}

/* Toggle Button Styles */
#theme-toggle {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  padding: 8px 14px !important;
  background-color: #005bac !important; 
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  z-index: 2000 !important;
  transition: opacity 0.3s ease !important;
  font-size: 14px !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

#theme-toggle:hover {
  opacity: 0.85 !important;
}

@media (max-width: 768px) {
  #theme-toggle {
    bottom: 15px !important;
    right: 15px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
  }
}

/* Navigation Link Cyan Color for BOTH themes */
.navbar .nav-links a {
  color: #00c8ff !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.navbar .nav-links a:hover {
  color: #ffcc00 !important;
}



