/**
 * Theme Name: QTDND Cao Phong
 * Theme URI: https://ccf.vn
 * Author: Quỹ tín dụng nhân dân Cao Phong
 * Author URI: https://ccf.vn
 * Description: Theme chính thức của Quỹ tín dụng nhân dân Cao Phong - Giao diện hiện đại, chuyên nghiệp, chuẩn nhận diện tài chính ngân hàng, tối ưu SEO và hiệu năng.
 * Version: 1.0.0
 * Template: astra
 * Text Domain: qtd-cao-phong
 */

/* ==========================================================================
   1. FONT DEFINITIONS
   ========================================================================== */

/* Be Vietnam Pro */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('fonts/BeVietnamPro-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* SFU DaxCondensed */
@font-face {
  font-family: 'SFU DaxCondensed';
  src: url('fonts/SFUDaxCondensedRegular.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SFU DaxCondensed';
  src: url('fonts/SFUDaxCondensedMedium.TTF') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SFU DaxCondensed';
  src: url('fonts/SFUDaxCondensedBold.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SFU DaxCondensed';
  src: url('fonts/SFUDaxCondensedExtraBold.TTF') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* UTM Dax */
@font-face {
  font-family: 'UTM Dax';
  src: url('fonts/UTM Dax.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'UTM Dax';
  src: url('fonts/UTM DaxMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'UTM Dax';
  src: url('fonts/UTM DaxBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
  /* Brand Colors */
  --qtd-blue: #00377B;
  --qtd-blue-dark: #002657;
  --qtd-blue-light: #0d4fa1;
  --qtd-blue-soft: #EEF4FC;
  --qtd-red: #FF0000;
  --qtd-red-dark: #D90000;
  --qtd-red-soft: #FFF1F0;
  --qtd-gold: #D19138;
  --qtd-gold-dark: #B57929;
  --qtd-gold-soft: #FDF7EE;
  --qtd-gray: #D0D0D0;
  
  /* Neutral Colors */
  --qtd-bg: #FFFFFF;
  --qtd-bg-alt: #F8FAFC;
  --qtd-bg-card: #FFFFFF;
  --qtd-border: #E2E8F0;
  --qtd-border-light: #F1F5F9;
  --qtd-text: #1E293B;
  --qtd-text-muted: #64748B;
  --qtd-text-light: #94A3B8;

  /* Typography */
  --qtd-font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --qtd-font-heading: 'SFU DaxCondensed', 'Be Vietnam Pro', sans-serif;
  --qtd-font-accent: 'UTM Dax', 'Be Vietnam Pro', sans-serif;

  /* Elevation */
  --qtd-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --qtd-shadow: 0 4px 6px -1px rgba(0, 55, 123, 0.08), 0 2px 4px -2px rgba(0, 55, 123, 0.05);
  --qtd-shadow-md: 0 10px 15px -3px rgba(0, 55, 123, 0.1), 0 4px 6px -4px rgba(0, 55, 123, 0.05);
  --qtd-shadow-lg: 0 20px 25px -5px rgba(0, 55, 123, 0.12), 0 8px 10px -6px rgba(0, 55, 123, 0.06);

  /* Radius */
  --qtd-radius-sm: 6px;
  --qtd-radius: 10px;
  --qtd-radius-lg: 16px;
  --qtd-radius-full: 9999px;
  
  /* Transitions */
  --qtd-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3. GLOBAL BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--qtd-font-main);
  color: var(--qtd-text);
  background-color: var(--qtd-bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--qtd-font-heading);
  color: var(--qtd-blue);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.65rem; }
}

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

a:hover {
  color: var(--qtd-gold);
}

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

.qtd-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}