/*
 Theme Name: BeSmart Computer Education
 Theme URI: https://besmartcomputer.com
 Description: Modern child theme for BeSmart (offline courses + notes)
 Author: Jeet Sanwal
 Version: 1.0
*/

/* ==== COLOR SYSTEM ==== */
:root {
    --bs-dark: #05070d;
    --bs-dark-alt: #0b1020;
    --bs-gold: #f2b544;
    --bs-blue: #1e6fff;
    --bs-white: #ffffff;
    --bs-text: #e3e7ff;
    --bs-muted: #9aa3c0;
    --bs-radius-lg: 18px;
    --bs-radius-sm: 10px;
    --bs-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.4);
}

/* ==== GLOBAL ==== */
body {
    background: radial-gradient(circle at top, #10152b 0, #05070d 55%, #020308 100%);
    color: var(--bs-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--bs-blue);
    text-decoration: none;
}

a:hover {
    color: var(--bs-gold);
}

/* Limit main content width */
.site,
#page {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==== HEADER ==== */
.bsmart-header {
    background: linear-gradient(90deg, rgba(5, 7, 13, 0.95), rgba(10, 17, 40, 0.98));
    border-bottom: 1px solid rgba(242, 181, 68, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 999;
    backdrop-filter: blur(16px);
    position: static;                 /* sticky hata diya */
    top: auto;
}

.bsmart-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bsmart-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bsmart-logo-wrap img {
    height: 32px;
    width: auto;
}

.bsmart-site-title {
    display: flex;
    flex-direction: column;
}

.bsmart-site-title .title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--bs-white);
}

.bsmart-site-title .tagline {
    font-size: 0.8rem;
    color: var(--bs-muted);
}

/* Menu */
.bsmart-main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.bsmart-main-nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.bsmart-main-nav li a {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 0.92rem;
    color: var(--bs-text);
    transition: all 0.2s ease-out;
}

.bsmart-main-nav li.current-menu-item a,
.bsmart-main-nav li a:hover {
    background: radial-gradient(circle at top, rgba(242, 181, 68, 0.25), transparent 55%);
    color: var(--bs-white);
}

/* CTA in header */
.bsmart-header-cta {
    border-radius: 999px;
    padding: 8px 16px;
    border: 1px solid rgba(242, 181, 68, 0.7);
    color: var(--bs-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bsmart-header-cta span.dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #22c55e;
}

/* ==== HERO SECTION (HOME) ==== */
.bsmart-hero {
    padding: 70px 20px 40px;
}

.bsmart-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
}

.bsmart-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--bs-muted);
}

.bsmart-pill span.highlight {
    color: var(--bs-gold);
    font-weight: 600;
}

.bsmart-hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 16px 0 12px;
    color: var(--bs-white);
}

.bsmart-hero h1 span {
    color: var(--bs-gold);
}

.bsmart-hero-sub {
    font-size: 0.98rem;
    color: var(--bs-muted);
    max-width: 540px;
}

.bsmart-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.bsmart-badge {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--bs-text);
}

/* Hero Buttons */
.bsmart-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 10px;
}

.btn-bsmart-primary,
.btn-bsmart-ghost {
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-bsmart-primary {
    background: linear-gradient(135deg, #f2b544, #f97316);
    color: #111827;
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.45);
}

.btn-bsmart-primary:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.btn-bsmart-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--bs-text);
}

.btn-bsmart-ghost:hover {
    border-color: var(--bs-gold);
}

/* Hero Right Card */
.bsmart-hero-card {
    background: radial-gradient(circle at top, rgba(30, 64, 175, 0.45), rgba(15, 23, 42, 0.98));
    border-radius: 24px;
    padding: 20px 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--bs-shadow-soft);
}

.bsmart-hero-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--bs-white);
}

.bsmart-hero-card small {
    color: var(--bs-muted);
    font-size: 0.78rem;
}

.bsmart-hero-card-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.bsmart-hero-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
}

.bsmart-hero-item span.key {
    font-size: 0.9rem;
    color: var(--bs-text);
}

.bsmart-hero-item span.value {
    font-size: 0.82rem;
    color: var(--bs-gold);
}

.bsmart-hero-note {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--bs-muted);
}

/* ==== SECTIONS COMMON ==== */
.bsmart-section {
    padding: 32px 20px 10px;
}

.bsmart-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.bsmart-section-title {
    font-size: 1.2rem;
    color: var(--bs-white);
}

.bsmart-section-sub {
    font-size: 0.85rem;
    color: var(--bs-muted);
}

/* Cards grid */
.bsmart-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bsmart-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--bs-radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 16px 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.bsmart-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--bs-white);
}

.bsmart-card p {
    font-size: 0.88rem;
    color: var(--bs-muted);
}

/* Latest posts (notes / blog) */
.bsmart-post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bsmart-post-item {
    padding: 12px 12px;
    background: rgba(15, 23, 42, 0.92);
    border-radius: var(--bs-radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.bsmart-post-item a.post-title {
    font-size: 0.96rem;
    color: var(--bs-white);
    display: block;
    margin-bottom: 6px;
}

.bsmart-post-meta {
    font-size: 0.78rem;
    color: var(--bs-muted);
}

/* ==== FOOTER ==== */
.bsmart-footer {
    margin-top: 40px;
    padding: 30px 20px 18px;
    background: radial-gradient(circle at top, #0b1120, #020308 70%);
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.bsmart-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.2fr;
    gap: 30px;
}

.bsmart-footer h4 {
    color: var(--bs-gold);
    font-size: 0.98rem;
    margin-bottom: 8px;
}

.bsmart-footer p,
.bsmart-footer a {
    font-size: 0.85rem;
    color: var(--bs-muted);
}

.bsmart-footer a:hover {
    color: var(--bs-gold);
}

.bsmart-footer-bottom {
    max-width: 1200px;
    margin: 18px auto 0;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.78rem;
    color: var(--bs-muted);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
    .bsmart-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bsmart-header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bsmart-main-nav {
        display: none; /* yahan baad me mobile menu bana sakte hain */
    }

    .bsmart-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bsmart-footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .bsmart-grid-3,
    .bsmart-post-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .bsmart-hero {
        padding-top: 50px;
    }

    .bsmart-hero h1 {
        font-size: 1.9rem;
    }
}
<style>
<style>
/* ==== BeSmart HTML Tags Table – Mobile Friendly ==== */

.tags-table-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 20px auto 40px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0edff 0%, #f9fafb 40%, #e5ecff 100%);
    border: 1px solid #bfdbfe;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);

    /* IMPORTANT: scroll if content is wide */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* main table */
.tags-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* columns ko squeeze karega, breakout nahi hone dega */
    font-size: 0.9rem;
}

/* header row – sticky hata diya (mobile me glitch hota hai) */
.tags-table thead th {
    background: #0f172a;
    color: #e5e7eb;
    text-align: left;
    padding: 10px 10px;
    border-bottom: 2px solid #1d4ed8;
    font-weight: 600;
}

/* body cells */
.tags-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #dbeafe;
    vertical-align: top;
    color: #111827; /* dark text */
}

/* zebra rows */
.tags-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.98);
}
.tags-table tbody tr:nth-child(even) {
    background: rgba(191, 219, 254, 0.35);
}

/* code / pre inside table */
.tags-table pre,
.tags-table code {
    background: #020617;
    color: #e5e7eb;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.78rem;

    /* IMPORTANT: long code break + wrap kare */
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
}

/* thoda column guidance, but hard width nahi */
.tags-table thead th:nth-child(1) { width: 20%; }  /* Tag */
.tags-table thead th:nth-child(2) { width: 22%; }  /* Description */
.tags-table thead th:nth-child(3) { width: 32%; }  /* Instructions */
.tags-table thead th:nth-child(4) { width: 34%; }  /* Example */

/* responsive tweaks */
@media (max-width: 768px) {
     .bsmart-header-inner {
        justify-content: space-between;
    }

    .bsmart-site-title .tagline {
        display: none;                
    }
    .bsmart-site-title .title {
    display: none;  
        
    }

    .bsmart-header-cta {
        padding: 6px 10px;
        font-size: 0.72rem;
    }
    .tags-table-wrapper {
        margin: 16px 0 28px;
        padding: 8px;
        border-radius: 10px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
    }

    .tags-table {
        font-size: 0.78rem;
    }

    .tags-table th,
    .tags-table td {
        padding: 6px 6px;
    }
}


</style>
