/* ==========================================================================
   Hanoi College Theme - Base Styles & Design Tokens (Brand Blue #203B72)
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --primary: #203B72;
  --primary-dark: #162952;
  --primary-light: #2c4d91;
  --accent: #F36F21;
  --accent-hover: #d8570c;
  --blue-accent: #0066cc;
  --blue-light: #e8f2fc;
  --gold: #f59e0b;
  --gold-hover: #d97706;
  
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-navy: #203B72;
  
  --text-main: #1e293b;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-color: #e2e8f0;
  --border-radius-xs: 4px;
  --border-radius-sm: 6px;
  --border-radius: 10px;
  --border-radius-lg: 16px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(32, 59, 114, 0.08);
  --shadow-lg: 0 10px 25px rgba(32, 59, 114, 0.12);
  
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1240px;
  --transition: all 0.22s ease-in-out;
}

/* Base & Reset */
html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* Grid Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Global Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

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

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

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--text-inverse);
}

.btn-gold {
  background-color: var(--gold);
  color: #1e293b;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  color: #1e293b;
}

/* Section Title Pattern (Figma Standard: Centered with Orange Underline) */
.figma-section-title-wrapper {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.figma-section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.figma-section-title.text-white {
  color: #ffffff !important;
}

.figma-title-underline {
  width: 80px;
  height: 3px;
  background-color: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
}

.figma-title-underline.underline-gold {
  background-color: var(--gold) !important;
}

.figma-section-subtitle {
  max-width: 800px;
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Screen Reader Utilities */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
