/*
Theme Name: LAW PRO
Theme URI: https://mahizhini.com
Author: Ramasamy Adityan S R K
Author URI: https://mahizhini.com
Description: Legal Q&A Community Theme
Version: 5.3
License: Mahizhini Innovations N Infotainments (India)
*/

/* PASTE YOUR FULL CSS BELOW */
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* GLOBAL */
body {
    background: #f5f7fb;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 15px 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.tagline {
    font-size: 13px;
    opacity: 0.8;
}

/* USER MENU */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: #fff;
    color: #000;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dropdown-menu a {
    display: block;
    padding: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* NAVBAR */
.navbar {
    margin-top: 15px;
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar li {
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.navbar li:hover {
    background: rgba(255,255,255,0.1);
}

/* CONTAINER */
.container {
    padding: 20px 30px;
    max-width: 1200px;
    margin: auto;
    width: 100%;
}

/* WIDGET GRID */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.widget {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.widget:hover {
    transform: translateY(-5px);
}

/* POSTS GRID */
.post-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.post-card:hover {
    transform: translateY(-3px);
}

.post-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 12px;
    color: #777;
}

/* FOOTER MENUS */
.footer {
    background: #1e293b;
    color: #fff;
    padding: 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.footer h4 {
    margin-bottom: 10px;
}

.footer a {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    opacity: 0.8;
}

.footer {
    background: #1e293b;
    color: #fff;
    padding: 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.footer h4 {
    margin-bottom: 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
}

/* FIX MENU OUTPUT */
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: #cbd5f5;
    font-size: 14px;
    transition: 0.3s;
}

.footer a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    background: #0f172a;
    font-size: 13px;
}

/* COPYRIGHT */
.footer-bottom {
    text-align: center;
    padding: 15px;
    background: #0f172a;
    font-size: 13px;
}

/* RESPONSIVE */
@media(max-width:768px){
    .navbar ul {
        flex-wrap: wrap;
    }
}

/* NOTIFICATIONS */
.notif-count {
    color: #fff;
    background: red;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
}

.post-column h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.lawqa-table {
    width: 100%;
    border-collapse: collapse;
}

.lawqa-table th, .lawqa-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.lawqa-table th {
    background: #1e293b;
    color: #fff;
}

.profile-menu{
list-style:none;
padding:0;
margin:10px 0;
}

.profile-menu li{
margin:5px 0;
}

.profile-menu a{
text-decoration:none;
color:#333;
display:block;
padding:6px 0;
}

.profile-menu a:hover{
color:#0A2A66;
}

.dashboard{
display:flex;
gap:20px;
padding:40px;
}

.dashboard-sidebar{
width:250px;
background:white;
padding:20px;
border-radius:10px;
}

.dashboard-sidebar ul{
list-style:none;
padding:0;
}

.dashboard-sidebar li{
margin:10px 0;
}

.dashboard-sidebar a{
text-decoration:none;
color:#333;
}

.dashboard-content{
flex:1;
background:white;
padding:20px;
border-radius:10px;
}

.mhz-locked {
    position: relative;
    margin-top: 20px;
}

.mhz-preview {
    margin-bottom: 15px;
    font-size: 15px;
    color: #444;
}

.mhz-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.mhz-lock-overlay {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.mhz-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #0f172a;
    color: #fff;
    border-radius: 5px;
}

.lock-badge {
    background: red;
    color: #fff;
    font-size: 12px;
    position: absolute;
    padding: 4px 8px;
    border-radius: 6px;
}

#mhzSubscribeModal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {opacity:0; transform:translateY(-20px);}
    to {opacity:1; transform:translateY(0);}
}

.mhz-dashboard {
    max-width: 900px;
    margin: auto;
}

.mhz-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.mhz-badge.active {
    background: green;
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
}

.mhz-table {
    width: 100%;
    border-collapse: collapse;
}

.mhz-table th, .mhz-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.status-approved { color: green; }
.status-pending { color: orange; }
.status-rejected { color: red; }