/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0077cc;
  --secondary-color: #f0f5ff;
  --dark-color: #0f0f0f;
  --text-color: #333;
  --light-text: #fff;
  --gray-text: #6c757d;
  --border-color: #e9ecef;
  --input-bg: #f8f9fa;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --shadow: 0 8px 16px rgba(0, 119, 204, 0.15);
  --transition: all 0.3s ease;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar .nav-links {
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.navbar .nav-links li {
  position: relative;
}

.navbar .nav-links a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

.navbar .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar .nav-links a:hover {
  color: var(--primary-color);
}

.navbar .nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background-color: rgba(0, 119, 204, 0.1);
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border-color);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav.show {
  display: block;
}

.mobile-nav ul {
  padding: 1.5rem 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 16px;
  padding: 0.75rem 0;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  display: block;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Main Content Styles */
.main-content {
  margin-top: 80px;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #e3f2fd 100%);
  min-height: calc(100vh - 80px);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-header {
  background: linear-gradient(135deg, var(--primary-color), #1565c0);
  color: white;
  padding: 60px 40px;
  text-align: center;
  position: relative;
}

.content-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.content-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.content-header .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.last-updated {
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.last-updated i {
  font-size: 0.8rem;
}

.content-body {
  padding: 50px 40px;
}

.section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section h2::before {
  content: "";
  width: 4px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary-color), #1565c0);
  border-radius: 2px;
}

.section h3 {
  color: var(--dark-color);
  font-size: 1.3rem;
  margin: 25px 0 15px 0;
  font-weight: 600;
}

.section p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-color);
}

.section ul {
  list-style: none;
  margin: 20px 0;
}

.section ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.section ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: 14px;
}

.section ol {
  margin: 20px 0;
  padding-left: 20px;
}

.section ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Important Notice Boxes */
.notice-box {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 1px solid var(--warning-color);
  border-left: 5px solid var(--warning-color);
  padding: 20px;
  margin: 25px 0;
  border-radius: 8px;
  position: relative;
}

.notice-box.important {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border-color: var(--danger-color);
  border-left-color: var(--danger-color);
}

.notice-box.info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  border-color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.notice-box h4 {
  margin: 0 0 10px 0;
  color: var(--dark-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-box p {
  margin: 0;
  font-size: 0.95rem;
}

/* Contact Information */
.contact-info {
  background: var(--secondary-color);
  padding: 25px;
  border-radius: 12px;
  margin: 20px 0;
  border: 1px solid var(--border-color);
}

.contact-info h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.contact-info p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

/* Table of Contents */
.toc {
  background: var(--input-bg);
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
  border: 1px solid var(--border-color);
}

.toc h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.toc ul {
  list-style: none;
}

.toc ul li {
  padding-left: 0;
  margin-bottom: 8px;
}

.toc ul li::before {
  content: "→";
  color: var(--primary-color);
  margin-right: 8px;
}

.toc a {
  color: var(--text-color);
  transition: var(--transition);
}

.toc a:hover {
  color: var(--primary-color);
}

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-column p i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .content-header {
    padding: 40px 25px;
  }

  .content-body {
    padding: 30px 25px;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .header-container {
    padding: 1rem 15px;
  }

  .content-header {
    padding: 30px 20px;
  }

  .content-body {
    padding: 25px 20px;
  }

  .notice-box {
    padding: 15px;
  }

  .contact-info {
    padding: 20px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for better accessibility */
.navbar .nav-links a:focus,
.mobile-nav a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
}