/* ==========================================
   RESET
========================================== */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    font-size:16px;
    scroll-behavior:smooth;
}

body{
    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    font-size:14px;
    line-height:1.6;
    color:#333;
    background:#fff;

    overflow-x:hidden;

    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

ul,
ol{
    list-style:none;
}

a{
    color:inherit;
    text-decoration:none;
    transition:.3s;
}

img{
    display:block;
    max-width:100%;
    height:auto;
    border:none;
}

button,
input,
textarea,
select{
    font:inherit;
    outline:none;
    border:none;
    background:none;
}

button{
    cursor:pointer;
}

table{
    width:100%;
    border-collapse:collapse;
    border-spacing:0;
}

h1,
h2,
h3,
h4,
h5,
h6{
    font-weight:inherit;
    line-height:1.2;
}

p:last-child{
    margin-bottom:0;
}


/* ==========================================
   ROOT
========================================== */

:root{

    /* Brand */

    --primary:#d71920;
    --primary-hover:#b50f15;

    /* Text */

    --text:#222;
    --text-light:#666;
    --text-gray:#888;

    /* Bg */

    --bg:#ffffff;
    --bg-light:#f7f7f7;

    /* Border */

    --border:#ececec;

    /* Radius */

    --radius:8px;

    /* Shadow */

    --shadow:
        0 10px 30px rgba(0,0,0,.08);

}


/* ==========================================
   CONTAINER
========================================== */

.container-1520{
    max-width:1520px;
    width:100%;
    padding:0 20px;
    margin:0 auto;
}


/* ==========================================
   SECTION
========================================== */

.section{
    padding:
        clamp(50px,5vw,100px)
        0;
}

.section-sm{
    padding:
        clamp(30px,3vw,60px)
        0;
}


/* ==========================================
   TITLE
========================================== */

.section-title{

    font-size:
        clamp(30px,2.5vw,48px);

    font-weight:700;

    line-height:1.2;

    color:var(--text);

}

.section-subtitle{

    margin-top:12px;

    font-size:
        clamp(14px,1vw,18px);

    color:var(--text-gray);

}


/* ==========================================
   FLEX
========================================== */

.d-flex{
    display:flex;
}

.flex-wrap{
    flex-wrap:wrap;
}

.flex-column{
    flex-direction:column;
}

.align-center{
    align-items:center;
}

.justify-center{
    justify-content:center;
}

.justify-between{
    justify-content:space-between;
}

.justify-end{
    justify-content:flex-end;
}


/* ==========================================
   GAP
========================================== */

.gap-10{
    gap:10px;
}

.gap-20{
    gap:20px;
}

.gap-30{
    gap:30px;
}

.gap-40{
    gap:40px;
}


/* ==========================================
   TEXT
========================================== */

.text-center{
    text-align:center;
}

.text-left{
    text-align:left;
}

.text-right{
    text-align:right;
}

.text-primary{
    color:var(--primary);
}

.text-gray{
    color:var(--text-gray);
}

.text-light{
    color:var(--text-light);
}

.text-white{
    color:#fff;
}


/* ==========================================
   BUTTON
========================================== */

.btn-primary{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:180px;

    height:52px;

    padding:0 32px;

    background:var(--primary);

    color:#fff;

    transition:.3s;

}

.btn-primary:hover{

    background:var(--primary-hover);

    color:#fff;

}

.btn-outline{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:180px;

    height:52px;

    padding:0 32px;

    border:1px solid var(--primary);

    color:var(--primary);

}

.btn-outline:hover{

    background:var(--primary);

    color:#fff;

}


/* ==========================================
   CARD
========================================== */

.card-box{

    background:#fff;

    border:1px solid var(--border);

    border-radius:var(--radius);

    transition:.3s;

}

.card-box:hover{

    box-shadow:var(--shadow);

}


/* ==========================================
   IMAGE
========================================== */

.img-cover{
    width:100%;
    height:100%;
    object-fit:cover;
}

.img-contain{
    width:100%;
    height:100%;
    object-fit:contain;
}

.ratio-box{

    position:relative;

    overflow:hidden;

}

.ratio-box::before{

    content:"";

    display:block;

    padding-top:75%;

}

.ratio-box img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

}


/* ==========================================
   ELLIPSIS
========================================== */

.ellipsis{

    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;

}

.ellipsis-2{

    overflow:hidden;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

}

.ellipsis-3{

    overflow:hidden;

    display:-webkit-box;

    -webkit-line-clamp:3;

    -webkit-box-orient:vertical;

}


/* ==========================================
   COMMON
========================================== */

.bg-light{
    background:var(--bg-light);
}

.bg-white{
    background:#fff;
}

.radius{
    border-radius:var(--radius);
}

.shadow{
    box-shadow:var(--shadow);
}

.transition{
    transition:.3s;
}


/* ==========================================
   BOOTSTRAP
========================================== */

.row{
    --bs-gutter-x:30px;
    --bs-gutter-y:30px;
}


/* ==========================================
   MOBILE
========================================== */

@media(max-width:991px){

    html{
        font-size:15px;
    }

    .container-1520{
        padding:0 15px;
    }

    .row{
        --bs-gutter-x:20px;
        --bs-gutter-y:20px;
    }

}

@media(max-width:767px){

    html{
        font-size:14px;
    }

}