/* Grid Responsive System */

/* Container Responsive */
.container-xxl {
  max-width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

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

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

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

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

@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Row and Column Responsive */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
  margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
  margin-top: calc(-1 * var(--bs-gutter-y, 0));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  margin-top: var(--bs-gutter-y, 0);
}

/* Column Classes */
.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-sm-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  
  .col-sm-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  
  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
}

/* Gap Utilities */
.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

@media (max-width: 576px) {
  .g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
}

/* Margin and Padding Responsive */
.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
  .mb-4 {
    margin-bottom: 1rem;
  }
  
  .mb-3 {
    margin-bottom: 0.75rem;
  }
}

/* Height Utilities */
.h-100 {
  height: 100% !important;
}

/* Display Utilities */
.d-flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

@media (min-width: 576px) {
  .d-sm-block {
    display: block !important;
  }
}

/* Flex Utilities */
.flex-wrap {
  flex-wrap: wrap !important;
}

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

.flex-fill {
  flex: 1 1 auto !important;
}

@media (min-width: 576px) {
  .flex-sm-row {
    flex-direction: row !important;
  }
}

/* Alignment Utilities */
.align-items-end {
  align-items: flex-end !important;
}

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

.text-sm-end {
  text-align: right !important;
}

@media (max-width: 575px) {
  .text-sm-end {
    text-align: center !important;
  }
}