:root {
    --color-1:#063D8C;
    --color-2:#4691D3;
    --color-3:#225EC4;
    --color-4:#6EC7E2;
    --color-5:#95FCF2;
}

body {
	background-color: #fefefe;
	background: #fefefe url('https://roclassic.com/img/bg.webp') center/cover no-repeat;
	background-position: top;
	background-repeat: no-repeat;
	background-size: 1920px;
	background-attachment: fixed;
}

img {
	max-width: 100%;
}

body, p, span, div, li, a, table, input, button {
    font-family: 'Sarabun', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.card-header,
.section-title {
    font-family: 'Noto Sans Thai', sans-serif !important;
}

.noto_sans_thai {
    font-family: 'Noto Sans Thai', sans-serif !important;
}

.navbar {
	border-radius: 12px;
	margin-top: 10px;
	background-color: var(--color-1);
	color: #eee;
}

.navbar a {
	color: #eee;
}

.navbar a:hover {
	color: #fff;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.7);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.box_main {
	max-width: 950px;
	margin: 0 auto;
}

.box_con {
	background-color: #fff;
	padding: 20px;
	border-radius: 12px;
	border: 2px solid var(--color-2);
}

.box_con.marquee {
	margin-bottom: 7px;
	padding: 5px;
}

.box_con.article {
	border: 1px solid #fff;
}

.pad_l {
	padding-right: 2px !important;
}

.pad_r {
	padding-left: 2px !important;
}

.announce-line {
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.announce-line i {
	font-size: 22px;
	color: #3d4a8c;
}

.marquee_head {
	background-color: var(--color-1);
	border-radius: 12px;
	padding: 4px 10px;
	border: 1px solid #eee;
	color:#fff;
}

.bor1 {
	border: 1px solid var(--color-1);
}

.bor2 {
	border: 1px solid #eee;
}

.text_c_1 {
	color: var(--color-1);
}

.status_head {
	border-radius: 12px;
	padding: 4px 10px;
	color:#fff;
	text-align: center;
}

.statuson {
	background-color: green;
}

.statusoff {
	background-color: red;
}

.header {
	height: 300px;
	position: relative;
	overflow: hidden;
	margin: auto;
}

/* Logo ลอยขึ้นลง */
.logo-float {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -55%);
	animation: floatLogo 3.5s ease-in-out infinite;
	filter: drop-shadow(0 8px 12px #0008);
	width: 300px;
}

@keyframes floatLogo {
	0%   { transform: translate(-50%, -60%); }
	50%  { transform: translate(-50%, -55%); }
	100% { transform: translate(-50%, -60%); }
}

/* เอฟเฟกต์กระจกแบบ RO UI */
.glass-box {
	background: rgba(255,255,255,0.12);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 20px;
	border: 1px solid rgba(255,255,255,0.18);
}

.slide.head,.slide img {
	border-radius: 5px;
}

.glass-box {
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 30px 20px;
	text-align: center;
	transition: 0.3s;
	box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.glass-box:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.12);
}

.title_head {
	background-color: #fefefe;
	color: var(--color-1);
	padding: 5px;
	max-width: 280px;
	margin: auto;
	text-align: center;
	border-radius: 15px;
	border-left: 5px solid var(--color-3);
	border-right: 5px solid var(--color-3);
	font-size: 24px;
}

.title_home {
	background-color: var(--color-1);
	font-size: 22px;
	text-align: center;
	color: #fff;
	padding: 6px;
}

.card-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.contact-icon {
	font-size: 3rem;
	margin-bottom: 12px;
}

h2.title {
	text-align: center;
	font-weight: bold;
	margin-bottom: 40px;
	color: #fff;
}

a {
	text-decoration: none;
}

.contact-link {
	display: inline-block;
	margin-top: 5px;
	font-weight: 500;
	transition: 0.3s;
}
.contact-link:hover {
	color: #ffd700;
}

.bg-mm {
	background-color: var(--color-3);
}

.btn_home {
	background-color: #fff;
	border: var(--color-3) 1px solid;
	color: var(--color-1);
	width: 100%;
}

.btn_home.b {
	border: var(--color-3) 2px solid;
	font-weight: bold;
}

.btn_home:hover {
	background-color: var(--color-2);
	color: #fff;
	border: var(--color-2) 1px solid;
}

.btn_home.b:hover {
	border: var(--color-2) 2px solid;
}

.box_con p {
	line-height: 1.8;
	font-size: 15px;
}

.box_con ul {
	padding-left: 18px;
}

.box_con ul li {
	margin-bottom: 6px;
}

.blog-content p {
	line-height: 1.9;
	margin-bottom: 16px;
	font-size: 15px;
}

.blog-content h4 {
	margin-top: 24px;
	margin-bottom: 12px;
	color: var(--color-1);
	font-weight: 600;
}

.blog-content ul {
	padding-left: 20px;
}

.blog-content ul li {
	margin-bottom: 6px;
}

.ranking-box {
	background: #fefefe;
	border-radius: 12px;
	padding: 18px;
	border: 1px solid var(--color-2);
	height: 100%;
}

.ranking-title {
	text-align: center;
	font-weight: 700;
	color: var(--color-1);
	margin-bottom: 12px;
}

.ranking-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ranking-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px dashed #ddd;
	font-size: 14px;
}

.ranking-list li:last-child {
	border-bottom: none;
}

.rank {
	background: var(--color-3);
	color: #fff;
	font-weight: 700;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
	font-size: 13px;
}

.value {
	font-weight: 600;
	color: var(--color-1);
}

.menu-hover {
    position: relative;
    z-index: 1;
}

.menu-hover img {
    transition: transform 0.3s ease;
}

.menu-hover:hover {
    z-index: 10;
}

.menu-hover:hover img {
    transform: scale(1.05);
}


.footer {
	padding: 40px 20px;
	margin-top: 20px;
	color: #111;
	text-align: center;
	border-top: 1px solid rgba(255,255,255,0.08);
	background: #fefefe;
}

.footer-title {
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #3d4a8c;
}

.footer-desc {
	font-size: 15px;
	margin-bottom: 18px;
	opacity: 0.85;
}

.footer-links a {
	margin: 0 12px;
	color: var(--color-1);
	text-decoration: none;
	font-size: 15px;
	transition: 0.2s;
}

.footer-links a:hover {
	color: var(--color-2);
}

.footer-copy {
	margin-top: 20px;
	font-size: 14px;
	opacity: 0.75;
}

@media (max-width: 992px) {
	body {
		background-size: 1400px;
	}
	.header {
		height: 250px;
	}
	.navbar {
		margin-left: 10px;
		margin-right: 10px;
	}
	.logo-float {
		width: 250px;
	}
	.hide_992 {
		display: none;
	}
}

@media (max-width: 500px) {
	.hide_500 {
		display: none;
	}
}
