@charset "utf-8";
@import url(bulete_menu.css);
/* CSS Document */BODY {
	SCROLLBAR-FACE-COLOR: #eeeeee; MARGIN: 0px; 
	SCROLLBAR-HIGHLIGHT-COLOR: #eeeeee; 
	SCROLLBAR-SHADOW-COLOR: #999966; 
	SCROLLBAR-ARROW-COLOR: #999966; 
	SCROLLBAR-TRACK-COLOR: #eeeeee; 
	SCROLLBAR-DARKSHADOW-COLOR: #eeeeee; 
	SCROLLBAR-BASE-COLOR: #eeeeee; 
}


@font-face {
	font-family: 'supermarketRegular';
	src: url('../../css/fontface/supermarket-webfont.eot');
	src: url('../../css/fontface/supermarket-webfont.eot?#iefix') format('embedded-opentype'),
	url('../../css/fontface/supermarket-webfont.woff') format('woff'),
	url('../../css/fontface/supermarket-webfont.ttf') format('truetype'),
	url('../../css/fontface/supermarket-webfont.svg#supermarketRegular') format('svg');
	font-weight: normal;
	font-style: normal;
}




table {	
	FONT-SIZE: 13px;
	/*font-family:"MS Sans Serif";*/
	font-family:"Tahoma";
	font-weight: normal;
}


input { height: 30px; line-height: 20px; border: solid 2px #ccc; margin-right: 5px; padding: 0px 5px; }
.btn {
    background-color: #FF6594;
    border-color: #FFB2CD #DE4D83 #DE4D83 #FFB2CD;
    border-style: solid;
    border-width: 2px;
    height: 26px;
    color: #fff;
    font-weight: normal;
    padding: 0px 6px;
}

a:link {color: #0066cc; text-decoration: none}
a:visited {color: #0066cc; text-decoration: none}
a:hover {color: #F60; text-decoration: none}
a:active {
	color: #FFFFFF;
	text-decoration: none
}

a.menu:link {color: #FFF; text-decoration: none; font-weight:bold}
a.menu:visited {color: #FFF; text-decoration: none; font-weight:bold}
a.menu:hover {color: #009; text-decoration: none; font-weight:bold}
a.menu:active {color: #FFF; text-decoration: none; font-weight:bold}

div.img
{
  margin: 2px;
  border: 1px solid #E6E4E4;
  float: left;
  background-color:#EFEFEF;
  text-align: center;
}	

div.img img
{
  display: inline;
  margin: 3px;
  border: 1px solid #EFEFEF;
}

div.img a:hover img {border: 1px solid #CCC;}

div.desc
{
  text-align: center;
  font-weight: normal;
  width: 120px;
  margin: 2px;
}


/*---------- ไอคอนและเส้น ---------------*/
.bg_dot1{background: url('../images/img/dot1.gif') repeat-x; height:1px;}
.bg_line1{background: url('../images/img/line1.gif') repeat-x; height:2px;}
.bg_titleboard{background: url('../images/img/title_board.gif') repeat-x; height:24px; font-weight:bold; text-align:center;}

#mtop2 li a.itop_01{background: url('../images/img/itop_04.png') 12px 5px no-repeat;}
#mtop2 li a.itop_02{background: url('../images/img/itop_05.png') 12px 5px no-repeat;}	
#mtop2 li a.itop_03{background: url('../images/img/itop_06.png') 12px 5px no-repeat;}	
#mtop2 li a.itop_04{background: url('../images/img/itop_07.png') 12px 5px no-repeat;}	
#mtop2 li a.itop_05{background: url('../images/img/itop_01.png') 12px 5px no-repeat;}	
#mtop2 li a.itop_06{background: url('../images/img/itop_02.png') 12px 5px no-repeat;}	
#mtop2 li a.itop_07{background: url('../images/img/itop_03.png') 12px 5px no-repeat;}	

.bul_guest01{padding-left:25px;background: url('../images/img/pencil.gif')  3px 1px no-repeat; height:20px;}	
.bul_guest02{padding-left:25px;background: url('../images/img/user.gif')  3px 0px no-repeat;}	
.bul_guest03{padding-left:25px;background: url('../images/img/calendar.gif')  3px 0px no-repeat; height:18px;}	

.bul_icon01{padding-left:20px;background: url('../images/img/icon_01.gif')  3px 7px no-repeat; height:20px;}
.bul_icon02{padding-left:14px;background: url('../images/img/icon_02.gif')  0px 6px no-repeat; height:20px;}
.bul_icon022{padding-left:14px;background: url('../images/img/icon_022.gif')  0px 6px no-repeat; height:20px;}
.bul_icon03{padding-left:20px;background: url('../images/img/icon_03.gif')  3px 2px no-repeat; height:20px;}
.bul_icon04{padding-left:20px;background: url('../images/img/icon_04.gif')  3px 4px no-repeat; height:20px;}
.bul_icon05{padding-left:25px;background: url('../images/img/icon_05.gif')  3px 6px no-repeat; height:20px;}
.bul_icon06{padding-left:25px;background: url('../images/img/icon_06.gif')  3px 1px no-repeat; height:25px;}
.bul_icon09{padding-left:25px;background: url('../images/img/icon_09.gif')  3px 4px no-repeat; height:20px;}
.bul_icon10{padding-left:25px;background: url('../images/img/itop_05.png')  3px 1px no-repeat; height:20px;}

.b_lock{padding-left:23px;background: url('../images/img/b_lock.png')  3px 0px no-repeat; height:25px;}
.b_unlock{padding-left:23px;background: url('../images/img/b_unlock.png')  3px 0px no-repeat; height:25px;}
.b_cal{padding-left:23px;background: url('../images/img/b_cal.png')  3px 0px no-repeat; height:25px;}
.b_list{padding-left:23px;background: url('../images/img/b_list.png')  3px 0px no-repeat; height:25px;}
.b_forgot{padding-left:23px;background: url('../images/img/b_forgot.png')  3px 0px no-repeat; height:25px;}
.b_del{padding-left:23px;background: url('../images/img/b_del.png')  3px 0px no-repeat; height:25px;}
.b_new{padding-left:23px;background: url('../images/img/b_new.png')  3px 0px no-repeat; height:25px;}
.b_user{padding-left:23px;background: url('../images/img/b_user.png')  3px 0px no-repeat; height:25px;}
.b_mud{padding-left:23px;background: url('../images/img/b_mud.gif')  7px 3px no-repeat; height:22px;}
.b_unmud{padding-left:23px;background: url('../images/img/b_unmud.gif')  3px 0px no-repeat; height:22px;}
.b_topic{padding-left:23px;background: url('../images/img/b_topic.gif')  3px 2px no-repeat; height:22px;}

.txt_titlebar{
	color:#FFF; padding-left:15px; font-size:14px; font-weight:bold;
}

/*---------- ตัวหนังสือบาร์ ---------------*/

.bar_blank{padding-left:28px; background: url('../images/img/bar_blank.jpg') no-repeat; height:36px; width:191px;FONT-WEIGHT: bold; FONT-SIZE: 11pt; COLOR: #006; FONT-FAMILY: Tahoma; LETTER-SPACING: 0px}	

.txt_title {
	FONT-WEIGHT: bold;
	FONT-SIZE: 30pt;
	COLOR: #FFFF00;
	font-style: normal;
	line-height: normal;
}

.txt_title_bar {	
	MARGIN-TOP: 10pt; MARGIN-BOTTOM: -0pt; COLOR: #FFF;
	font-family: supermarketRegular;
	font-size: 20px;
	text-align:center;
}


td .bg_top{
	color:#FFF;
	padding-left:18px;
	padding-right:18px;
	background: url('../images/menutop_02.jpg') repeat-x; height:34px;
}

td .bg_topover{
	color:#FFF;
	padding-left:18px;
	padding-right:18px;
	background: url('../images/bgtop_over.jpg') repeat-x; height:34px;
}

.bg_topline{background: url('../images/bgtop_line.jpg') repeat-Y; height:34px; width:2px;}



/*---------- สำหรับโรงหน้าเว็บโรงเรียนใหม่ ---------------*/
.bg_title{
	background:url(../images/bg.png) repeat-x; height:25px; padding-left:10px; font-weight:bold;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
	}

/* =-=-=-=-=-=-=-[Menu Three]-=-=-=-=-=-=-=- */
/*
#menu1 {
	width: 100%;
	border: 0px solid #ccc;
	margin: 0px;
	}
	
#menu1 li a {
  	height: 25px;
  	voice-family: "\"}\""; 
  	voice-family: inherit;
	voice-family:
  	height: 25px;
	text-decoration: none;
	}
	
#menu1 li a:link, #menu1 li a:visited {
	color: #888;
	display: block;
	background: url(../images/menu3.gif);
	padding: 4px 0 0 5px;
	height:25px;
	}
	
#menu1 li a:hover, #menu1 li a:active {
	color: #283A50;
	background: url(../images/menu3.gif) 0 -32px;
	padding: 4px 0 0 5px;
	height:25px;
	}
*/
#menu1 {
	width: 100%;
	border: 0px solid #ccc;
	margin: 0px;
	}
	
#menu1 li a {
  	voice-family: "\"}\""; 
  	voice-family: inherit;
	voice-family:
	text-decoration: none;
	}
	
#menu1 li a:link, #menu1 li a:visited {
	display: block;
	/*background-color:#F0F8FF;*/
	padding: 4px 0 0 5px;
	/*height:22px;*/
	}
	
#menu1 li a:hover, #menu1 li a:active {
	/*background-color:#CEE7FF;*/
	padding: 4px 0 0 5px;
}

/*************** Pagination ***************/
#main-content .pagination {
                text-align: right;
                padding: 20px 0 5px 0;
                font-family: Verdana, Arial, Helvetica, sans-serif;
                font-size: 10px;
                }
.pagination a {
                margin: 0 5px 0 0;
                padding: 3px 6px;
                }

.pagination a.number {
				border: 1px solid #ddd;
                }

.pagination a.current {
                background: #469400 url('../images/bg-button-green.gif') top left repeat-x !important;
                border-color: #459300 !important;
                color: #fff !important;
 }
.text {
	font-size: 40px;
	font-style: normal;
	color: #FF0;
}
.t {
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 15px;
	font-style: normal;
	color: #FFF;
}

.stly44 {
	font-family: "Arial Black", Gadget, sans-serif;
	font-size: 18px;
	font-style: oblique;
	color: #000;
}
/* =========================================================
   SAFE SIDE MENU TITLE STYLE
   โค้ดหัวข้อเมนูด้านข้างแบบไม่ดันตาราง ไม่ทำให้เว็บฉีก
   โทนน้ำเงินเข้ม-ทอง เข้ากับภาพแบนเนอร์
   ใช้ไอคอนแบบตัวอักษร/emoji ไม่ต้องเพิ่มไฟล์รูปภาพ
   วางท้ายไฟล์ style.css ได้เลย
   ========================================================= */

/* หัวข้อเมนูหลักและหัวข้อย่อย: คงความกว้างตามตารางเดิม */
.student-menu-title,
.side-menu-title {
  height: 36px;
  padding: 0 6px;
  background:
    linear-gradient(135deg, #031534 0%, #062b63 38%, #0b4f9d 72%, #0e67c3 100%);
  border-radius: 8px 8px 0 0;
  border: 0;
  border-bottom: 2px solid #d9a625;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 215, 120, 0.18);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* หัวข้อหลัก เช่น เมนูสำหรับนักเรียน */
.student-menu-title {
  height: 40px;
}

/* เส้นแสงทองด้านบน */
.student-menu-title::before,
.side-menu-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,235,180,0.95), rgba(255,255,255,0));
  z-index: 1;
}

/* แสงฟ้าด้านใน */
.student-menu-title::after,
.side-menu-title::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -25%;
  width: 80%;
  height: 180%;
  background: radial-gradient(circle, rgba(48,165,255,0.26) 0%, rgba(48,165,255,0.10) 42%, rgba(48,165,255,0) 70%);
  z-index: 1;
}

/* ข้อความภายในหัวข้อ */
.student-menu-title .menu-title-text,
.side-menu-title .menu-title-text {
  background: transparent !important;
  padding-left: 0 !important;
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  font-family: Tahoma, Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 5px rgba(40,120,255,0.25);
  display: table;
  table-layout: fixed;
  width: 100%;
  height: 100%;
  line-height: 1.1;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* ช่องไอคอน */
.student-menu-title .menu-icon-circle,
.side-menu-title .menu-icon-circle {
  display: table-cell;
  width: 22px;
  min-width: 22px;
  height: 100%;
  vertical-align: middle;
  text-align: center;
  box-sizing: border-box;
}

/* ตัวไอคอน */
.menu-ico {
  width: 19px;
  height: 19px;
  line-height: 19px;
  display: inline-block;
  border-radius: 50%;
  text-align: center;
  font-size: 11px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #eaf5ff 35%, #9fd0ff 70%, #5a98d8 100%);
  border: 1px solid rgba(255, 220, 130, 0.90);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.85),
    0 1px 2px rgba(0,0,0,0.25);
}

/* ข้อความหัวข้อ: ไม่ดันตารางออกด้านข้าง */
.student-menu-title .menu-label,
.side-menu-title .menu-label {
  display: table-cell;
  vertical-align: middle;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
  overflow-wrap: normal;
  box-sizing: border-box;
  padding-left: 5px;
}

/* หัวข้อที่อยากให้กระชับขึ้น ใช้กับข้อความยาว */
.side-menu-title.long-title .menu-title-text,
.side-menu-title.compact-title .menu-title-text {
  font-size: 11px;
}

.side-menu-title.long-title .menu-icon-circle,
.side-menu-title.compact-title .menu-icon-circle {
  width: 20px;
  min-width: 20px;
}

.side-menu-title.long-title .menu-label,
.side-menu-title.compact-title .menu-label {
  padding-left: 4px;
}

/* ป้องกัน style เดิมของ .bg_title มากระทบ */
.student-menu-title .bg_title,
.side-menu-title .bg_title {
  background: transparent !important;
  height: auto !important;
  padding-left: 0 !important;
  color: #ffffff !important;
}

/* ภาพในเมนูเดิม ไม่ปรับความกว้างเพิ่ม เพื่อไม่ให้ตารางฉีก */
.student-menu-block img,
img.tablecom {
  box-sizing: border-box;
  max-width: 200px;
}

/* สำหรับภาพที่ต้องการเต็มกรอบเดิม 200px */
.menu-card-img {
  display: block;
  max-width: 200px;
  width: 200px;
  height: auto;
  box-sizing: border-box;
}


/* รองรับจอเล็ก */
@media screen and (max-width: 768px) {
  .student-menu-title,
  .side-menu-title {
    height: 36px;
    padding: 0 5px;
  }

  .student-menu-title {
    height: 38px;
  }

  .student-menu-title .menu-title-text,
  .side-menu-title .menu-title-text {
    font-size: 11px;
  }

  .student-menu-title .menu-icon-circle,
  .side-menu-title .menu-icon-circle {
    width: 20px;
    min-width: 20px;
  }

  .menu-ico {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
  }
}

/* ===== หัวข้อกล่องเนื้อหากลาง เช่น ข่าวประชาสัมพันธ์ / ภาพกิจกรรม ===== */
.center-box-title {
  width: 544px;
  height: 30px;
  padding: 0;
  background:
    linear-gradient(
      135deg,
      #02112f 0%,
      #04265a 30%,
      #0a3e84 65%,
      #0d57aa 100%
    );
  border-radius: 10px 10px 0 0;
  border-bottom: 3px solid #d9a625;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 215, 120, 0.18);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.center-box-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0),
    rgba(255,235,180,0.95),
    rgba(255,255,255,0)
  );
  z-index: 1;
}

.center-box-title::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 55%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(48,165,255,0.25) 0%,
    rgba(48,165,255,0.10) 42%,
    rgba(48,165,255,0) 70%
  );
  z-index: 1;
}

.center-title-text {
  float: left;
  height: 30px;
  line-height: 30px;
  padding-left: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  font-family: Tahoma, Arial, sans-serif;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.85),
    0 0 5px rgba(40,120,255,0.25);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.center-title-text .center-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  margin-right: 7px;
  border-radius: 50%;
  text-align: center;
  font-size: 11px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #eaf5ff 35%, #9fd0ff 70%, #5a98d8 100%);
  border: 1px solid rgba(255, 220, 130, 0.90);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.85),
    0 1px 2px rgba(0,0,0,0.25);
}

.center-title-more {
  float: right;
  height: 30px;
  line-height: 30px;
  padding-right: 8px;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

.center-title-link {
  display: inline-block;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: bold;
  font-family: Tahoma, Arial, sans-serif;
  text-decoration: none !important;
  padding: 0 8px;
  height: 22px;
  line-height: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 220, 130, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
  text-shadow: 0 1px 2px rgba(0,0,0,0.75);
}

.center-title-link:hover {
  color: #fff7c2 !important;
  background: rgba(255, 215, 90, 0.22);
  border-color: rgba(255, 235, 150, 0.85);
}
/* ===== บังคับสีตัวหนังสือหัวข้อเมนูให้เป็นสีขาว ===== */
.side-menu-title,
.student-menu-title,
.center-box-title,
.side-menu-title *,
.student-menu-title *,
.center-box-title * {
  color: #ffffff !important;
}

.side-menu-title .menu-label,
.student-menu-title .menu-label,
.center-box-title .center-title-text {
  color: #ffffff !important;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
}

.side-menu-title a,
.student-menu-title a,
.center-box-title a {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* =========================================================
   TEACHER INNOVATION TABLE STYLE
   สื่อนวัตกรรมครู
   นำไฟล์นี้ไปไว้ในโฟลเดอร์ stylesheet/
   แล้วเรียกใช้ในหน้า HTML ด้วย:
   <link rel="stylesheet" href="stylesheet/teacher-innovation.css" type="text/css">
   ========================================================= */

.modern-teacher-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-family: Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 45%, #ffffff 100%);
  padding: 5px;
  border-radius: 10px;
  box-sizing: border-box;
  border: 1px solid #1e3a8a;
}

.modern-teacher-table td {
  font-size: 12px;
  color: #0f172a;
  line-height: 1.35;
  transition: all 0.25s ease;
}

/* หัวข้อกลุ่มสาระ */
.modern-teacher-table .subject-title {
  text-align: center;
  background: linear-gradient(90deg, #1e3a8a, #2563eb) !important;
  color: #ffffff !important;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 7px;
  border-radius: 7px;
  border-left: 4px solid #facc15;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}

/* ช่องรายชื่อครู */
.modern-teacher-table .teacher-cell {
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid #93c5fd;
  box-shadow: 0 1px 5px rgba(30, 58, 138, 0.10);
  text-align: left !important;
}

.modern-teacher-table .teacher-cell:hover {
  background: #e0f2fe;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.20);
  border-color: #2563eb;
}

.modern-teacher-table a,
.modern-teacher-table span,
.modern-teacher-table li {
  color: #0f3f73;
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
  text-align: left !important;
}

.modern-teacher-table a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.modern-teacher-table ul {
  margin: 0;
  padding-left: 12px;
  text-align: left !important;
}

.modern-teacher-table li {
  margin: 0;
  padding: 0;
  text-align: left !important;
}

.modern-teacher-table img {
  vertical-align: middle;
}

.modern-teacher-table .icon-img {
  width: 13px;
  height: auto;
  margin-right: 3px;
}

.modern-teacher-table .menu-image-link {
  display: inline-block;
}

.modern-teacher-table .menu-bottom-img {
  width: 180px;
  height: 72px;
  border: 0;
}

.modern-teacher-table .empty-row {
  height: 5px;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* บังคับให้หัวข้อหลักอ่านง่าย หากใช้ร่วมกับ side-menu-title */
.modern-teacher-table .side-menu-title,
.modern-teacher-table .side-menu-title *,
.modern-teacher-table .student-menu-title,
.modern-teacher-table .student-menu-title * {
  color: #ffffff !important;
}

/* =========================================================
   FINAL SAFETY PATCH
   ป้องกันตารางฉีกและบังคับตัวหนังสือหัวข้อให้อ่านชัด
   ========================================================= */

.side-menu-title,
.student-menu-title {
  max-width: 100%;
}

.side-menu-title .menu-title-text,
.student-menu-title .menu-title-text {
  max-width: 100%;
}

.side-menu-title .menu-label,
.student-menu-title .menu-label {
  color: #ffffff !important;
}

.modern-teacher-table {
  max-width: 100%;
  table-layout: auto;
}

.modern-teacher-table .side-menu-title,
.modern-teacher-table .side-menu-title *,
.modern-teacher-table .student-menu-title,
.modern-teacher-table .student-menu-title * {
  color: #ffffff !important;
}
/* ===== พื้นหลังเว็บไซต์ ไล่สีแนวตั้งแบบมีมิติ อ่อนลงเล็กน้อย ===== */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    linear-gradient(
      180deg,
      #b7e7ff 0%,
      #d0f1ff 30%,
      #e8f8ff 62%,
      #fbfeff 100%
    ) !important;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
}

body {
  background-color: #d0f1ff !important;
}

/* =========================================================
   RED-WHITE OFFICIAL THEME OVERRIDE
   โทนสีขาว-แดง ให้เข้ากับหัวเว็บ/ท้ายเว็บโรงเรียนมัธยมหนองเขียด
   วางท้ายไฟล์เพื่อทับโทนน้ำเงินเดิม โดยไม่กระทบโครงสร้างตารางเดิม
   ========================================================= */
:root{
  --mk-red-dark:#6f0000;
  --mk-red:#a30000;
  --mk-red-main:#c8102e;
  --mk-red-bright:#e31b23;
  --mk-gold:#d4af37;
  --mk-gold-light:#ffe7a3;
  --mk-white:#ffffff;
  --mk-soft:#fff6f6;
  --mk-text:#3b0b0b;
}

body{
  background:linear-gradient(180deg,#fff8f8 0%,#ffffff 40%,#f7dede 100%) !important;
}

a:link, a:visited{ color:#9b0000; }
a:hover{ color:#d71920; }

/* หัวข้อเมนูด้านข้าง */
.student-menu-title,
.side-menu-title{
  background:
    linear-gradient(135deg,var(--mk-red-dark) 0%,var(--mk-red) 40%,var(--mk-red-main) 72%,var(--mk-red-bright) 100%) !important;
  border-bottom:2px solid var(--mk-gold) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(255,231,163,.22),
    0 1px 5px rgba(120,0,0,.16) !important;
}
.student-menu-title::before,
.side-menu-title::before{
  background:linear-gradient(to right,rgba(255,255,255,0),rgba(255,231,163,.98),rgba(255,255,255,0)) !important;
}
.student-menu-title::after,
.side-menu-title::after{
  background:radial-gradient(circle,rgba(255,255,255,.22) 0%,rgba(255,205,205,.13) 42%,rgba(255,205,205,0) 70%) !important;
}
.student-menu-title .menu-title-text,
.side-menu-title .menu-title-text{
  text-shadow:0 1px 2px rgba(0,0,0,.75),0 0 5px rgba(255,210,150,.26) !important;
}
.menu-ico,
.center-title-text .center-icon{
  background:radial-gradient(circle at 35% 30%,#ffffff 0%,#fff0f0 35%,#f6b0b0 70%,#c8102e 100%) !important;
  border:1px solid rgba(255,231,163,.95) !important;
}

/* หัวข้อกล่องกลาง */
.center-box-title{
  background:linear-gradient(135deg,#6f0000 0%,#9b0000 35%,#c8102e 70%,#e31b23 100%) !important;
  border-bottom:3px solid var(--mk-gold) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(255,231,163,.22),
    0 1px 6px rgba(120,0,0,.15) !important;
}
.center-box-title::after{
  background:radial-gradient(circle,rgba(255,255,255,.24) 0%,rgba(255,205,205,.12) 42%,rgba(255,205,205,0) 70%) !important;
}
.center-title-text{
  text-shadow:0 1px 2px rgba(0,0,0,.75),0 0 5px rgba(255,210,150,.26) !important;
}
.center-title-link{
  border:1px solid rgba(255,231,163,.70) !important;
  background:rgba(255,255,255,.16) !important;
}
.center-title-link:hover{
  color:#fff7c2 !important;
  background:rgba(255,231,163,.24) !important;
}

/* กล่อง/พื้นหลังเมนูและภาพ */
.student-menu-block,
.modern-teacher-table{
  background:linear-gradient(180deg,#fff6f6 0%,#ffffff 55%,#fff1f1 100%) !important;
  border-color:#b30000 !important;
}
img.tablecom,
.student-menu-block img{
  border-radius:8px;
  border:1px solid #f0d0d0;
  box-shadow:0 2px 7px rgba(120,0,0,.08);
}
img.tablecom:hover,
.student-menu-block img:hover{
  box-shadow:0 3px 10px rgba(180,0,0,.20);
  border-color:#d4af37;
}

/* ตารางสื่อนวัตกรรมครู */
.modern-teacher-table td{ color:#3b0b0b !important; }
.modern-teacher-table .subject-title{
  background:linear-gradient(90deg,#7a0000,#c8102e) !important;
  color:#ffffff !important;
  border-left:4px solid var(--mk-gold) !important;
  box-shadow:0 2px 6px rgba(120,0,0,.22) !important;
}
.modern-teacher-table .teacher-cell{
  background:#fffafa !important;
  border:1px solid #f1b8b8 !important;
  box-shadow:0 1px 5px rgba(120,0,0,.08) !important;
}
.modern-teacher-table .teacher-cell:hover{
  background:#fff1f1 !important;
  border-color:#c8102e !important;
  box-shadow:0 2px 8px rgba(120,0,0,.18) !important;
}
.modern-teacher-table a,
.modern-teacher-table span,
.modern-teacher-table li{ color:#7a0000 !important; }
.modern-teacher-table a:hover{ color:#d71920 !important; }

/* สไลด์ข่าวประชาสัมพันธ์ */
.main-slide{ background:#7a0000 !important; }
.thumb.active{
  border-color:var(--mk-gold) !important;
  box-shadow:0 0 8px rgba(212,175,55,.85) !important;
}
body { background:#fff5f5 !important; }

/* ให้พื้นที่ตารางหลักเป็นสีขาว กลมกลืนกับ Footer */
.page-wrap { background:#ffffff !important; }
.page-table { background:#ffffff !important; }
.footer-wrap { background:#ffffff !important; }

.footer-img {
  display:block;
  width:960px;
  height:245px;
  object-fit:cover;
  border:0;
  margin:0;
  padding:0;
}