/**
 * Box Grid Frontend Styles
 */

.box-grid-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.box-grid-container {
    width: 100%;
}

.box-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 66px;
    column-gap: 14px;
    margin: 0;
    padding: 0;
}

/* Grid layout tweaks for Style 2 & 3 */
.box-grid.box-grid-style-2,
.box-grid.box-grid-style-3 {
    row-gap: 14px;
}

/* Responsive columns */
.box-grid-columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

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

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

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

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

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

/* Box Grid Item - Base Styles */
.box-grid-item {
    background-color: #2C262C;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Style 1: Default Style (with drop shadow) */
.box-grid-item-style-1 {
    box-shadow: 5px 8px 8px rgb(0 0 0 / 36%);
}

.box-grid-item-style-1 .box-grid-image {
    margin-bottom: 68px;
    margin-left: -16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.box-grid-item-style-1 .box-grid-image img {
    width: 98px;
    height: 98px;
    display: block;
    border-radius: 12px;
    object-fit: contain;
}

.box-grid-item-style-1 .box-grid-content {
    padding-bottom: 64px;
}

/* Style 2 & 3: Border Style (with separator line) */
.box-grid-item-style-2,
.box-grid-item-style-3 {
    background-color: #1f1b1f;
    border: 0.5px solid #8f8d8f;
    border-radius: 10px;
    box-shadow: none;
}

.box-grid-item-style-3 {
    min-height: 592px;
}

.box-grid-item-style-2 .box-grid-image,
.box-grid-item-style-3 .box-grid-image {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
}

.box-grid-item-style-2 .box-grid-image img,
.box-grid-item-style-3 .box-grid-image img {
    width: 48px;
    height: 48px;
    display: block;
    border-radius: 0;
    object-fit: contain;
}

/* Separator line for Style 2 & 3 */
.box-grid-item-style-2 .box-grid-separator,
.box-grid-item-style-3 .box-grid-separator {
    width: 100%;
    height: 1px;
    background-color: #8f8d8f;
    margin: 0 0 20px 0;
    margin-bottom: 40px;
    display: block;
}

/* Content */
.box-grid-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title */
.box-grid-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 44px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 27px 0;
    line-height: 1.2;
}

/* Style 2 & 3 Title Override */
.box-grid-item-style-2 .box-grid-title,
.box-grid-item-style-3 .box-grid-title {
    font-size: 32px;
}

/* Style 3 Title Padding */
.box-grid-item-style-3 .box-grid-title {
    padding-right: 2px;
}

/* Paragraph */
.box-grid-paragraph {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 24px;
    line-height: 34px;
    color: #ffffff;
    margin: 0;
}

.box-grid-item-style-2 .box-grid-paragraph,
.box-grid-item-style-3 .box-grid-paragraph {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1199px) {
    .box-grid-columns-4,
    .box-grid-columns-5,
    .box-grid-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .box-grid-columns-3,
    .box-grid-columns-4,
    .box-grid-columns-5,
    .box-grid-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .box-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .box-grid-item {
        padding: 24px;
    }
    
    .box-grid-title {
        font-size: 36px;
    }
    
    .box-grid-paragraph {
        font-size: 20px;
        line-height: 28px;
    }
    .box-grid-item-style-3 {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .box-grid {
        grid-template-columns: 1fr;
    }
    .box-grid-item-style-3 {
        min-height: auto;
    }
}
