/* ==========================================================================
   normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
   ========================================================================== */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

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

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}



/* ==========================================================================
   Custom Styles (White & Blue Theme, Minimalist, Responsive)
   ========================================================================== */

/*------------------------------------
  1. Color Variables & Base Typography
-------------------------------------*/
:root {
  --color-blue-dark: #0056b3;
  --color-blue-light: #017bff;
  --color-gray-light: #f8f9fa;
  --color-gray-medium: #e0e0e0;
  --color-gray-dark: #555555;
  --color-white: #ffffff;
  --font-primary: 'Vazirmatn', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  background-color: var(--color-gray-light);
}

/*------------------------------------
  2. Links & Text Elements
-------------------------------------*/
a {
  color: var(--color-blue-dark);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover,
a:focus {
  color: var(--color-blue-light);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-blue-dark);
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #444444;
}

/*------------------------------------
  3. Layout Helpers & Containers
-------------------------------------*/
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Flex Utility */
.d-flex {
  display: flex !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-row {
  flex-direction: row !important;
}

/*------------------------------------
  4. Navbar / Header
-------------------------------------*/
header .navbar {
  background-color: var(--color-white);
  border-bottom: 2px solid var(--color-gray-medium);
  padding: 0.5rem 1rem;
}

header .navbar-brand {
  color: var(--color-blue-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

header .navbar-toggler {
  border: none;
}

header .navbar-toggler-icon {
  font-size: 1.5rem;
  color: var(--color-blue-dark);
}

header .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header .nav-links li {
  margin-left: 1rem;
}

header .nav-links a {
  color: var(--color-blue-dark);
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.3s;
}

header .nav-links a:hover,
header .nav-links a.active {
  color: var(--color-blue-light);
  border-bottom: 2px solid var(--color-blue-light);
}

@media (max-width: 768px) {
  header .nav-links {
    display: none;
  }
  header .navbar-collapse.show .nav-links {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
  }
  header .nav-links li {
    margin: 0.5rem 0;
  }
}

/*------------------------------------
  5. Main Content & Section Headers
-------------------------------------*/
.main-content {
  padding: 2rem 1rem;
  min-height: 70vh;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-blue-dark);
  font-size: 2rem;
  font-weight: 600;
}

/*------------------------------------
  6. Minimalist Cards
-------------------------------------*/
.card-minimal {
  border: 1px solid var(--color-gray-medium);
  border-radius: 0.5rem;
  background-color: var(--color-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-minimal:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: var(--color-blue-light);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  font-weight: 600;
}

.card-body {
  padding: 1rem;
  color: #555555;
}

.card-footer {
  background-color: var(--color-gray-light);
  padding: 0.75rem 1rem;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-gray-dark);
}

/* Grid Utility for Cards */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.col-md-4,
.col-md-6,
.col-sm-6,
.col-lg-3,
.col-md-8,
.col-6,
.col-md-3 {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/*------------------------------------
  7. Footer
-------------------------------------*/
.footer {
  background-color: var(--color-white);
  border-top: 2px solid var(--color-gray-medium);
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
}

.footer-content h3 {
  color: var(--color-blue-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-content p,
.footer-content a.social-link {
  color: var(--color-gray-dark);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-content a.social-link:hover {
  color: var(--color-blue-light);
}

.footer .copyright {
  margin-top: 1rem;
}

.footer .copyright p {
  text-align: center;
  color: #888888;
  font-size: 0.875rem;
}

/* Responsive Footer Layout */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-content .contact-info {
    margin-bottom: 0;
  }
}

/*------------------------------------
  8. Forms (Login / Register)
-------------------------------------*/
form .form-label {
  font-weight: 500;
  color: #333333;
}

form .form-control {
  border: 1px solid var(--color-gray-medium);
  border-radius: 0.25rem;
  padding: 0.5rem;
  transition: border-color 0.3s;
}

form .form-control:focus {
  outline: none;
  border-color: var(--color-blue-light);
  box-shadow: 0 0 0 2px rgba(1, 123, 255, 0.2);
}

.btn-primary {
  background-color: var(--color-blue-dark);
  border: none;
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

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

/*------------------------------------
  9. Utility Spacing Classes
-------------------------------------*/
.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.p-0 {
  padding: 0 !important;
}

/*------------------------------------
  10. Miscellaneous Responsive Tweaks
-------------------------------------*/
/* Ensure images in cards are fluid */
img.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Center text in certain card-body where needed */
.text-center {
  text-align: center !important;
}

/* Rounded-circle utility */
.rounded-circle {
  border-radius: 50% !important;
}

/* Hide element */
.hidden {
  display: none !important;
}
