/*--main.css--*/

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
    height: 100%;
}

body{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

body {
    font-family: "TH Sarabun New", "Tahoma", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #24466c;
    background-color: #e3e1e2;
}
/*--End เพิ่มทำใหม่--*/
img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-weight: 700;
	color: #24466c;
}

/* ================================
 2) Layout system
 ================================ */
/*--เพิ่มใหม่--*/
main.section{
  flex:1 0 auto;
}

.section {
	width: 100%;
	padding-inline: 16px;
	margin-block: 20px;
}

.box-base {
	background-color: #e3e1e2;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
/*--เพิ่มเติม--*/
/* ===== Symbol Section Enhancement ===== */

.section.box-base.symbol {
    position: relative;
    overflow: hidden;

    /* เพิ่มมิติจากของเดิม */
    box-shadow:
        0 4px 12px rgba(0,0,0,0.10),
        0 1px 3px rgba(0,0,0,0.08);

    transition: all 0.3s ease;
}

/* แถบ highlight ด้านบน */
.section.box-base.symbol::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        to right,
        #bdbdbd,
        #f5f5f5,
        #bdbdbd
    );
}

/* hover ยกตัว */
.section.box-base.symbol:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 28px rgba(0,0,0,0.16),
        0 4px 10px rgba(0,0,0,0.10);
}
/*--add end--*/
/* spacing */
.p-20 {
	padding: 20px;
}
.p-30 {
	padding: 30px;
}
.p-40 {
	padding: 40px;
}

.mt-20 {
	margin-top: 20px;
}
.mb-10 {
	margin-bottom: 10px;
}
.mb-20 {
	margin-bottom: 20px;
}

.gap-20 {
	gap: 20px;
}
.gap-30 {
	gap: 30px;
}
.gap-40 {
	gap: 40px;
}

/* flex */
.flex {
	display: flex;
}
.flex-col {
	flex-direction: column;
}
.flex-row {
	flex-direction: row;
}
.flex-wrap {
	flex-wrap: wrap;
}
.flex-1 {
	flex: 1 1 0;
}
.items-center {
	align-items: center;
}

/* grid */
.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.grid-5 {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}

/* width */
.w-full {
	width: 100%;
}
.max-w-840 {
	max-width: 840px;
	margin-inline: auto;
}
.max-w-900 {
	max-width: 900px;
	margin-inline: auto;
}

/* ================================
 3) Utility system
 ================================ */

.fw-bold {
	font-weight: 700;
}
.indent-30 {
	text-indent: 30px;
}
.img-fluid {
	max-width: 100%;
	height: auto;
}
.rounded {
	border-radius: 6px;
}
.shadow {
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.text-center {
	text-align: center;
}
.text-left {
	text-align: left;
}
.text-right{
	text-align: right;
}
.text-justify {
	text-align: justify;
}

.leading-loose {
	line-height: 1.9;
}
.leading-normal {
	line-height: 1.6;
}

.list-none {
	list-style: none;
	margin: 0;
	padding: 0;
}

.highlight {
	font-weight: 700;
	color: #24466c;
}
/* ================================
 5) Lists & curriculum
 ================================ */

.curriculum {
	font-size: 18px;
}

.list-root, .list-sub, .list-hours {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.list-sub, .list-hours {
	padding-left: 24px;
	margin: 4px 0 8px;
}

.row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}
.row .text {
	flex: 1 1 auto;
}
.row .hours {
	white-space: nowrap;
}
/* ================================
 9) Footer
 ================================ */

.main-footer {
	background: #1b4656;
	color: #e9f7fa;
	border-radius: 8px;
	margin-top: 40px;
	padding: 30px 20px;
}
.main-footer{
  margin-top:40px; /* คงไว้ได้ ถ้าต้องการระยะห่างจากเนื้อหา */
}
.main-footer .grid-3 {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

.main-footer .text-right {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.main-footer .back-to-top {
	font-size: 22px;
	color: #fff;
	background: #5a8fa3;
	padding: 8px 16px;
	border-radius: 6px;
	transition: 0.2s;
}
.main-footer .back-to-top:hover {
	background: #76a9bd;
}

.logout-footer-btn {
	display: inline-block;
	padding: 8px 16px;
	background: #d60000;
	color: #fff;
	border-radius: 6px;
	transition: 0.2s;
}

.logout-footer-btn:hover {
	background: #ff1a1a;
}

/* ================================
   TEXT BLOCK BASE
================================ */

.text-block {
    background: #e3e1e2;
    padding: 40px;
    border-radius: 8px;
    margin-block: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ================================
   MOTTO
================================ */

.motto-block {
    text-align: center;
}
.motto-text {
    font-size: 28px;
    line-height: 1.8;
    font-weight: 700;
}

/* ================================
   NARRATIVE / MEMORY
================================ */

.narrative-title {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}
.narrative-text {
    font-size: 20px;
    line-height: 1.9;
    text-align: justify;
}

/* ================================
   QUOTE
================================ */

.quote-block {
   /* border-left: 6px solid #24466c;*/
    padding-left: 20px;
}
.quote-text {
    font-size: 22px;
    line-height: 1.8;
}

/* ================================
   POEM
================================ */

.poem-block {
    text-align: left;
}
.poem-text {
    font-size: 24px;
    line-height: 1.9;
    font-weight: 600;
}

/* ================================
   DOT LIST
================================ */

.dotlist-block .dot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    margin-bottom: 12px;
}
.dotlist-block .dot-item img {
    width: 20px;
    height: 20px;
}

/* ================================
   ENCOURAGEMENT / QUESTIONS
================================ */

.encourage-block .enc-title {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}
.encourage-block .enc-text {
    font-size: 20px;
    line-height: 1.8;
}

/*---component-----*/
.dotlist-block {
    text-align: center; /* ให้ข้อความอยู่กลาง */
}

.text-block-center {
    max-width: 900px;
    margin-inline: auto;
    display: block;
}

.motivation-caption {
	text-align: center;
}
/* ไอคอนจุด */
.dot-icon {
	width: 18px;
	vertical-align: middle;
}
/*--ย่อหน้า---*/
.indent {
    text-indent: 2.25rem;            
    display: block;
}
/*----*/