/* ===========================
   S.O.M.S. Case Study Theme
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#111827;
    color:#f8fafc;
    line-height:1.8;
}

/* ===========================
   Container
=========================== */

.container{
    width:min(1280px,92%);
    margin:0 auto;
    padding:60px 40px 100px;
}

/* ===========================
   PAGE HEADER
=========================== */

.page-header{
    display:flex;
    flex-direction:column;
    align-items:flex-start;

    gap:18px;

    margin-bottom:36px;

    padding-bottom:35px;

    border-bottom:1px solid #374151;
}

.page-header h1{
    font-size:3rem;
    font-weight:700;
    line-height:1.2;
}

.page-header p{
    color:#94a3b8;
    font-size:1.1rem;
}

.industry{
    display:inline-block;

    background:#d4a373;

    color:white;

    padding:8px 18px;

    border-radius:999px;

    font-size:.85rem;

    font-weight:600;
}

/* ===========================
   Back Button
=========================== */

.back-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;

    padding:10px 18px;

    margin-bottom:20px;

    background:transparent;

    border:1px solid #374151;

    border-radius:10px;

    color:#cbd5e1;

    text-decoration:none;

    font-weight:600;

    transition:.25s;
}

.back-btn:hover{
    background:#d4a373;

    border-color:#d4a373;

    color:white;

    transform:translateY(-2px);
}

/* ===========================
   Sections
=========================== */

section{
    background:#1f2937;

    border:1px solid #374151;

    border-radius:18px;

    padding:34px;

    margin-bottom:35px;
}

section h2{
    color:#d4a373;

    margin-bottom:25px;

    font-size:1.7rem;
}

section h3{
    margin-top:25px;

    margin-bottom:10px;
}

/* ===========================
   Dashboard
=========================== */

section img{
    width:100%;

    border-radius:12px;

    box-shadow:0 18px 40px rgba(0,0,0,.45);
}

/* ===========================
   Lists
=========================== */

ul{
    padding-left:22px;
}

li{
    margin-bottom:12px;
}

/* ===========================
   Table
=========================== */

table{
    width:100%;

    border-collapse:collapse;

    overflow:hidden;

    border-radius:10px;
}

th{
    background:#d4a373;

    color:white;
}

td,th{
    padding:15px;

    border-bottom:1px solid #374151;

    text-align:left;
}

tr:nth-child(even){
    background:#273244;
}

/* ===========================
   Footer
=========================== */

footer{
    margin-top:80px;

    padding-top:40px;

    border-top:1px solid #374151;

    text-align:center;
}

/* ===========================
   Hover Animation
=========================== */

section{
    transition:.3s;
}

section:hover{
    transform:translateY(-4px);
}

/* ===========================
   Responsive
=========================== */

@media(max-width:768px){

    .page-header h1{
        font-size:2rem;
    }

    .container{
        width:92%;
    }

    section{
        padding:25px;
    }
}

/* =====================================================
   CASE STUDY LAYOUT
===================================================== */

.case-layout{
    display:grid;

    grid-template-columns:260px minmax(0,1fr);

    gap:50px;

    align-items:start;

    margin-top:20px;
}

/* =====================================================
   SIDEBAR
===================================================== */

.case-sidebar{
    position:sticky;

    top:30px;

    align-self:start;

    background:#1f2937;

    border:1px solid #374151;

    border-radius:18px;

    padding:28px;

    height:fit-content;
}

.case-sidebar h3{
    color:#d4a373;

    margin-bottom:25px;
}

.case-sidebar a{
    display:block;

    padding:9px 14px;

    margin-bottom:4px;

    text-decoration:none;

    color:#cbd5e1;

    font-size:.95rem;

    border-left:3px solid transparent;

    border-radius:8px;

    transition:all .25s ease;
}

.case-sidebar a:hover{
    background:#2b3748;

    border-left:3px solid #d4a373;

    color:white;

    padding-left:22px;
}

/* =====================================================
   CONTENT
===================================================== */

.case-content{
    min-width:0;

    max-width:900px;
}

.case-content section{
    scroll-margin-top:90px;
}

/* =====================================================
   MOBILE
===================================================== */

@media(max-width:900px){

    .case-layout{
        grid-template-columns:1fr;
    }

    .case-sidebar{
        position:relative;

        top:0;

        margin-bottom:35px;
    }

}

.project-navigation{
    display:flex;

    justify-content:center;

    gap:30px;

    margin-top:25px;
}

.project-navigation a{
    text-decoration:none;

    color:#d4a373;

    font-weight:600;

    transition:.3s;
}

.project-navigation a:hover{
    color:white;
}
