/* ===== Aibeige Classic Theme - Inspired by Monevator ===== */

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  word-break: break-word;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Body ---------- */
body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 30px;
  color: #111111;
  background-color: #fff;
  padding-top: 30px;
}

a {
  color: #2361a1;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Container ---------- */
.outer {
  width: 100%;
}

.inner {
  width: 1024px;
  margin: 0 auto;
  padding: 0;
}

/* ---------- Top Navigation Bar ---------- */
.topnav {
  background: #f8f8f8;
  border-bottom: 1px solid #dddddd;
  text-align: right;
  padding: 5px 30px;
  font-size: 13px;
  line-height: 22px;
}
.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topnav li {
  display: inline;
  margin: 0;
}
.topnav a {
  color: #555;
  text-decoration: none;
  padding: 0 2px;
}
.topnav a:hover {
  color: #2361a1;
}

/* ---------- Header (Monevator-style logo) ---------- */
.site-header {
  border-bottom: 3px double #dddddd;
  padding: 25px 30px;
  position: relative;
}
.header-logo-wrap {
  position: relative;
}
.site-logo-link {
  display: inline-block;
  text-decoration: none;
}
.site-logo-img {
  max-width: 100%;
  height: auto;
  display: block;
}
.site-title-text {
  font-size: 56px;
  line-height: 1.2em;
  font-weight: bold;
  color: #4a5a62;
  letter-spacing: -0.02em;
}
.site-tagline {
  position: absolute;
  top: 8px;
  right: 0;
  font-size: 17px;
  color: #777777;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.4em;
  max-width: 280px;
  text-align: left;
}

/* ---------- Navigation ---------- */
.nav-wrap {
  position: relative;
  border-bottom: 1px solid #dddddd;
}
.site-nav {
  position: relative;
  z-index: 50;
  list-style: none;
  border-width: 0 0 1px 1px;
  border-style: solid;
  border-color: #dddddd;
  margin: 0;
  padding: 0;
}
.site-nav li {
  position: relative;
  float: left;
  margin-bottom: -1px;
}
.site-nav a {
  display: block;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111111;
  background-color: #eeeeee;
  padding: 9px 14px;
  border-width: 1px 1px 1px 0;
  border-style: solid;
  border-color: #dddddd;
  text-decoration: none;
}
.site-nav a:hover {
  background-color: #dddddd;
}
.site-nav .nav-current a {
  border-bottom-color: white;
  background-color: white;
  cursor: text;
}

/* Sub-menus */
.site-nav .sub-menu {
  display: none;
  position: absolute;
  z-index: 110;
  left: -1px;
  list-style: none;
  border-color: #dddddd;
  margin-top: -1px;
  background: white;
}
.site-nav .sub-menu li {
  width: 178px;
  clear: both;
}
.site-nav .sub-menu a {
  border-left-width: 1px;
}
.site-nav li:hover > .sub-menu {
  display: block;
}

/* Mobile menu control */
.menu-control {
  display: none;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111111;
  background-color: #eeeeee;
  padding: 9px 14px;
  border: 1px solid #dddddd;
  cursor: pointer;
}

/* ---------- Follow / Social Bar ---------- */
.follow-bar {
  padding: 10px 30px;
  border-bottom: 1px solid #dddddd;
  text-align: center;
  font-size: 13px;
  line-height: 22px;
}
.follow-bar .follow-text {
  color: #111111;
  font-weight: bold;
  margin-right: 8px;
}
.follow-bar a {
  color: #555;
  text-decoration: none;
  margin: 0 3px;
}
.follow-bar a:hover {
  color: #2361a1;
}
.follow-bar img {
  display: inline;
  vertical-align: middle;
}

/* ---------- Two-Column Layout ---------- */
.content-wrap {
  display: flex;
  box-sizing: border-box;
  border-bottom: 1px solid #dddddd;
}
.content-area {
  box-sizing: border-box;
  width: 704px;
  float: left;
  border-right: 1px solid #dddddd;
  padding: 30px;
}
.sidebar-area {
  box-sizing: border-box;
  width: 320px;
  float: right;
  padding: 30px;
}

/* Clearfix */
.content-wrap::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Post Cards (Homepage) ---------- */
.post-card {
  border-bottom: 1px dotted #dddddd;
  padding-bottom: 30px;
  margin-bottom: 30px;
}
.post-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.post-card .post-image {
  float: right;
  margin: 0 0 15px 20px;
  width: 250px;
}
.post-card .post-image img {
  width: 100%;
  height: auto;
}
.post-card .post-title {
  font-size: 32px;
  line-height: 48px;
  color: #1d4ba1;
  margin: 0 0 5px;
  font-weight: normal;
}
.post-card .post-title a {
  color: #1d4ba1;
  text-decoration: none;
}
.post-card .post-title a:hover {
  color: #2361a1;
}
.post-card .post-meta {
  font-size: 14px;
  line-height: 25px;
  color: #888888;
  margin-bottom: 12px;
}
.post-card .post-meta a {
  color: #888;
}
.post-card .post-excerpt {
  font-size: 18px;
  line-height: 30px;
}
.post-card .post-excerpt p {
  margin-bottom: 19px;
}

/* ---------- Single Post ---------- */
.post-header {
  margin-bottom: 30px;
}
.post-header h1 {
  font-size: 32px;
  line-height: 48px;
  color: #1d4ba1;
  font-weight: normal;
  margin: 0;
}
.post-header .post-meta {
  font-size: 14px;
  line-height: 25px;
  color: #888888;
  margin-top: 5px;
}
.post-featured-image {
  margin-bottom: 30px;
}
.post-featured-image img {
  width: 100%;
  height: auto;
}

/* ---------- Post Content (Golden Ratio Typography) ---------- */
.post-content h2 {
  font-size: 29px;
  line-height: 44px;
  color: #1d4ba1;
  margin-top: 49px;
  margin-bottom: 19px;
  font-weight: normal;
}
.post-content h3 {
  font-size: 23px;
  line-height: 36px;
  color: #1d4ba1;
  margin-top: 42px;
  margin-bottom: 12px;
  font-weight: normal;
}
.post-content h4 {
  font-size: 18px;
  line-height: 30px;
  font-weight: bold;
  margin-bottom: 7px;
  color: #1d4ba1;
}
.post-content h5, .post-content h6 {
  font-size: 18px;
  line-height: 30px;
  font-weight: bold;
  margin-bottom: 7px;
}
.post-content p {
  margin-bottom: 19px;
}
.post-content p a {
  text-decoration: underline;
}
.post-content p a:hover {
  text-decoration: none;
}
.post-content ul, .post-content ol {
  margin-bottom: 19px;
  padding-left: 30px;
}
.post-content ul {
  list-style-type: square;
}
.post-content li {
  margin-bottom: 7px;
}
.post-content blockquote {
  color: #888888;
  padding-left: 19px;
  border-left: 1px solid #dddddd;
  margin: 0 0 19px;
}
.post-content blockquote p {
  margin-bottom: 0;
}
.post-content pre {
  font-family: Consolas, Menlo, Monaco, Courier, Verdana, sans-serif;
  font-size: 16px;
  background-color: #eeeeee;
  padding: 19px;
  border-left: 7px solid rgba(0,0,0,0.15);
  overflow-x: auto;
  margin-bottom: 19px;
}
.post-content code {
  font-family: Consolas, Menlo, Monaco, Courier, Verdana, sans-serif;
  font-size: 16px;
  background-color: rgba(0,0,0,0.08);
  padding: 4px 5px;
  border-radius: 7px;
  margin: 0 1px;
}
.post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}
.post-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 19px;
}
.post-content th, .post-content td {
  border: 1px solid #dddddd;
  padding: 8px;
  text-align: left;
}
.post-content th {
  background-color: #eeeeee;
  font-weight: bold;
}
.post-content img {
  max-width: 100%;
  height: auto;
  margin: 0 auto 19px;
}
.post-content .kg-image-card {
  margin-bottom: 19px;
}
.post-content .kg-image-card img {
  margin-bottom: 0;
}
.post-content .kg-caption {
  font-size: 14px;
  line-height: 25px;
  color: #888888;
  text-align: center;
  margin-top: 5px;
}
.post-content hr {
  border: none;
  border-top: 1px dotted #dddddd;
  margin: 30px 0;
}
.post-content .dropcap:first-letter {
  font-size: 60px;
  line-height: 1em;
  margin-right: 12px;
  float: left;
}

/* ---------- Tags & Footer Meta ---------- */
.post-tags {
  font-size: 14px;
  line-height: 25px;
  color: #888888;
  padding-top: 30px;
  border-top: 1px dotted #dddddd;
  margin-top: 30px;
}
.post-tags a {
  color: #888888;
}
.post-tags a:hover {
  color: #2361a1;
}

/* ---------- Author Bio ---------- */
.author-bio {
  padding: 19px;
  background: #f8f8f8;
  border: 1px solid #dddddd;
  margin-top: 30px;
}
.author-bio .author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  float: left;
  margin-right: 19px;
}
.author-bio .author-name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 5px;
}
.author-bio .author-name a {
  color: #111;
  text-decoration: none;
}
.author-bio .author-bio-text {
  font-size: 16px;
  line-height: 26px;
  color: #555;
}
.author-bio::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Comments ---------- */
.post-comments {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px dotted #dddddd;
}

/* ---------- Pagination ---------- */
.pagination {
  padding: 30px;
  text-align: center;
  font-size: 14px;
  line-height: 25px;
  border-top: 1px solid #dddddd;
}
.pagination a {
  color: #2361a1;
}
.pagination .page-number {
  color: #888;
}

/* ---------- Sidebar ---------- */
.sidebar-section {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 26px;
}
.sidebar-section:last-child {
  margin-bottom: 0;
}
.sidebar-title {
  font-size: 18px;
  line-height: 30px;
  font-weight: bold;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid #dddddd;
}
.sidebar-section p {
  margin-bottom: 12px;
}
.sidebar-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-section li {
  margin-bottom: 5px;
}
.sidebar-section li a {
  color: #2361a1;
  text-decoration: none;
}
.sidebar-section li a:hover {
  text-decoration: underline;
}
.sidebar-section img {
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px;
  text-align: center;
  font-size: 14px;
  line-height: 25px;
  color: #888888;
  border-top: 3px double #dddddd;
}
.site-footer a {
  color: #888888;
}
.site-footer a:hover {
  color: #2361a1;
}
.site-footer .footer-nav {
  list-style: none;
  margin-bottom: 10px;
}
.site-footer .footer-nav li {
  display: inline;
  margin: 0 5px;
}

/* ---------- Error Pages ---------- */
.error-page {
  text-align: center;
  padding: 60px 30px;
}
.error-code {
  font-size: 100px;
  font-weight: bold;
  color: #ddd;
}
.error-message {
  font-size: 24px;
  color: #888;
  margin-bottom: 30px;
}

/* ---------- Tag & Author Pages ---------- */
.page-header {
  padding: 30px;
  border-bottom: 1px solid #dddddd;
}
.page-header h1 {
  font-size: 32px;
  line-height: 48px;
  color: #1d4ba1;
  font-weight: normal;
}
.page-header p {
  font-size: 18px;
  color: #888;
  margin-top: 5px;
}

/* ---------- Ghost Specific ---------- */
.kg-width-wide {
  margin-left: -50px;
  margin-right: -50px;
}
.kg-width-full {
  margin-left: -30px;
  margin-right: -30px;
}
.kg-bookmark-card {
  margin-bottom: 19px;
}
.kg-bookmark-container {
  display: flex;
  border: 1px solid #dddddd;
  text-decoration: none;
  color: #111;
}
.kg-bookmark-content {
  flex: 1;
  padding: 19px;
}
.kg-bookmark-title {
  font-weight: bold;
  margin-bottom: 5px;
}
.kg-bookmark-description {
  font-size: 14px;
  line-height: 22px;
  color: #888;
}
.kg-bookmark-metadata {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}
.kg-bookmark-thumbnail img {
  width: 200px;
  height: auto;
}

/* ---------- Tables (Monevator style) ---------- */
.post-content table.Mon_Table td {
  border: 1px solid #ccc;
  padding: 8px;
  font-size: 15px;
}
.post-content .Tab_Rowhead td {
  background: #eee;
  font-weight: bold;
}
.post-content .Tab_RowheadLeft {
  background: #eee;
  font-weight: bold;
}
.post-content .Tab_ColGeneralLeft {
  font-weight: normal;
}
.post-content .montabcaption {
  font-size: 13px;
  line-height: 20px;
  color: #888;
  margin-top: -15px;
  margin-bottom: 19px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .inner {
    width: 100%;
    padding: 0;
  }
  .content-area {
    width: 100%;
    float: none;
    border-right: none;
  }
  .sidebar-area {
    width: 100%;
    float: none;
  }
}

@media (max-width: 800px) {
  body {
    padding-top: 15px;
    font-size: 16px;
    line-height: 27px;
  }
  .site-header {
    padding: 20px;
  }
  .site-title {
    font-size: 32px;
  }
  .content-area {
    padding: 20px;
  }
  .sidebar-area {
    padding: 20px 20px 30px;
    border-top: 1px solid #dddddd;
  }
  .post-card .post-image {
    width: 100%;
    float: none;
    margin: 0 0 15px 0;
  }
  .post-card .post-title {
    font-size: 26px;
    line-height: 38px;
  }
  .post-content h2 {
    font-size: 24px;
    line-height: 36px;
    margin-top: 36px;
  }
  .post-content h3 {
    font-size: 20px;
    line-height: 30px;
    margin-top: 30px;
  }
  .kg-width-wide,
  .kg-width-full {
    margin-left: 0;
    margin-right: 0;
  }
  .kg-bookmark-container {
    flex-direction: column;
  }
  .kg-bookmark-thumbnail img {
    width: 100%;
  }
  .site-nav {
    display: none;
  }
  .site-nav.open {
    display: block;
  }
  .site-nav li {
    float: none;
    width: 100%;
  }
  .site-nav .sub-menu {
    position: static;
    display: none;
  }
  .site-nav li:hover > .sub-menu {
    display: none;
  }
  .site-nav .sub-menu.open {
    display: block;
  }
  .menu-control {
    display: block;
  }
  .topnav {
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 15px;
  }
  .site-title {
    font-size: 26px;
  }
  .content-area {
    padding: 15px;
  }
  .post-card .post-title {
    font-size: 22px;
    line-height: 32px;
  }
  .post-content h2 {
    font-size: 22px;
    line-height: 32px;
  }
  .follow-bar {
    font-size: 12px;
  }
}
.tool-card { border:1px solid #e0e0e0; border-radius:8px; padding:20px; margin-bottom:20px; background:#f9f9f9; }
.tool-card h3 { margin-top:0; margin-bottom:8px; }
.tool-card p { margin-bottom:0; color:#666; }
