/* =========================================================
   Root Variables
   ========================================================= */

:root {
  --gold: #c8a96a;
  --gold-dark: #b89b5e;
  --gold-border: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.1);
  --gold-soft-light: rgba(212, 175, 55, 0.04);
  --gold-soft-hover: rgba(212, 175, 55, 0.08);
  --gold-focus: rgba(184, 155, 94, 0.12);

  --text-dark: #111;
  --text-main: #222;
  --text-soft: #333;
  --text-gray: #555;
  --text-muted: #666;
  --text-light: #777;
  --text-faded: #888;

  --white: #ffffff;
  --black-soft: #1a1a1a;
  --black-hover: #333333;

  --border-light: #e5e5e5;
  --border-soft: #eeeeee;
  --border-input: #dddddd;

  --success: #2e7d32;
  --success-dark: #15803d;
  --error: #b00020;
  --danger: #9a2f2f;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 15px 35px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 12px 28px rgba(212, 175, 55, 0.1);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.3s ease;
}

/* =========================================================
   Base Layout
   ========================================================= */

html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}

body {
  display: flex;
  flex-direction: column;

  min-height: 100vh;
  margin-bottom: 50px;

  background-color: var(--white);
  font-family: "Inter", sans-serif;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

main {
  flex: 1;
  padding-top: 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* =========================================================
   Typography
   ========================================================= */

h3 {
  font-size: 25px;
  font-weight: 400;
  text-align: center;

  transition: color var(--transition-fast);
}

h3:hover {
  color: var(--gold);
}

/* =========================================================
   General Sections
   ========================================================= */

.section {
  padding: 20px;

  font-size: 20px;
  text-align: center;
}

.section:first-of-type {
  padding: 20px 40px;
}

.section h1,
.section .hero-title {
  margin-bottom: 4px;
}

.section ul {
  display: inline-block;

  margin: 5px auto;
  padding: 0;

  list-style: none;
  text-align: left;
}

.page-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  min-height: auto;
}

/* =========================================================
   RTL Support
   ========================================================= */

[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] body,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] li {
  text-align: right;
}

[dir="rtl"] h1,
[dir="rtl"] .section,
[dir="rtl"] .success-message,
[dir="rtl"] .error-message {
  text-align: center;
}

/* =========================================================
   Base Responsive
   ========================================================= */

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

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

  .section {
    padding: 20px 16px;

    font-size: 20px;
    text-align: center;
  }

  .page-section .section {
    padding-top: 0;
  }
}
