/* ===============================
   GLOBAL RESET
================================ */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}
body{
    background:#f5f7fb;
    color:#333;
}
a{
    text-decoration:none;
}
.container{
    width:90%;
    max-width:1100px;
    margin:auto;
}

/* ===============================
   FRONTEND HEADER & TOPBAR
================================ */
.topbar-frontend{
    background:#0061d0;
    color:#fff;
    font-size:13px;
    padding:6px 0;
}
.topbar-frontend .container{
    display:flex;
    justify-content:space-between;
}

@media(max-width:800px){
    header{
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    header .logo{
        justify-content: center !important;
        margin-bottom: 10px;
    }

    header nav{
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 1px !important;
    }

    header nav a{
        padding: 4px 8px;
        font-size: 12px;
        font-family:Georgia;
        line-height: 1.2;
    }
}


/* ===============================
   HERO SECTION
================================ */
.hero{
    position:relative;
    width:100%;
    height:380px;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.55)
    );
}

.hero-content{
    position:relative;
    text-align:center;
    color:#fff;
    z-index:2;
}

.hero-content h1{
    font-size:42px;
    font-weight:700;
    margin-bottom:10px;
}

.hero-content p{
    font-size:18px;
    opacity:.9;
}


/* ===============================
   ANNOUNCEMENT BAR
================================ */
.announcement-bar{
    background:linear-gradient(90deg,#ff512f,#dd2476);
    color:#fff;
    padding:10px 0;
    overflow:hidden;
}
.announcement-text{
    white-space:nowrap;
    display:inline-block;
    padding-left:100%;
    animation:scrollText 15s linear infinite;
}
@keyframes scrollText{
    0%{transform:translateX(0);}
    100%{transform:translateX(-100%);}
}

/* ===============================
   HOME CARDS (SERVICES / PRODUCTS)
================================ */
.grid{
    display:grid;
    
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}
.card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}
.card img{
    width:100%;
    height:180px;
    object-fit:contain;
}
.card h3{
    padding:10px 15px;
}
.section-title{
    text-align:center;
    font-size:32px;
    font-weight:700;
    color:red;
    margin-top:30px;
    margin-bottom:30px;
    position:relative;
}

.section-title::after{
    content:'';
    width:60px;
    height:4px;
    background:#4f7cff;
    display:block;
    margin:10px auto 0;
    border-radius:2px;
}

.card p{
    padding:0 15px;
    font-size:14px;
    color: #ff512f;

}
.card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

/* Read More Button */
.btn-readmore{
    display:inline-block;
    margin:10px 15px 15px;
    padding:10px 18px;
    background:linear-gradient(135deg,#4f7cff,#365edc);
    color:#fff;
    border-radius:25px;
    font-size:14px;
    font-weight:600;
}


/* ===============================
   ADMIN PANEL LAYOUT
================================ */
.admin-wrapper{
    display:flex;
    min-height:100vh;
    background:#f1f4f9;
}
.sidebar{
    width:230px;
    background:#1e2a38;
    color:#fff;
    padding:20px;
}
.sidebar a{
    display:block;
    color:#cfd8e3;
    padding:10px;
    border-radius:6px;
}
.sidebar a:hover{
    background:#4f7cff;
    color:#fff;
}
.main{
    flex:1;
    padding:25px;
}

/* ===============================
   ADMIN BOX
================================ */
.admin-box{
    background:#fff;
    padding:25px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    max-width:600px;
    margin-bottom:30px;
}
.admin-box input,
.admin-box textarea,
.admin-box select{
    width:100%;
    padding:12px;
    margin:8px 0;
    border:1px solid #ddd;
    border-radius:6px;
}
.admin-box button{
    background:#4f7cff;
    color:#fff;
    padding:10px 20px;
    border:none;
    border-radius:6px;
}

/* ===============================
   TABLE
================================ */
table{
    width:100%;
    background:#fff;
    border-collapse:collapse;
    border-radius:8px;
}
th{
    background:#4f7cff;
    color:#fff;
    padding:12px;
}
td{
    padding:10px;
    border-bottom:1px solid #eee;
}

/* ===============================
   ACTION BUTTONS
================================ */
.action-btn{
    padding:6px 10px;
    border-radius:4px;
    font-size:13px;
    color:#fff;
}
.action-edit{background:#28a745;}
.action-delete{background:#dc3545;}

/* ===============================
   DASHBOARD STATS
================================ */
.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}
.stat-box{
    color:#fdfdfd;
    padding:25px;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
}
.stat-box h3{
    font-size:34px;
}
.stat-box p{
    opacity:.9;
}

/* Colors */
.stat-messages{background:linear-gradient(135deg,#2bf335,#add34d);}
.stat-services{background:linear-gradient(135deg,#667eea,#764ba2);}
.stat-products{background:linear-gradient(135deg,#43cea2,#185a9d);}
.stat-posts{background:linear-gradient(135deg,#ff758c,#ff7eb3);}
.stat-users{background:linear-gradient(135deg,#f7971e,#ffd200);}
.stat-today-visits{background:linear-gradient(135deg,#ff512f,#dd2476);}
.stat-total-visits{background:linear-gradient(135deg,#1cb5e0,#000851);}

/* =======FOOTER========== */
footer{
    background:#1e2a38;
    color:#fff;
    text-align:center;
    padding:20px;
}
.footer-credit{
    background:#0f172a;
    color:#cbd5f5;
    padding:10px 0;
    text-align:center;
    font-size:13px;
}
.footer-credit a{
    color:#4f7cff;
}

/*==============logo section=================*/
.logo img{
    width: 50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #fff;
    box-shadow:0 2px 6px rgba(0,0,0,.2);
}




/* View More button already tumhare paas hai (.btn-readmore) */
