/*
Theme Name: Trah Musidi Minah V2
Author: Ariv MJ
Version: 2.3
Description: Portal Keluarga Besar Mbah Musidi dan Mbah Minah
*/

/* ==================================================
   GLOBAL
================================================== */

body{
    background:#f5efe6;
    font-family:'Segoe UI',sans-serif;
    color:#333;
    line-height:1.7;
}

.container{
    max-width:1200px;
}

a{
    color:#5a3d1e;
    text-decoration:none;
}

a:hover{
    color:#8b5e34;
}

/* ==================================================
   HEADER
================================================== */

.site-header{
    background:#ffffff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:999;
}

.site-header .navbar-brand{
    font-weight:700;
}

/* ==================================================
   HERO HOME
================================================== */

.hero-family{
    background:#5a3d1e;
    color:white;
    padding:100px 20px;
    text-align:center;
}

.hero-family h1{
    font-size:48px;
    font-weight:700;
    margin-bottom:20px;
}

.hero-family p{
    max-width:700px;
    margin:auto;
}

.hero-family .btn{
    padding:12px 24px;
    border-radius:10px;
    font-weight:600;
}

/* ==================================================
   CARD GLOBAL
================================================== */

.family-card,
.stat-card,
.branch-card,
.member-card{
    background:#ffffff;
    border-radius:15px;
    padding:25px;
    box-shadow:0 3px 15px rgba(0,0,0,.08);
    transition:all .25s ease;
}

.family-card:hover,
.stat-card:hover,
.branch-card:hover,
.member-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

/* ==================================================
   STATISTIK
================================================== */

.stat-card{
    text-align:center;
}

.stat-card h2{
    font-size:42px;
    font-weight:700;
    color:#5a3d1e;
}

.stat-card p{
    margin:0;
}

/* ==================================================
   PENDIRI KELUARGA
================================================== */

.founder-box{
    background:#f8f5ef;
    padding:40px;
    border-radius:15px;
    text-align:center;
    border:2px solid #d7c2a5;
}

/* ==================================================
   CABANG KELUARGA
================================================== */

.branch-card{
    text-align:center;
    font-weight:600;
    background:#f8f5ef;
}

/* ==================================================
   ANGGOTA TERBARU
================================================== */

.member-card{
    text-align:center;
}

.member-card h5{
    margin:0;
}

.member-card a{
    font-weight:600;
}

/* ==================================================
   QUICK MENU
================================================== */

.quick-menu{
    background:#f8f5ef;
    padding:50px;
    border-radius:15px;
    text-align:center;
}

/* ==================================================
   PROFIL ANGGOTA
================================================== */

.family-card h1{
    color:#5a3d1e;
    margin-bottom:20px;
}

.family-card h3{
    margin-top:30px;
    color:#5a3d1e;
}

/* ==================================================
   SILSILAH KELUARGA
================================================== */

.tree-wrapper{
    overflow-x:auto;
    padding:30px;
}

.tree-root{
    text-align:center;
    margin-bottom:50px;
    font-size:28px;
    font-weight:bold;
}

.tree-root a{
    color:#5a3d1e;
}

.tree-generation{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:40px;
}

.tree-node{
    background:#f8f5ef;
    border:2px solid #c9b28a;
    border-radius:12px;
    padding:12px 20px;
    min-width:180px;
    text-align:center;
    box-shadow:0 3px 8px rgba(0,0,0,.08);
    transition:.25s;
}

.tree-node:hover{
    transform:translateY(-2px);
}

.tree-node a{
    color:#5a3d1e;
    font-weight:600;
}

.tree-level{
    list-style:none;
    padding-left:40px;
    margin-top:15px;
}

.tree-level li{
    margin:10px 0;
}

.tree-member{
    display:inline-block;
    padding:10px 20px;
    background:#f8f5ef;
    border:1px solid #c9b28a;
    border-radius:10px;
}

/* ==================================================
   DASHBOARD KELUARGA
================================================== */

.dashboard-box{
    background:white;
    border-radius:15px;
    padding:25px;
    box-shadow:0 3px 15px rgba(0,0,0,.08);
    margin-bottom:20px;
}

.dashboard-box h3{
    margin-bottom:15px;
}

/* ==================================================
   TABEL
================================================== */

table{
    width:100%;
    background:white;
}

table th{
    background:#5a3d1e;
    color:white;
}

table th,
table td{
    padding:12px;
    border:1px solid #ddd;
}

/* ==================================================
   FOOTER
================================================== */

.site-footer{
    background:#5a3d1e;
    color:white;
    text-align:center;
    padding:30px;
    margin-top:50px;
}

/* ==================================================
   MOBILE
================================================== */

@media(max-width:768px){

    .hero-family{
        padding:70px 20px;
    }

    .hero-family h1{
        font-size:34px;
    }

    .tree-generation{
        overflow-x:auto;
        flex-wrap:nowrap;
        justify-content:flex-start;
        padding-bottom:10px;
    }

    .tree-node{
        flex:0 0 auto;
        min-width:180px;
    }

}
/* ===========================
   SILSILAH V2.4
=========================== */

.tree-root{
text-align:center;
margin-bottom:40px;
}

.tree-root a{
display:inline-block;
padding:15px 30px;
background:#5a3d1e;
color:#fff;
border-radius:12px;
font-size:24px;
font-weight:bold;
text-decoration:none;
}

.tree-generation{
display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;
margin-bottom:40px;
position:relative;
}

.tree-node{
background:#fff;
border:2px solid #d9c29c;
border-radius:12px;
padding:15px;
min-width:180px;
text-align:center;
box-shadow:0 3px 10px rgba(0,0,0,.1);
transition:.2s;
}

.tree-node:hover{
transform:translateY(-3px);
}

.tree-node a{
text-decoration:none;
font-weight:600;
color:#5a3d1e;
}

.tree-generation:before{
content:'';
position:absolute;
top:-20px;
left:50%;
width:2px;
height:20px;
background:#c9b28a;
}

@media(max-width:768px){

.tree-generation{
flex-direction:column;
align-items:center;
}

.tree-node{
width:90%;
}

}