
*, *::before, *::after {
    box-sizing: border-box;
}

/* ============================================================
   Typography (Bootstrap-like base)
   ============================================================ */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
    margin-top: 20px;
    margin-bottom: 10px;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

p {
    margin: 0 0 10px;
}

a {
    color: #B35800;
    text-decoration: none;
}
a:hover, a:focus {
    color: #8a4400;
    text-decoration: underline;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}
.container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}
.navbar .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 50px;
}
.navbar-header {
    display: flex;
    align-items: center;
}
.navbar-brand {
    display: block;
    padding: 15px;
    font-size: 18px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
}
.navbar-toggle {
    display: none;
    padding: 9px 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}
.icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: white;
    margin: 4px 0;
}
.navbar-collapse {
    flex: 1;
}
.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar-nav > li > a {
    display: block;
    padding: 15px;
    text-decoration: none;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 767px) {
    .navbar-toggle { display: block; }
    .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.2s ease;
    }
    .navbar-collapse.in { max-height: 500px; }
    .navbar-nav { flex-direction: column; }
}

/* Navbar theme */
.navbar-inverse {
    background-color: darkslategray;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,.26);
}
.navbar-inverse .navbar-brand {
    color: white;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
    color: darkorange;
    background-color: transparent;
}
.navbar-inverse .navbar-nav > li > a {
    color: white;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: darkorange;
    background-color: transparent;
}

/* ============================================================
   Panels
   ============================================================ */
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-radius: 3px 3px 0 0;
}
.panel-default > .panel-heading {
    border-color: bisque;
    background-color: white;
    box-shadow: 0 2px 2px rgb(0 0 0 / 5%);
}
.panel-body {
    padding: 15px;
}
.panel-footer {
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    border-radius: 0 0 3px 3px;
    background-color: #f5f5f5;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.btn:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
    color: #333;
    text-decoration: none;
}
.btn a {
    text-decoration: none;
}

body {
    background-color: beige;
    background-origin: content-box;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding-top: 75px;
    font-size: 18px;
}

img {
    max-width: 100%;
    border-color: silver;
    border-style: solid;
    border-width: thin;
    border-radius: 4px;
}

code {
    padding: 2px 4px;
    font-size: 90%;
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 4px;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow-x: auto;
}

pre code {
    padding: 0;
    font-size: inherit;
    color: inherit;
    white-space: pre;
    background-color: transparent;
    border-radius: 0;
}

blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    border-left: 5px solid #eee;
    font-size: 17px;
    color: #555;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 10px;
    padding-left: 30px;
}

.viewPost{
    color: #B35800;
    font-weight: 800;
}

.viewPost a {
    color: #B35800;
}

/* custom table styling */
table {  
    color: #333; 
    border-collapse: 
    collapse; border-spacing: 0; 
}

td, th {  
    border: 1px solid silver;
    padding: 5px;
}

th {  
    background: #DFDFDF;  /* Darken header a bit */
    font-weight: bold;
}

td {  
    background: #FAFAFA;
}

/* Cells in even rows (2,4,6...) are one color */        
tr:nth-child(even) td { background: #F1F1F1; }   

/* Cells in odd rows (1,3,5...) are another (excludes header cells)  */        
tr:nth-child(odd) td { background: #FEFEFE; }  

.post-excerpt {
    overflow-x: auto;
}

.panel-footer {
    height: 67px;
}

.panel-footer .tweet {
    float:left;
    width: 76px;
    height: 28px;
}

.panel-footer .logo {
    float:right;
    width: 113px;
    height: 84px;
}

.panel-giscus {
    margin: 18px;
}

/* ============================================================
   Two-column page layout (main + sidebar)
   ============================================================ */
.page-with-sidebar {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .page-with-sidebar {
        flex-direction: column;
    }
    .sidebar {
        width: 100% !important;
    }
    .sidebar-card {
        position: static !important;
    }
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.sidebar-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid #B35800;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #222;
}

.sidebar-tagline {
    font-size: 15px;
    color: #B35800;
    font-weight: 600;
    margin: 0 0 10px;
}

.sidebar-bio {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: left;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.1s ease;
    border: none;
}

.sidebar-link:hover {
    text-decoration: none;
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.sidebar-link-linkedin {
    background: #0077b5;
    color: #fff !important;
}

.sidebar-link-github {
    background: #24292e;
    color: #fff !important;
}

.sidebar-link-sessionize {
    background: #1ab394;
    color: #fff !important;
}

.sidebar-link-books {
    background: #e8590c;
    color: #fff !important;
}

.sidebar-badges {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 14px;
}

.sidebar-badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sidebar-badge-item:hover {
    text-decoration: none;
    opacity: 0.85;
}

.sidebar-badge {
    width: 100%;
    height: auto;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none;
}

.sidebar-badge-label {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sidebar-about-link {
    display: inline-block;
    font-size: 15px;
    color: #B35800;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-about-link:hover {
    text-decoration: underline;
}

/* ============================================================
   Post cards (blog listing)
   ============================================================ */
.post-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #B35800;
    margin-bottom: 18px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.post-card-header {
    padding: 16px 20px 4px;
}

.post-date {
    display: inline-block;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.post-card .post-title {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

.post-card .post-title a {
    color: #B35800;
    text-decoration: none;
}

.post-card .post-title a:hover {
    text-decoration: underline;
    color: #8a4400;
}

.post-card-body {
    padding: 6px 20px 16px;
}

.post-excerpt-text {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 15px;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.post-tag {
    background: #f5f0eb;
    color: #7a4400;
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 12px;
    border: 1px solid #e8d9c8;
    text-decoration: none;
    transition: background-color 0.15s;
}

.post-tag:hover {
    background: #ead9c4;
    text-decoration: none;
    color: #5a3000;
}

.read-more-link {
    color: #B35800;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.read-more-link:hover {
    text-decoration: underline;
    color: #8a4400;
}

/* ============================================================
   Post page header
   ============================================================ */
.post-meta-header {
    font-size: 13px;
    color: #999;
    margin: 0 0 6px;
    font-weight: 500;
}

.post-meta-header time {
    font-weight: 600;
    color: #B35800;
}