/* CSS Variables for Color Palette */
:root {
  --primary-color: #05386B;
  --secondary-color: #379683;
  --accent-color: #5CDB95;
  --light-accent: #8EE4AF;
  --background-light: #EDF5E1;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --background-light: #1a1a1a;
  --text-dark: #ffffff;
  --border-color: #333333;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 2.5vw + 1.5rem, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 1.8vw + 1.2rem, 2.3rem);
}

h3 {
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.7rem);
}

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: var(--primary-color);
  color: var(--text-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hamburger {
  width: 20px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition);
}

/* Off-canvas Menu */
.offcanvas {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--background-light);
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 1001;
  overflow-y: auto;
}

.offcanvas.active {
  right: 0;
}

.offcanvas-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offcanvas-body {
  padding: 1.5rem;
}

.offcanvas-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

.useful-links {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* Iconography */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.icon {
  color: inherit;
}

.icon-lg {
  font-size: 1.75rem;
}

.icon-xl {
  font-size: 2rem;
}

.icon-brand {
  font-size: 1.75rem;
}

.nav-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.theme-icon {
  font-size: 1.5rem;
}

.card-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.summary-icon {
  font-size: 2.25rem;
  color: var(--primary-color);
}

.icon-status {
  font-size: 1.75rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.icon-status.success {
  color: #2ecc71;
}

.icon-status.danger {
  color: #e74c3c;
}

.icon-status.warning {
  color: #f1c40f;
}

.useful-links h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.useful-links a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

.useful-links a:hover {
  color: var(--primary-color);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.main-content {
  padding-top: 80px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  padding: 4rem 0;
  text-align: left;
}

.hero-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
  margin: 0;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(1.05rem, 1.5vw + 0.8rem, 1.2rem);
  margin: 0;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 180px;
}

.hero-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.12);
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  border-left: 4px solid rgba(255, 255, 255, 0.4);
}

.hero-notice-icon {
  font-size: 1.75rem;
  color: var(--accent-color);
}

.hero-notice p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
}

.hero-highlight {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: min(360px, 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  align-items: flex-start;
}

.highlight-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-light);
}

.highlight-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

.highlight-list li .material-symbols-rounded {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 0.1rem;
}

/* Removed hero-card styles for simplified hero */

.page-hero {
  background: linear-gradient(135deg, var(--primary-color), #0b2744);
  color: var(--text-light);
  padding: 4.5rem 0;
}

.page-hero .hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-hero .hero-actions {
  justify-content: center;
}

.page-hero .btn-ghost {
  border-color: var(--text-light);
  color: var(--text-light);
}

.page-hero .btn-ghost:hover {
  background: var(--text-light);
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  min-width: 120px;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--light-accent);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-ghost:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--primary-color);
}

.section-heading p {
  margin: 0;
  color: rgba(44, 62, 80, 0.75);
  max-width: 720px;
}

.section-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-dark);
  opacity: 0.85;
}

.bg-light {
  background: rgba(237, 245, 225, 0.3);
}

[data-theme="dark"] .bg-light {
  background: rgba(255, 255, 255, 0.05);
}

/* Simulators Grid */
.simulators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.simulator-card {
  background: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.simulator-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.info-banner {
  padding: 2.5rem 0;
  background: rgba(5, 56, 107, 0.08);
}

.info-banner-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.info-banner-content h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.info-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.notice-card {
  background: rgba(5, 56, 107, 0.08);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  border-left: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notice-card p {
  margin: 0;
  color: var(--text-dark);
  opacity: 0.85;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.summary-card {
  background: var(--background-light);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.summary-card .summary-icon {
  font-size: 1.75rem;
}

.summary-card h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--primary-color);
}

.summary-card p {
  margin: 0;
  color: rgba(44, 62, 80, 0.8);
  line-height: 1.5;
}

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.content-aside {
  position: sticky;
  top: 110px;
}

.toc-card {
  background: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toc-card h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.toc-card nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-card a {
  text-decoration: none;
  color: rgba(44, 62, 80, 0.85);
  font-weight: 500;
  transition: var(--transition);
}

.toc-card a:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-note {
  background: rgba(255, 193, 7, 0.15);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  border-left: 4px solid rgba(255, 193, 7, 0.6);
  color: rgba(44, 62, 80, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.policy-card {
  background: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.policy-card h3 {
  margin: 0;
  color: var(--primary-color);
}

.policy-card p {
  margin: 0;
  color: rgba(44, 62, 80, 0.8);
}

.policy-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(44, 62, 80, 0.75);
}

.card-header {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-icon {
  font-size: 2rem;
}

.card-body {
  padding: 1.5rem;
}

.requirements-list {
  list-style: none;
  margin: 1rem 0;
}

.requirements-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.requirements-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Comparison */
.comparison-container {
  text-align: center;
}

.comparison-intro {
  margin-bottom: 2rem;
}

.comparison-results {
  background: var(--background-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tip-card {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.tip-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--background-light);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(92, 219, 149, 0.1);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-dark);
  opacity: 0.8;
}

/* History */
.history-container {
  max-width: 800px;
  margin: 0 auto;
}

.history-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-dark);
  opacity: 0.8;
  background: rgba(5, 56, 107, 0.05);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-color);
}

.history-note {
  margin: 1rem 0 2rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
  text-align: center;
}

.history-item {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.history-date {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--background-light);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
}

.modal-large {
  max-width: 800px;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1.5rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.25rem;
}

/* Forms */
.simulator-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: var(--background-light);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-help {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Results */
.results-summary {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  text-align: center;
}

.results-summary.success {
  background: var(--accent-color);
  color: var(--primary-color);
}

.results-summary.warning {
  background: rgba(255, 193, 7, 0.15);
  color: var(--text-dark);
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.results-summary.warning h3 {
  color: inherit;
}

.results-details {
  display: grid;
  gap: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(92, 219, 149, 0.1);
  border-radius: var(--border-radius);
}

.result-label {
  font-weight: 500;
}

.result-value {
  font-weight: 600;
  color: var(--primary-color);
}

.results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.results-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary-color);
  background: rgba(5, 56, 107, 0.08);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  color: var(--text-dark);
  text-align: left;
}

.notification-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  text-align: left;
}

.notification-list li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.notifications-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1100;
}

.notification {
  background: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 260px;
  border-left: 4px solid var(--primary-color);
  animation: fadeInDown 0.3s ease;
}

.notification.notification-success {
  border-left-color: #2ecc71;
}

.notification.notification-error {
  border-left-color: #e74c3c;
}

.notification.notification-warning {
  border-left-color: #f1c40f;
}

.notification.notification-info {
  border-left-color: var(--secondary-color);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notification-icon.success {
  color: #2ecc71;
}

.notification-icon.error {
  color: #e74c3c;
}

.notification-icon.warning {
  color: #f1c40f;
}

.notification-icon.info {
  color: var(--secondary-color);
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
}

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

.confirm-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.confirm-content {
  position: relative;
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  max-width: 400px;
  width: 90%;
  text-align: center;
  z-index: 1101;
}

.confirm-message {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.flow-card {
  background: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.flow-step {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.flow-tip {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-style: italic;
}

.legal-section {
  background: rgba(5, 56, 107, 0.05);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.legal-card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-card ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal-card li {
  margin-bottom: 0.5rem;
}

.legal-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition);
}

.legal-link:hover {
  color: var(--secondary-color);
}

.legal-disclaimer {
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(255, 193, 7, 0.15);
  border-left: 4px solid rgba(255, 193, 7, 0.6);
  border-radius: var(--border-radius);
  color: var(--text-dark);
  text-align: left;
}

.comparison-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 1.75rem;
}

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.comparison-card {
  background: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.comparison-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  color: var(--text-light);
}

.comparison-card-header h4 {
  margin: 0;
  font-size: 1.2rem;
}

.comparison-card-header.is-prouni {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--text-light);
}

.comparison-card-header.is-fies {
  background: linear-gradient(135deg, var(--primary-color), #092c4c);
  color: var(--text-light);
}

.comparison-card-icon {
  font-size: 1.75rem;
}

.comparison-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-dark);
}

.comparison-card-body p {
  margin: 0;
  line-height: 1.5;
}

.status-positive {
  color: #2ecc71;
  font-weight: 600;
}

.status-negative {
  color: #e74c3c;
  font-weight: 600;
}

.comparison-recommendation,
.comparison-empty {
  margin-top: 2rem;
  background: rgba(92, 219, 149, 0.15);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  color: var(--text-dark);
}

.comparison-empty {
  background: rgba(255, 193, 7, 0.15);
}

.comparison-recommendation h4,
.comparison-empty h4 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

[data-theme="dark"] .notification {
  background: #2a2a2a;
  color: var(--text-light);
  border-left-color: var(--accent-color);
}

[data-theme="dark"] .notification-close {
  color: var(--text-light);
}

[data-theme="dark"] .confirm-content {
  background: #222;
  color: var(--text-light);
}

[data-theme="dark"] .comparison-card {
  background: #1f1f1f;
}

[data-theme="dark"] .comparison-card-body {
  color: var(--text-light);
}

[data-theme="dark"] .comparison-recommendation {
  background: rgba(92, 219, 149, 0.25);
}

[data-theme="dark"] .comparison-empty {
  background: rgba(255, 193, 7, 0.2);
}

/* Loading */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  text-align: center;
  color: var(--text-light);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.callout-official {
  background: linear-gradient(135deg, rgba(5, 56, 107, 0.08), rgba(55, 150, 131, 0.08));
  padding: 3rem 0;
}

.callout-official .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.callout-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}

.callout-content li {
  margin-bottom: 0.5rem;
}

.callout-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.callout-content a:hover {
  color: var(--secondary-color);
}

.callout-content em {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
}

.callout-content h2,
.callout-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.content-main .callout-official {
  background: rgba(5, 56, 107, 0.08);
  padding: 2rem;
  border-radius: var(--border-radius);
}

[data-theme="dark"] .info-banner {
  background: rgba(5, 56, 107, 0.25);
}

[data-theme="dark"] .info-banner-content h2,
[data-theme="dark"] .callout-content h2,
[data-theme="dark"] .callout-content h3 {
  color: var(--text-light);
}

[data-theme="dark"] .notice-card {
  background: rgba(5, 56, 107, 0.3);
  color: var(--text-light);
}

[data-theme="dark"] .summary-card {
  background: #1f1f1f;
  color: var(--text-light);
}

[data-theme="dark"] .flow-card {
  background: #1f1f1f;
}

[data-theme="dark"] .legal-section {
  background: rgba(5, 56, 107, 0.2);
}

[data-theme="dark"] .legal-card {
  background: #1f1f1f;
  color: var(--text-light);
}

[data-theme="dark"] .legal-link {
  color: var(--accent-color);
}

[data-theme="dark"] .legal-link:hover {
  color: var(--light-accent);
}

[data-theme="dark"] .legal-disclaimer {
  background: rgba(255, 193, 7, 0.25);
  color: var(--text-light);
}

[data-theme="dark"] .form-note {
  background: rgba(5, 56, 107, 0.2);
  color: var(--text-light);
}

[data-theme="dark"] .results-disclaimer {
  background: rgba(5, 56, 107, 0.3);
  color: var(--text-light);
}

[data-theme="dark"] .callout-official {
  background: linear-gradient(135deg, rgba(5, 56, 107, 0.35), rgba(55, 150, 131, 0.35));
}

[data-theme="dark"] .callout-content a {
  color: var(--accent-color);
}

[data-theme="dark"] .history-note {
  color: var(--accent-color);
}

[data-theme="dark"] .toc-card {
  background: #1f1f1f;
  color: var(--text-light);
}

[data-theme="dark"] .toc-card a {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .summary-card p,
[data-theme="dark"] .policy-card p,
[data-theme="dark"] .policy-card ul,
[data-theme="dark"] .info-note {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .policy-card {
  background: #1f1f1f;
  color: var(--text-light);
}

[data-theme="dark"] .content-main .callout-official {
  background: rgba(5, 56, 107, 0.35);
}

/* Ad Container */
.ad-container {
  padding: 2rem 0;
  text-align: center;
}

.ad-placeholder {
  background: var(--border-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  color: var(--text-dark);
  opacity: 0.7;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-section a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

.footer-bottom p {
  color: var(--text-light);
}

.footer-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.footer-link:hover,
.footer-link:focus {
  color: var(--accent-color);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .hero-highlight {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-actions .btn {
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
  }

  .hero-wrapper {
    align-items: center;
  }

  .hero-content,
  .hero-highlight {
    width: 100%;
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-notice {
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 0.5rem;
  }

  .highlight-card {
    width: 100%;
    align-items: center;
  }

  .highlight-list li {
    justify-content: flex-start;
    text-align: left;
  }

  .info-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .simulators-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .results-actions {
    flex-direction: column;
  }

  .modal-dialog {
    width: 95%;
  }

  .offcanvas {
    width: 100%;
    right: -100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .content-columns {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
  }

  .toc-card nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .callout-official .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .info-banner {
    padding: 2rem 0;
  }
  
  .card-body,
  .modal-body {
    padding: 1rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .page-hero {
    padding: 3rem 0;
  }
  
  .summary-card,
  .policy-card {
    padding: 1.25rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .offcanvas,
  .modal,
  .overlay,
  .loading-overlay,
  .ad-container {
    display: none !important;
  }
  
  .main-content {
    padding-top: 0;
  }
  
  body {
    background: white;
    color: black;
  }
}
