/* ============================================
   HOT BRANDS SECTION STYLES
   ============================================ */

#section4.content4 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background-image: url('../../img/burger_bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 배경 오버레이 */
#section4.content4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

/* Header Section - Transparent Background */
#section4 .hb-header {
    background-color: transparent;
    padding: 120px 0 80px 0;
    color: white;
    position: relative;
    z-index: 1;
}

#section4 .hb-title {
    margin-bottom: 0;
}

#section4 .hb-title-sub {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.9;
    color: white;
}

#section4 .hb-title-main {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: white;
}

#section4 .hb-title-desc {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 0;
    color: white;
}

/* Content Section */
#section4 .hb-content {
    position: relative;
    z-index: 1;
    padding: 0 0 100px 0;
}

#section4 .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Grid */
.hb-grid { 
    margin-top: 0; 
}

/* 모든 카드 높이 동일하게 */
.hb-grid .col-12,
.hb-grid .col-md-6,
.hb-grid .col-lg-4 {
    display: flex;
}

.hb-grid .col-12 > .hb-card-new,
.hb-grid .col-md-6 > .hb-card-new,
.hb-grid .col-lg-4 > .hb-card-new {
    width: 100%;
}

/* Card Design - Red Boxes */
.hb-card-new {
    background-color: rgba(183, 0, 2, 0.5);
    border-radius: 20px;
    padding: 50px 40px;
    min-height: 260px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hb-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* 숫자 - 사각형 흰색 배경, 상단 중앙 */
.hb-card-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top:5px;
    border-radius: 7px;
    margin-top: 20px;
    background-color: #fff;
    font-family: 'GmarketSans', sans-serif;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: -0.63px;
    text-align: center;
    color: #ab1f24;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 제목 */
.hb-card-title {
    font-family: 'GmarketSans', sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.17;
    letter-spacing: -0.75px;
    text-align: center;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* 설명 */
.hb-card-desc {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -1px;
    text-align: center;
    color: #fff;
    flex: 1;
}

/* Mobile responsive styles */
@media (max-width: 750px) {
    #section4.content4 {
        background-attachment: scroll;
    }
    
    #section4 .hb-header {
        padding: 80px 0 60px 0;
    }
    
    #section4 .container {
        padding: 0 20px;
    }
    
    #section4 .hb-title-sub {
        font-size: 16px;
    }
    
    #section4 .hb-title-main {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    #section4 .hb-title-desc {
        font-size: 14px;
    }
    
    #section4 .hb-content {
        padding: 0 0 60px 0;
    }
    
    .hb-grid {
        margin-top: 0;
    }
    
    .hb-card-new {
        padding: 45px 30px;
        min-height: 240px;
        border-radius: 40px;
    }
    
    .hb-card-number {
        width: 50px;
        height: 50px;
        font-size: 22px;
        border-radius: 6px;
    }
    
    .hb-card-title {
        font-size: 24px;
        margin-top: 25px;
        margin-bottom: 16px;
    }
    
    .hb-card-desc {
        font-size: 16px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    #section4 .hb-header {
        padding: 60px 0 50px 0;
    }
    
    #section4 .hb-title-sub {
        font-size: 14px;
    }
    
    #section4 .hb-title-main {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    #section4 .hb-title-desc {
        font-size: 13px;
    }
    
    #section4 .hb-content {
        padding: 0 0 50px 0;
    }
    
    .hb-card-new {
        padding: 40px 25px;
        min-height: 220px;
        border-radius: 35px;
    }
    
    .hb-card-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
        border-radius: 5px;
    }
    
    .hb-card-title {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 14px;
    }
    
    .hb-card-desc {
        font-size: 14px;
        line-height: 1.3;
    }
}
