/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.container-sm {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

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

.items-start {
    align-items: start;
}

.items-end {
    align-items: end;
}

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

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

.flex-grow {
    flex-grow: 1;
}

.shrink-0 {
    flex-shrink: 0;
}

/* Grid */
.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Text */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-flex {
    display: inline-flex;
}

/* Spacing */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.h-screen {
    height: 100vh;
}

/* Pointer */
.pointer-events-none {
    pointer-events: none;
}

/* Z-index layers */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-50 {
    z-index: 50;
}

/* Common section padding */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .md-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-block {
        display: block;
    }

    .md-flex {
        display: flex;
    }

    .md-hidden {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .lg-block {
        display: block;
    }

    .lg-flex {
        display: flex;
    }

    .lg-hidden {
        display: none;
    }
}