/*
Theme Name: FlatFastSEO
Author: Your Name
Version: 1.0.5
Description: A fast, flat, SEO-friendly theme with widget areas and custom font support.


/* =================== Base Styles =================== */
.layout-one{
	display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: wrap;
    flex-direction: column;
}
@media (max-width: 768px) {
.layout-one{
	display: block;
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: wrap;
}
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Suwannaphum';
  line-height: 1.9;
  color: #333;
  background-color: #f0f0f0;
}

h1 {
		min-height: 45px;
	min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
	min-height:0px
}
.wp-element-caption {
	min-height:0px;
}
/* =================== Layout =================== */
.wrapper {
  max-width: 1200px;
	min-height:0px;
  margin: auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.alignwide,
.alignfull {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
	margin-bottom: 20px;
}

.content {
  min-width: 0;
  background: white;
      padding: 0 30px 10px 30px;
}
@media (max-width: 768px) {
.content {
  min-width: 0;
  background: white;
	padding: 0 20px 10px 20px;
}
}
.articlebody {
  min-height: 0px;
}
div[itemprop="articleBody"] {
	min-height: 0px;
}
.sidebar {
  width: 330px;
  flex-shrink: 0;
  background: white;
}

@media (max-width: 768px) {
  .layout {
    *flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}

/* =================== Structural Elements =================== */
header {
  padding: 0 15px;
  background: white;
  box-sizing: border-box;
}
header {
	margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, .2);
}
main {
	padding: 0 15px;
  background: white;
  box-sizing: border-box;
}
footer {
	padding: 0 15px;
  background: white;
  box-sizing: border-box;
}
aside {
	padding: 0 15px;
  background: white;
  box-sizing: border-box;
}


header.shrink {
  padding: 0 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header.shrink .site-header {
  padding: 0;
}

header.shrink .custom-logo {
  max-height: 50px;
}

/* =================== Header =================== */
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0;
	justify-content: center;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    padding: 0;
  }
}

.site-header {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 150px;
}

.custom-logo {
  *min-height: 30px;
   * min-width: 150px;
}

/* =================== Menus =================== */

/* Desktop Menu */
.desktop-menu {
  margin-left: auto;
}

.desktop-menu ul,
.menu-bottom-menu-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
}

.desktop-menu li,
.menu-bottom-menu-container li {
  display: inline;
	background: #f4f4f4;
	    padding: 0;
}

.desktop-menu a,
.menu-bottom-menu-container a {
  text-decoration: none;
  color: #333;
padding: 0 10px; 
	border-radius: 4px;
  transition: background 0.3s ease;

}

.desktop-menu a:hover,
.menu-bottom-menu-container a:hover {
  background-color: #dfdfdf;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #f5f5f5;
    transition: left 0.3s ease;
    z-index: 99999;
    overflow-y: auto;
    align-items: center;
  }

  .mobile-menu.active {
    left: 0;
  }

  .mobile-menu ul {
    margin-top: 40px;
  }

  .mobile-menu li {
    margin-bottom: 15px;
    background: #eaeaea;
    padding: 3px 12px;
	  list-style: none;
  }

  .mobile-menu a {
    font-size: 18px;
  }

  .close-btn {
    font-size: 24px;
    padding: 10px 15px 0 0;
    cursor: pointer;
    align-self: flex-end;
  }

  .menu-bottom-menu-container ul {
    display: block;
    padding: 4px;
    gap: 10px;
    justify-content: space-around;
  }
}

/* =================== Widgets & Post Layout =================== */
.widget-area {
  margin: 20px 15px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
}
.before-after-post-widget-area {
  background: #fff;
	
}
.before-after-content-widget-area {
  margin: 20px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;	
}

.post-after-widget {
#margin-top: 10px; 
}

.widget-area-right-sidebar {
	margin: 20px 0;
}
.featured-img-post-inside {
  *margin-left: -15px;
  *margin-right: -15px;
}

.post-title-in-post {
  position: relative;
    z-index: 1;
    margin: 0;
    box-shadow: none;
    min-height: 45px;
}
.widget-header {
margin: 0;
    background: #f0f0f0;
    text-align: center;
padding: 10px 0;
}
/* =================== Share + Like =================== */
.post-buttons-wrapper {
  padding: 15px 0;
    margin: auto -30px;
    border-top: 5px solid #f0f0f0;
	*margin-left: -15px;
    *margin-right: -15px;
	min-height: 40px;
}

.post-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
	padding: 0 30px;
}
@media (max-width: 375px) {
  .post-buttons {
    display: flex;
   align-items: center;
   flex-wrap: wrap;
   align-content: space-around;
  gap: 10px;
  flex-direction: column-reverse;
}
}


.left-buttons,
.right-buttons {
	display: inline-block;
  min-width: 100px;
  align-items: center;
}
.post-item-featured {
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-thumbnail-wrapper {
  flex: 0 0 100px;
}

.post-content-wrapper {
  flex-grow: 1;
}

.post-title-link {
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}

.post-excerpt {
  margin-top: 5px;
  color: #444;
  font-size: 16px;
}

.post-icon {
  margin-right: 5px;
  vertical-align: middle;
}

/* =================== Footer =================== */
.menu-bottom-menu-container {
  background: none;
  padding: 0;
}

.bottom-footer {
  color: #fff;
  text-align: center;
}

.bottom-footer a {
  color: #ccc;
  text-decoration: none;
}

.bottom-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.bottom-footer-area {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.footer-left-area,
.footer-right-area {
}

.footer-left-area {
  text-align: left;
}

.footer-right-area {
  text-align: right;
}

@media screen and (max-width: 700px) {
  .footer-left-area,
  .footer-right-area {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}

/* home*/
.home-categories-list {
  margin: 0 auto;
}

.category-title {
  font-size: 1.5rem;
    margin-bottom: 5px;
    padding: 15px 20px;
    background: #d0d0d0;
    text-align: center;
}
.category-post-list {
  padding-left: 0;
}
.category-post-list li {
  margin-bottom: 10px;
}
.category-post-list-posts{
  display: flex;
    align-items: center;
    column-gap: 0.5em;
    font-size: 20px;
    font-weight: 500;
    padding: 15px 10px;
    margin: 5px 0;
    background-color: #f0f0f0;
}

.category-read-more {
  margin-top: 10px;
	padding-right: 10px;
}

.read-more-button {
  display: inline-block;
    padding: 15px 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
    font-size: 19px;
    width: 100%;
    text-align: center;
}
.category-read-more a {
	text-decoration: none;
	
}
.read-more-button:hover {
  background-color: #e8e8e8;
}
.category-post-list-posts a {
  text-decoration: none;
  color: #0001d3; /* change this to match your design */
  transition: color 0.2s ease;
}

.category-post-list-posts a:hover {
  color: #0073aa; /* example hover color */
  text-decoration: underline; /* or keep none if you want */
}
/* Center pagination container */
.pagination {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  gap: 10px;
  flex-wrap: wrap;
}

/* Style each pagination link */
.pagination .page-numbers {
  display: inline-block;
    padding: 8px 14px;
    background-color: #d7d7d7;
    color: #646464;
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

/* Hover effect */
.pagination .page-numbers:hover {
  background-color: #f0f0f0;
}

/* Current page */
.pagination .current {
  background-color: #f0f0f0;
  pointer-events: none;
}

/* Dots (…) */
.pagination .dots {
  background: none;
  color: #444;
  pointer-events: none;
  padding: 8px 12px;
}
.sidebar-recent-post li {
	    padding: 8px 10px;
    margin: 5px 0;
    background-color: #f0f0f0;
	cursor: pointer;
}
.sidebar-recent-post li a {
	text-decoration: none;
	display: block;
	width: 100%;
    height: 100%;
}
.sidebar-recent-post li:hover{
	background-color: #e8e8e8;
}
/* tags cat display after post */
.meta-tags-line {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
	justify-content: center;
	border-top: 2px solid #e0e0e0;
    padding: 20px 0;
}

.meta-tag {
  display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    color: #646464;
    padding: 10px 12px;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.meta-tag:hover {
 background: #e8e8e8;
    color: #000000;
}
/* meta*/
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
	margin-bottom: 10px;
  font-size: 0.95em;
  color: #555;
  align-items: center;
	justify-content: space-evenly;
	border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    padding: 10px 0;
	min-width: 50px;
}
.post-meta-row span {
  min-height:0px;
}
.post-meta-row svg {
  margin-right: 6px;
  fill: gray;
}
.post-related {
	
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
}
.related-posts-bg{
	margin: 0;
}
.list-style-related-qna1 {
	background: #f0f0f0;
}
/* feature image*/
.responsive-figure {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
}

.responsive-figure__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.responsive-figure__overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.responsive-figure__title {
    max-width: 100%;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    padding: 0 20px;
}

/* ====== Responsive adjustments for mobile devices ====== */
@media (max-width: 600px) {
    .responsive-figure__overlay {
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .responsive-figure__title {
        font-size: 1.5rem;
        padding: 0 10px;
    }
}

@media (max-width: 400px) {
    .responsive-figure__title {
        font-size: 1.2rem;
    }
}
p.gkpoint
{
     background-color: #f0f7fb;
     border-left: solid 4px #3498db;
     line-height: 18px;
     mc-auto-number-format: '{b}Note: {/b}';
     overflow: hidden;
     padding: 12px;
}