/*
Theme Name: GeneratePress Child Theme
Author: SW
Description: GeneratePress&#039;s Child Theme
Version: 1.0
Template: generatepress

This is the child theme for GeneratePress theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

:root {
	--color-primary: #000000;
	--color-bg: #ffffff;

	--color-text-white: #ffffff;
	--color-text-black: #02001f;
	--color-href: #503ffa;
	
	--font-family-heading: 'Noto Sans Thai', sans-serif;
}

body {
    background-color: var(--color-bg);
	color: var(--color-text-black);
	-webkit-font-smoothing: auto;
	-moz-osx-font-smoothing: auto;
}

.entry-content:not(:first-child), .entry-summary:not(:first-child), .page-content:not(:first-child) {
	margin: 1rem 0px;
}

.site-header,
.site-info {
/* 	background: linear-gradient(90deg, #2563EB, #06B6D4); */
	background: var(--color-primary);
}

.site-header .site-branding a {
	color: var(--color-text-white);
}

.copyright-bar .copyright {
	color: var(--color-text-white);
}

.inside-header {
    padding: 15px 40px;
}

.main-navigation, .main-navigation ul ul {
	background-color: transparent;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	font-family: var(--font-family-heading);
	color: var(--color-text-white);
}

.site-main .wp-block-group__inner-container {
	padding: 0px;
}

.separate-containers .site-main {
	margin: 0px;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-family-heading);
	font-weight: 800;
	line-height: 1.25;
	background: linear-gradient(90deg, #890000, #4a0000);
    -webkit-background-clip: text;
    color: transparent;
}

a {
	color: var(--color-href);
}

p {
    margin-bottom: 1rem;
}

.wp-block-table table {
	display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    min-width: 350px;
    margin-bottom: 16px !important;
	border: 0;
}

.wp-block-table table td,
.wp-block-table table td {
	padding: 14px;
	border: 1px solid #4f0000 !important;
    min-width: 120px;
}

.wp-block-table table thead {
	border-bottom: none !important;
}

.wp-block-table table tbody tr:nth-child(odd) {
    background-color: #F7F9FB;
}

.wp-block-table table tr th {
	text-align: left;
	padding: 10px 15px;
}

.wp-block-table table tr {
	border-bottom: 1px solid #ededed;
}
.wp-block-table table tbody tr td {
	padding: 10px 15px;
}

.wp-block-table table tbody tr:hover {
    background-color: #EAF2E3;
}

ol, ul { margin: 0 0 1em 3em; }

ol li,
ul li {
	margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
	h2 { font-size: 1.6rem; }
	h3 { font-size: 1.3rem; }
	.wp-block-table table { white-space: nowrap; }
	ol, ul { margin: 0 0 1em 2em; }
}