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

/* Local Inter Variable Font Face (100 - 900) */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont.ttf') format('truetype-variations'),
       url('../fonts/Inter-VariableFont.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont.ttf') format('truetype-variations'),
       url('../fonts/Inter-VariableFont.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* SVN-Segoe UI Condensed for Brand Identity & Logo Typography */
@font-face {
  font-family: 'SVN-Segoe UI Condensed';
  src: url('../fonts/SVN-SegoeUI-Condensed.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Segoe UI Condensed';
  src: url('../fonts/SVN-SegoeUI-CondensedBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Segoe UI';
  src: url('../fonts/SVN-SegoeUI.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Segoe UI';
  src: url('../fonts/SVN-SegoeUI-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 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: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1240px;
  --transition: all 0.22s ease-in-out;
}

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

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

button, input, select, textarea, optgroup {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
}

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: 600;
  letter-spacing: 0.01em;
}

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;
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 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;
}

/* Tiêu đề phân đoạn chuẩn chung: Căn giữa, gạch chân thương hiệu màu cam */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.section-title {
  font-family: var(--font-heading, 'Inter', sans-serif) !important;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.25;
}

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

.section-title-underline {
  width: 100px;
  height: 2px;
  background-image: url('../images/icons/Line.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  margin: 0 auto;
  border-radius: 0;
  border: none;
}

.section-subtitle {
  max-width: 860px;
  margin: 14px auto 0;
  color: #203B72;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 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;
}
