/* ===============================
   DAFAM GUEST DIRECTORY
   MODERN CLEAN VERSION
================================ */


*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    min-height:100vh;
    background:#ffffff;
    overflow-x:hidden;
}

/* ===============================
   HOME
================================ */

.container{
    width:100%;
    min-height:100vh;
    background:#0a56a8;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:30px;
}

.logo{
    margin-bottom:50px;
}

.logo img{
    width:220px;
    max-width:100%;
}

.menu{
    width:100%;
    max-width:420px;
}

.menu a{
    display:block;
    width:100%;
    text-align:center;
    text-decoration:none;
    color:#fff;
    border:2px solid rgba(255,255,255,.7);
    border-radius:50px;
    padding:15px;
    margin-bottom:16px;
    font-size:15px;
    font-weight:600;
    transition:.3s;
}

.menu a:hover{
    background:#fff;
    color:#0a56a8;
}

.social{
    margin-top:30px;
    display:flex;
    gap:15px;
}

.social a{
    width:42px;
    height:42px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.8);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.social a:hover{
    background:#fff;
    color:#0a56a8;
}

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

.page{
    display:none;
    width:100%;
    min-height:100vh;
    background:#ffffff;
    padding:25px;
    overflow-y:auto;
}

.page.active{
    display:block;
}

/* ===============================
   DIRECTORY
================================ */

.back{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#0a56a8;
    font-weight:600;
    cursor:pointer;
    margin-bottom:25px;
}

.page h1{
    font-size:38px;
    font-weight:700;
    color:#0a56a8;
    line-height:1.1;
}

.page h2{
    color:#888;
    font-size:20px;
    font-weight:400;
    margin-bottom:30px;
}

.directory{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
    max-width:1000px;
    margin:auto;
}

.directory-item{
    background:#fff;
    border:1px solid #e9eef5;
    border-radius:20px;
    padding:20px;
    transition:.3s;
}

.directory-item:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 30px rgba(0,0,0,.06);
}

.directory-number{
    width:48px;
    height:48px;
    border-radius:14px;
    background:#eef5ff;
    color:#0a56a8;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:18px;
    margin-bottom:12px;
}

.directory-item h3{
    color:#0a56a8;
    margin-bottom:8px;
    font-size:18px;
}

.directory-item p{
    color:#666;
    font-size:14px;
    line-height:1.7;
}

/* ===============================
   TV CHANNEL
================================ */

.tv-page{
    background:#fff;
    width:100%;
    padding:0;
}

.tv-header{
    position:sticky;
    top:0;
    z-index:100;
    background:#fff;
    border-bottom:1px solid #edf2f7;
    padding:20px 25px;
    display:flex;
    align-items:center;
    gap:15px;
}

.back-btn{
    width:45px;
    height:45px;
    border-radius:50%;
    background:#f4f7fb;
    color:#0a56a8;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
}

.tv-header h1{
    color:#0a56a8;
    font-size:32px;
    margin:0;
}

.tv-header p{
    margin:0;
    color:#666;
}

.search-box{
    padding:20px;
}

.search-box input{
    width:100%;
    border:none;
    background:#f5f7fb;
    border-radius:16px;
    padding:16px 20px;
    font-size:15px;
    outline:none;
}

.channel-grid{
    padding:0 20px 30px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
}

.channel-card{
    background:#fff;
    border-radius:20px;
    padding:22px;
    text-align:center;
    border:1px solid #edf2f7;
    transition:.3s;
}

.channel-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,.06);
}

.channel-card span{
    width:55px;
    height:55px;
    border-radius:50%;
    background:#0a56a8;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
    margin-bottom:12px;
    font-weight:700;
}

.channel-card h3{
    font-size:14px;
    color:#333;
    line-height:1.4;
}

/* Guest Directory */
#directory .directory {
    padding: 25px;
}

/* ===============================
   TABLET
================================ */

@media(min-width:768px){

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

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

}

/* ===============================
   DESKTOP
================================ */

@media(min-width:1200px){

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

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

}
