/*
Theme Name: Your Medical Hub
Theme URI: https://yourmedicalhub.in
Author: Rahil Mohammad
Author URI: https://rahilmohammad.in
Description: Your Medical Hub is a modern, clean, and fully responsive WordPress theme crafted for medical students and educators. Optimized for fast performance and mobile-first design, it’s ideal for sharing study materials, notes, guides, and medical resources. AdSense-ready and easy to customize.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yourmedicalhub
Tags: responsive, medical, education, clean, fast, adsense-ready, mobile-first, learning, students
*/



/* --------------------------------------------------
style.css (core styles)
-------------------------------------------------- */
:root{
    --primary:#0099cc; /* medical blue */
    --accent:#28a745; /* fresh green */
    --muted:#7a8a93;
    --bg:#f7f9fb;
    --card-bg:#ffffff;
    --max-width:1200px;
    --radius:12px;
}

/* Global */
*{box-sizing:border-box;}
html, body{height:100%;}
body{
    font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin:0;
    background: var(--bg);
    color: #0b1721;
    line-height:1.6;
}
a{color:var(--primary);text-decoration:none;transition:0.3s;}
a:hover{color:var(--accent);}
.container{width:94%;max-width:var(--max-width);margin:0 auto;}

/* Header Base */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

/* Inner Flex Layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: auto;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text .site-title {
    font-size: 22px;
    font-weight: 700;
    color: #0056D2;
    margin: 0;
}

.brand-text .site-tag {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Navigation Menu */
.menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li a {
    font-size: 16px;
    text-decoration: none;
    color: #333;
    padding-bottom: 5px;
    transition: 0.3s;
}

.menu li a:hover {
    color: #0056D2;
    border-bottom: 2px solid #0056D2;
}

/* Mobile Toggle Button */
.mobile-toggle {
    background: none;
    border: none;
    display: none;
    font-size: 22px;
}

/* Ticker Section */
.latest-posts-ticker {
    background: linear-gradient(90deg, #0056D2, #0a7bff);
    color: white;
    padding: 8px 0;
    overflow: hidden;
}

.ticker-label {
    font-weight: bold;
    padding-left: 20px;
    margin-right: 10px;
    font-size: 14px;
}

.ticker-wrapper {
    overflow: hidden;
}

.ticker-content {
    display: flex;
    gap: 40px;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

@keyframes ticker-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        background: white;
        flex-direction: column;
        position: absolute;
        top: 65px;
        right: 0;
        width: 80%;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .menu {
        flex-direction: column;
        gap: 15px;
    }

    .mobile-toggle {
        display: block;
    }

    .header-inner {
        padding: 10px 15px;
    }
}




.menu-link{padding:8px 12px;border-radius:8px;font-weight:600;color:var(--muted);}
.menu-link:hover{background:rgba(0,0,0,0.05);color:var(--primary);}
.search-wrap{margin-left:12px;}

/* Hero */
.hero{display:grid;grid-template-columns:1fr 420px;gap:24px;align-items:center;padding:28px 0;}
.hero-card{
    background:var(--card-bg);
    border-radius:var(--radius);
    padding:24px;
    box-shadow:0 8px 25px rgba(0,0,0,0.06);
    transition:0.3s;
}
.hero-card:hover{box-shadow:0 12px 30px rgba(0,0,0,0.08);}
.hero h1{margin:0 0 10px;font-size:1.7rem;color:var(--primary);}
.hero p{margin:0 0 14px;color:var(--muted);font-size:1rem;}
.cta-group{display:flex;gap:12px;align-items:center;}
.btn{background:var(--primary);color:#fff;padding:10px 16px;border-radius:10px;border:0;font-weight:700;transition:0.3s;}
.btn:hover{opacity:0.9;}
.btn.secondary{background:transparent;color:var(--primary);border:2px solid rgba(0,153,204,0.2);}
.quick-links{display:flex;gap:10px;flex-wrap:wrap;}
.badge{background:rgba(0,153,204,0.08);color:var(--primary);padding:6px 10px;border-radius:8px;font-weight:600;font-size:0.85rem;}

/* Quick Info / Banner */
.quick-info {
    max-width: var(--max-width);
    margin: 20px auto; /* center horizontally */
    padding: 22px;
    border-radius: 12px;
    background: #e6f7ff;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.info-card h2{font-size:1.7rem;color:var(--primary);margin-bottom:10px;font-weight:700;}
.info-card p{color:#0b1721;margin-bottom:14px;font-size:1rem;}
.quick-links a{margin:0 6px;padding:10px 16px;font-size:0.95rem;border-radius:8px;font-weight:600;}
.quick-links a.btn.small{background:var(--primary);color:#fff;}
.quick-links a.btn.small.secondary{background:transparent;color:var(--primary);border:2px solid var(--primary);}

/* Posts Grid */
.posts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}
.card{
    background:var(--card-bg);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:0 6px 20px rgba(0,0,0,0.04);
    display:flex;
    flex-direction:column;
    transition:0.3s;
}
.card:hover{box-shadow:0 10px 28px rgba(0,0,0,0.08);}
.card .thumb{width:100%;height:180px;overflow:hidden;border-bottom:1px solid rgba(0,0,0,0.05);}
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:0.3s;}
.card .thumb img:hover{transform:scale(1.05);}
.card .body{padding:14px;flex:1;display:flex;flex-direction:column;}
.card .category{display:inline-block;padding:6px 10px;border-radius:999px;background:rgba(40,167,69,0.08);color:var(--accent);font-weight:700;font-size:0.78rem;margin-bottom:8px;}
.card h3{margin:0 0 8px 0;font-size:1.1rem;color:#0b1721;}
.card p{margin:0;color:var(--muted);font-size:0.92rem;}
.card .meta{margin-top:auto;font-size:0.82rem;color:var(--muted);display:flex;justify-content:space-between;align-items:center;}

/* Sidebar */
.sidebar{background:transparent;}
.widget{background:var(--card-bg);padding:14px;border-radius:12px;margin-bottom:18px;box-shadow:0 6px 18px rgba(0,0,0,0.03);}
.widget h3{margin:0 0 10px 0;color:var(--primary);font-weight:700;}
.ad-placeholder{display:block;border-radius:8px;overflow:hidden;}

/* Latest Posts Ticker */
.latest-posts-ticker{
    display:flex;
    align-items:center;
    gap:12px;
    overflow:hidden;
    background:#f0f8ff;
    border-radius:10px;
    padding:6px 12px;
    margin:24px 0;
    border:1px solid #cce7ff;
}
.ticker-label{flex:0 0 auto;font-weight:700;color:var(--primary);margin-right:12px;}
.ticker-wrapper{flex:1 1 auto;overflow:hidden;position:relative;}
.ticker-content{display:flex;gap:24px;white-space:nowrap;animation:ticker-scroll 25s linear infinite;}
.ticker-item{flex:0 0 auto;color:#0077aa;text-decoration:none;font-weight:500;transition:color 0.3s;}
.ticker-item:hover{color:var(--accent);}
@keyframes ticker-scroll{0%{transform:translateX(0);}100%{transform:translateX(-50%);}}

/* Footer */
.footer {
    width: 100%;
    background: #0099cc;
    color: #fff;
    padding: 28px 12px;
    margin-top: 40px;
    font-size: 0.95rem;
    border-radius: 0; /* full width, no box */
    box-shadow: none;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto; /* content center */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Footer Menu - Clean & Horizontal */


.footer-right a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.footer-right a:hover {
    color: #ffeb3b; /* hover color */
}

/* Agar wp_nav_menu ke li <li> aa rahe ho */
.footer-right li {
    list-style: none; /* remove bullets */
    margin: 0;
    padding: 0;
    display: inline; /* horizontal alignment */
}


.footer a{color:#fff;text-decoration:none;font-weight:600;transition:0.3s;}
.footer a:hover{color:#ffeb3b;}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;}
.footer-left,.footer-center,.footer-right{flex:1 1 auto;min-width:180px;}
.footer-center{text-align:center;}
.footer-right{display:flex;justify-content:flex-end;gap:12px;}
.designer-link{font-weight:700;text-decoration:underline;}

/* Responsive */
@media(max-width:992px){
    .hero{grid-template-columns:1fr;}
    .posts-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));}
    .grid-wrap{grid-template-columns:1fr;}
}
@media(max-width:576px){
    .header-inner{flex-direction:column;align-items:flex-start;gap:10px;}
    .nav{width:100%;justify-content:flex-start;}
    .mobile-toggle{display:block;}
    .footer-inner{flex-direction:column;align-items:center;text-align:center;}
    .footer-right{justify-content:center;}
}

/* Single Article Grid */
.single-section .grid-wrap{
    display:grid;
    grid-template-columns:3fr 1fr;
    gap:28px;
    margin:30px 0;
}
.single-article{
    background:#fff;
    padding:28px;
    border-radius:14px;
    box-shadow:0 12px 30px rgba(0,0,0,0.06);
}
.article-title{font-size:2rem;color:var(--primary);margin-bottom:12px;font-weight:700;}
.post-meta{font-size:0.88rem;color:var(--muted);margin-bottom:20px;}

/* Table of Contents */
.toc{background:#e6f7ff;padding:16px 20px;border-radius:12px;margin-bottom:24px;border-left:4px solid var(--primary);}
.toc strong{color:var(--primary);}
.toc ul{list-style:none;padding:0;margin:10px 0 0;}
.toc li{margin-bottom:8px;}
.toc a{color:var(--accent);text-decoration:none;font-weight:500;}
.toc a:hover{color:var(--primary);text-decoration:underline;}

/* Sidebar Sticky */
.sticky-sidebar{
    position: sticky;
    top:120px; /* adjust based on header height */
}

/* Recent Posts Card */
.recent-posts-widget .recent-post-card{
    display:flex;
    align-items:center;
    gap:12px;
    padding:8px;
    margin-bottom:12px;
    border-radius:10px;
    background:#f0f8ff;
    transition:0.3s;
    text-decoration:none;
}
.recent-posts-widget .recent-post-card:hover{
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
    background:#e0f0ff;
}
.recent-post-left img.recent-thumb{
    width:60px;
    height:60px;
    border-radius:10px;
    object-fit:cover;
}
.recent-no-thumb{
    width:60px;
    height:60px;
    border-radius:10px;
    background:#ccc;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:0.75rem;color:#fff;
}
.recent-post-right h4{
    margin:0;font-size:0.95rem;color:var(--primary);line-height:1.2;
}

/* Categories Widget */
.sidebar .widget ul{list-style:none;padding:0;margin:0;}
.sidebar .widget ul li{margin-bottom:10px;}
.sidebar .widget ul li a{color:var(--accent);transition:0.3s;font-weight:500;}
.sidebar .widget ul li a:hover{color:var(--primary);text-decoration:underline;}

/* Responsive */
@media(max-width:992px){
    .single-section .grid-wrap{grid-template-columns:1fr;}
    .sticky-sidebar{position:static;top:auto;}
}


/* Modern Comments */
.modern-comments .comment-list{list-style:none;padding:0;margin:0;}
.modern-comments .comment{
    border-left:4px solid var(--primary);
    padding:12px 16px;
    margin-bottom:16px;
    border-radius:8px;
    background:#f7f9fb;
    box-shadow:0 4px 12px rgba(0,0,0,0.04);
}
.modern-comments .comment-author{font-weight:600;color:var(--primary);}
.modern-comments .comment-meta{font-size:0.78rem;color:var(--muted);margin-bottom:6px;}
.modern-comments .comment-content p{margin:0;line-height:1.6;}
.modern-comments .reply{font-size:0.8rem;color:var(--accent);text-decoration:none;margin-top:6px;display:inline-block;}
.modern-comments .reply:hover{color:var(--primary);}

/* Comment Form */
.modern-comments #commentform{display:flex;flex-direction:column;gap:12px;margin-top:20px;}
.modern-comments #commentform input,
.modern-comments #commentform textarea{
    width:100%;
    padding:10px 14px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:0.9rem;
}
.modern-comments #submit{
    background:var(--primary);
    color:#fff;
    padding:10px 18px;
    border-radius:10px;
    border:none;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}
.modern-comments #submit:hover{opacity:0.9;}

/* Responsive */
@media(max-width:992px){
    .single-section .grid-wrap{grid-template-columns:1fr;}
    .sidebar{flex-direction:row;overflow-x:auto;gap:12px;}
    .sidebar .widget{flex:0 0 auto;min-width:200px;}
}

/* Mobile Menu */
@media(max-width:768px){
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        display: none; /* hidden by default */
        padding: 12px 0;
        gap: 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }
    .nav.open {
        display: flex;
    }
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    .nav a {
        padding: 12px 18px;
        width: 100%;
    }
    .mobile-toggle {
        display: block;
        cursor: pointer;
        color: var(--primary);
    }
}
