/*==================================================
  COMPLIANCEATLAS - MYTHS PAGE
==================================================*/

:root{

    --bg:#111827;
    --surface:#ffffff;
    --surface2:#f9fafc;

    --primary:#1358b8;
    --primary-dark:#0d4694;

    --text:#1f2937;
    --muted:#6b7280;

    --border:#dde5ef;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --radius:18px;

    --transition:.25s ease;

    --max-width:1300px;

    --header-bg:rgba(17,24,39,.92);

}

/*========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    text-decoration: none;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: Arial, sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.6;
}




/* ============== New  menu ==============*/


.site-header{
position:fixed;
top:0;
left:0;
width:100%;
z-index:9999;

background:var(--header-bg);
backdrop-filter:blur(12px);

border-bottom:1px solid rgba(255,255,255,.12);
}

.nav-container{
max-width:1400px;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;
padding:12px 18px;
}

/* Desktop Menu */

.nav-links{
display:flex;
gap:10px;
list-style:none;
}

.nav-links a{
color:#f9fafb;

padding:9px 16px;
border-radius:999px;

border:1px solid rgba(255,255,255,.10);

background:rgba(255,255,255,.03);

transition:
transform .25s ease,
background .25s ease,
border-color .25s ease,
box-shadow .25s ease;
}

/* Hover animation */

.nav-links a:hover{
transform:translateY(-2px);

background:rgba(59,130,246,.18);

border-color:rgba(96,165,250,.5);

box-shadow:
0 0 12px rgba(59,130,246,.35);
}

/* Active page */

.nav-links a.active{
background:#3b82f6;
border-color:#3b82f6;
}

/* ======================================================
   MOBILE MENU BUTTON
====================================================== */

.menu-toggle{
display:none;
flex-direction:column;
gap:5px;
cursor:pointer;
}

.menu-toggle span{
width:26px;
height:3px;
background:white;
border-radius:3px;
transition:.3s;
}

/* ======================================================
   MOBILE RESPONSIVE
====================================================== */

@media (max-width:768px){

.menu-toggle{
display:flex;
}

.nav-links{

display:none;

position:fixed;

top:72px;

left:0;

right:0;

width:100%;

padding:15px;

background:#111827;

flex-direction:column;

gap:8px;

z-index:9999;

}

.nav-links.show{
display:flex;
}

.nav-links a{
width:100%;
text-align:center;
}
}

/* =================menu end=================*/


/* ============== logo ========================= */


.logo{

display:flex;

align-items:center;

gap:18px;

color:white;

}



.logo-box{

width:54px;

height:54px;

background:#C9A227;

border-radius:16px;

display:flex;

align-items:center;

justify-content:center;

font-weight:900;

font-size:1.3rem;

color:#081A33;

}



.logo h2{

margin:0;

font-size:1.3rem;

}



.logo span{

font-size:.8rem;

opacity:.7;

}





/*========================
HERO
=========================*/

.hero{

    background: linear-gradient(135deg,#1358b8,#1d79d8);

    color:white;

    padding:70px 20px;

    text-align:center;

    margin-top: 20px;

}

.hero-content{

    max-width:900px;

    margin:auto;

}

.hero h1{

    font-size:3rem;

    margin-bottom:15px;

    font-weight:800;

}

.hero p{

    font-size:1.15rem;

    opacity:.95;

}

/*========================*/

.page{

    width:min(
    var(--max-width),
    94%);

    margin:auto;

    padding:40px 0 80px;

}

/*========================
TOOLBAR
=========================*/

.toolbar{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

    align-items:center;

    margin-bottom:25px;

}

.search-wrap{

    flex:1;

}

.search-wrap input{

    width:100%;

    padding:16px 20px;

    border:1px solid var(--border);

    border-radius:14px;

    background:white;

    font-size:1rem;

    transition:var(--transition);

}

.search-wrap input:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:
    0 0 0 4px
    rgba(19,88,184,.15);

}

#randomBtn{

    padding:15px 24px;

    border:none;

    border-radius:14px;

    background:var(--primary);

    color:white;

    cursor:pointer;

    transition:var(--transition);

}

#randomBtn:hover{

    background:var(--primary-dark);

}

/*========================
FILTERS
=========================*/

.categories{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    margin-bottom:30px;

}

.filter{

    border:none;

    background:white;

    border:1px solid var(--border);

    padding:11px 18px;

    border-radius:999px;

    cursor:pointer;

    transition:var(--transition);

    font-size:.95rem;

}

.filter:hover{

    transform:translateY(-2px);

}

.filter.active{

    background:var(--primary);

    color:white;

    border-color:var(--primary);

}

/*========================
STATS
=========================*/

.stats{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(150px,1fr));

    gap:15px;

    margin-bottom:35px;

}

.stat{

    background:white;

    border-radius:var(--radius);

    padding:22px;

    text-align:center;

    box-shadow:var(--shadow);

}

.stat span{

    display:block;

    font-size:2rem;

    color:var(--primary);

    font-weight:800;

}

.stat small{

    color:var(--muted);

}

/*========================
GRID
=========================*/

#mythsContainer{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(350px,1fr));

    gap:25px;

}

/*========================
CARD
=========================*/

.myth-card{

    background:white;

    border-radius:var(--radius);

    padding:25px;

    box-shadow:var(--shadow);

    display:flex;

    flex-direction:column;

    transition:var(--transition);

}

.myth-card:hover{

    transform:translateY(-5px);

}

.card-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:15px;

}

.category{

    display:inline-block;

    background:#e8f1ff;

    color:var(--primary);

    padding:5px 12px;

    border-radius:999px;

    font-size:.8rem;

    margin-bottom:12px;

    font-weight:600;

}

.title{

    font-size:1.25rem;

    margin-bottom:15px;

}

.bookmark{

    border:none;

    background:none;

    cursor:pointer;

    font-size:1.5rem;

}

.myth-label,
.truth-label{

    font-size:.78rem;

    letter-spacing:2px;

    color:var(--muted);

    font-weight:700;

    margin-bottom:8px;

}

.myth-text{

    margin-bottom:20px;

}

.reveal{

    background:var(--primary);

    color:white;

    border:none;

    border-radius:12px;

    padding:13px;

    cursor:pointer;

    transition:var(--transition);

}

.reveal:hover{

    background:var(--primary-dark);

}

.truth-panel{

    display:none;

    margin-top:25px;

    border-top:1px solid var(--border);

    padding-top:20px;

    animation:fade .3s ease;

}

.truth-panel.show{

    display:block;

}

.truth-text{

    margin-bottom:18px;

}

.card-footer{

    display:flex;

    justify-content:space-between;

    margin-top:30px;

}

.card-footer button{

    border:none;

    background:var(--surface2);

    padding:10px 18px;

    border-radius:10px;

    cursor:pointer;

    transition:var(--transition);

}

.card-footer button:hover{

    background:#e8edf5;

}

/*========================*/

#emptyState{

    text-align:center;

    padding:80px 20px;

    color:var(--muted);

}

/*========================
FLOAT BUTTON
=========================*/

.floating-actions{

    position:fixed;

    bottom:22px;

    right:22px;

}

#topBtn{

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:white;

    font-size:1.2rem;

    cursor:pointer;

    box-shadow:var(--shadow);

}

/*========================*/

.footer{

    padding:45px 20px;

    text-align:center;

    color:var(--muted);

}

/*========================
ANIMATION
=========================*/

@keyframes fade{

    from{

        opacity:0;
        transform:translateY(10px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/*========================
TABLET
=========================*/

@media(max-width:900px){

    .hero h1{

        font-size:2.4rem;

    }

    #mythsContainer{

        grid-template-columns:1fr;

    }

}

/*========================
PHONE
=========================*/

@media(max-width:600px){

    .hero{

        padding:55px 20px;

    }

    .hero h1{

        font-size:2rem;

    }

    .toolbar{

        flex-direction:column;

    }

    #randomBtn{

        width:100%;

    }

    .card-footer{

        flex-direction:column;

        gap:10px;

    }

    .card-footer button{

        width:100%;

    }

    .stats{

        grid-template-columns:1fr;

    }

}

@media (max-width:768px){

.nav-links li{
    width:100% !important;
}

.nav-links a{
    display:block !important;
    width:100% !important;
}

}
