/* ==================== BASE & THEME ==================== */
:root {
  --primary: 210 100% 50%;
  --primary-foreground: 0 0% 100%;
  --primary-variant: 220 100% 60%;
  --primary-glow: 215 100% 70%;
  --secondary: 210 20% 90%;
  --secondary-foreground: 210 20% 10%;
  --accent: 210 40% 95%;
  --accent-foreground: 210 40% 10%;
  --background: 0 0% 100%;
  --foreground: 0 0% 15%;
  --muted: 210 40% 96%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
  --gradient-hero: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.5));
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px hsl(var(--primary-glow) / 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

html.dark-theme {
  --primary: 210 100% 50%;
  --primary-foreground: 0 0% 100%;
  --primary-variant: 220 100% 60%;
  --primary-glow: 215 100% 70%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 210 40% 98%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background: hsl(var(--accent));
  border-color: hsl(var(--primary));
}

.btn-ghost {
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background: hsl(var(--accent));
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: hsl(var(--background) / 0.95);
  border-bottom: 1px solid hsl(var(--border));
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease-in-out;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo img {
  height: 2rem;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 60;
}

.mobile-menu-toggle i {
  width: 24px;
  height: 24px;
  color: hsl(var(--foreground));
}

/* ==================== MOBILE NAV DRAWER ==================== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: hsl(var(--background));
  z-index: 56;
  padding: 2rem 1rem;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.is-open {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  margin-bottom: 1rem;
}

.mobile-nav ul li a,
.mobile-nav ul li button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 500;
  padding: 0.75rem;
  border-radius: 0.375rem;
  background: none;
  border: none;
  font: inherit;
  width: 100%;
  transition: background 0.2s;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li button:hover {
  background: hsl(var(--accent));
}

/* ==================== OVERLAY ==================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nav,
  .user-actions .btn-outline,
  .user-actions .btn-primary,
  .user-actions .btn-ghost {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (min-width: 769px) {
  .mobile-nav,
  .overlay {
    display: none !important;
  }
}

/* Fix Lucide icon colors */
.lucide {
  color: inherit !important;
  fill: none !important;
  stroke: currentColor !important;
}

/* ==================== HONOR CODE STYLES ==================== */
.page-hero {
  background: hsl(var(--accent) / 0.3);
  padding: 4rem 1rem;
  text-align: center;
  border-bottom: 1px solid hsl(var(--border));
}

.honor-hero .hero-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
}

.honor-hero .hero-icon-wrapper i {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--primary));
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto;
}

.page-content {
  padding: 5rem 0;
}

.content-section {
  max-width: 960px;
  margin: 0 auto 5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

.section-title.left-align {
  text-align: left;
}

.content-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.content-section p + p {
  margin-top: 1rem;
}

.principles-grid-alt {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.principle-icon {
  flex-shrink: 0;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.5rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle-icon i {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--primary));
}

.principle-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.principle-description {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

.commitment-section.alt-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .commitment-section.alt-layout {
    grid-template-columns: 1fr 1fr;
  }
  .commitment-section.alt-layout .commitment-image {
    order: 1;
  }
  .commitment-section.alt-layout.reverse .commitment-image {
    order: 2;
  }
}

.commitment-image img {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
  background: hsl(var(--accent) / 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.faq-question i {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.faq-item.is-open .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9rem;
}

.faq-item.is-open .faq-answer {
  max-height: 200px;
}

.text-center {
  text-align: center;
}

.cta-section-alt {
  background: hsl(var(--accent) / 0.3);
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
}

/* ==================== FOOTER ==================== */
.footer {
  margin-top: 5rem;
  padding: 4rem 0 2rem;
  background: hsl(var(--accent));
  color: hsl(var(--foreground));
  border-top: 1px solid hsl(var(--border));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-description {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

.copyright {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
}

.footer-social-link i {
  width: 18px;
  height: 18px;
}

/* Dark Theme Footer */
html.dark-theme .footer {
  background: hsl(var(--muted));
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}