.wp-site-blocks{
background:linear-gradient(180deg, #1b6755, #ffffff00, #ffffff00, #ffffff00, #ffffff00) !important;
}
.has-global-padding{
padding-right: 0!important;
padding-left: 0!important;
}
.wp-container-core-post-content-is-layout-52520bdf > :where(:not(.alignleft):not(.alignright):not(.alignfull)){
max-width:100%;
}
.wp-container-core-group-is-layout-23b1a4dc > .alignfull {
margin-right: calc(var(–wp–preset–spacing–30) * -1);
margin-left: calc(var(–wp–preset–spacing–30) * -1);
display: none;
}
.wp-block-uagb-container.uagb-block-d69e0bfe{
background: transparent;
}
.wp-block-template-part{
}
body{
}
.container {
max-width: 100%;
margin: 0 auto;
padding: 0px;
}
.header-badge {
background: rgba(49, 124, 103, 0.9);
color: white;
padding: 12px 22px;
border-radius: 25px;
display: inline-block;
font-size: 16px;
font-weight: 500;
margin-bottom: 30px;
opacity: 0;
transform: translateY(-20px);
animation: fadeInDown 0.2s ease-out 0.5s forwards;
}
.main-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
min-height: 60vh;
}
.left-content {
color: white;
}
.main-title {
font-size: 3.5rem;
color:#fff;
font-weight: 700;
line-height: 1.1;
margin-bottom: 30px;
text-align: center;
opacity: 0;
transform: translateX(-50px);
animation: slideInLeft 1s ease-out 1s forwards;
}
.title-blue { color: #4ecdc4; }
.title-teal { color: #5ce1e6; }
.subtitle {
font-size: 1.2rem;
line-height: 1.6;
text-align: center;
margin-bottom: 40px;
opacity: 0;
transform: translateX(-50px);
animation: slideInLeft 1s ease-out 1.5s forwards;
}
.buttons {
display: flex;
gap: 20px;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 1s ease-out 2s forwards;
}
.btn {
padding: 15px 30px;
border-radius: 25px;
font-size: 16px;
font-weight: 500;
text-decoration: none;
transition: all 0.3s ease;
border: none;
cursor: pointer;
}
.btn-primary {
background: #317C67;
color: white;
}
.btn-primary:hover {
background: #245c4f;
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(49, 124, 103, 0.3);
}
.btn-secondary {
background: transparent;
color: white;
border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.1);
border-color: white;
}
.right-content {
position: relative;
height: 500px;
}
.world-map {
width: 100%;
height: 100%;
position: relative;
background: url(‘https://thailandricehub.org/map.svg’) no-repeat center;
background-size: contain;
opacity: 0;
animation: fadeIn 1s ease-out 2.5s forwards;
filter: brightness(1.2) contrast(2.1);
}
.map-point {
position: absolute;
width: 16px;
height: 16px;
background: #E91E63;
border-radius: 50%;
border: 3px solid white;
box-shadow: 0 0 15px rgba(49, 124, 103, 0.5);
opacity: 0;
transform: scale(0);
}
/* Central Thailand point */
.point-center {
top: 49%;
left: 73%;
transform: translate(-50%, -50%) scale(0);
width: 20px;
height: 20px;
background: #277dd1;
box-shadow: 0 0 20px rgba(92, 225, 230, 0.8);
animation: popIn 0.6s ease-out 3s forwards;
z-index: 10;
}
.point-1 {
top: 40%;
left: 76%;
animation: popIn 0.6s ease-out 4s forwards;
}
.point-2 {
top: 35%;
left: 25%;
animation: popIn 0.6s ease-out 4.5s forwards;
}
.point-3 {
top: 33%;
left: 50%;
animation: popIn 0.6s ease-out 5s forwards;
}
.point-4 {
top: 60%;
left: 33%;
animation: popIn 0.6s ease-out 5.5s forwards;
}
.point-5 {
top: 47%;
left: 80%;
animation: popIn 0.6s ease-out 6s forwards;
}
.connecting-line {
position: absolute;
height: 3px;
background: linear-gradient(90deg, #5ce1e6, #317C67);
border-radius: 2px;
opacity: 0;
transform-origin: center;
transform: scaleX(0);
box-shadow: 0 0 8px rgba(92, 225, 230, 0.4);
}
.stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 40px;
margin-top: 80px;
opacity: 0;
transform: translateY(30px);
animation: fadeInUp 1s ease-out 2s forwards;
}
.stat-item {
text-align: center;
color: white;
}
.stat-number {
font-size: 3rem;
font-weight: 700;
color: #ffffff;
margin-bottom: 10px;
display: block;
background: #31715f;
width: 93px;
border-radius: 22px;
margin-left: auto;
margin-right: auto;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
padding:20px;
}
.stat-label {
font-size: 1rem;
opacity: 0.9;
}
.scroll-indicator {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
color: rgba(255, 255, 255, 0.7);
text-align: center;
opacity: 0;
animation: fadeIn 1s ease-out 9.5s forwards;
}
.scroll-arrow {
width: 22px;
height: 22px;
border: 2px solid rgba(255, 255, 255, 0.7);
border-top: none;
border-right: none;
transform: rotate(-45deg);
margin: 10px auto;
animation: bounce 2s infinite;
}
/* Animations */
@keyframes fadeInDown {
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideInLeft {
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
to {
opacity: 1;
}
}
@keyframes popIn {
0% {
opacity: 0;
transform: scale(0);
}
50% {
transform: scale(1.2);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes drawLineFromCenter {
0% {
opacity: 0;
transform: scaleX(0);
}
10% {
opacity: 1;
}
100% {
opacity: 1;
transform: scaleX(1);
}
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0) rotate(-45deg);
}
40% {
transform: translateY(-10px) rotate(-45deg);
}
60% {
transform: translateY(-5px) rotate(-45deg);
}
}
/* Responsive */
@media (max-width: 768px) {
.main-content {
grid-template-columns: 1fr;
gap: 40px;
text-align: center;
}
.main-title {
font-size: 2.5rem;
color:#fff;
}
.stats {
grid-template-columns: repeat(2, 1fr);
}
.right-content {
height: 300px;
}
}
/* Particle effect */
.particle {
position: absolute;
width: 4px;
height: 4px;
background: rgba(255, 255, 255, 0.6);
border-radius: 50%;
pointer-events: none;
animation: float 6s infinite ease-in-out;
}
.particle:nth-child(odd) {
animation-delay: -2s;
}
.particle:nth-child(even) {
animation-delay: -4s;
}
@keyframes float {
0%, 100% {
transform: translateY(0px);
opacity: 0.6;
}
50% {
transform: translateY(-20px);
opacity: 1;
}
}
ศูนย์กลางความรู้ด้านวิทยาศาสตร์และการวิจัยข้าวของประเทศไทย
เน้นการสร้างภาคีเครือข่ายความร่วมมือทั้งภายใน และต่างประเทศ เพื่องานวิจัยและนวัตกรรมด้านการปรับปรุงพันธุ์ข้าวสู่การใช้ประโยชน์
// Add more interactive elements
document.addEventListener(‘DOMContentLoaded’, function() {
// Add hover effects to map points
const mapPoints = document.querySelectorAll(‘.map-point’);
mapPoints.forEach(point => {
point.addEventListener(‘mouseenter’, function() {
this.style.transform = this.classList.contains(‘point-center’) ?
‘translate(-50%, -50%) scale(1.3)’ : ‘scale(1.5)’;
this.style.boxShadow = this.classList.contains(‘point-center’) ?
‘0 0 30px rgba(92, 225, 230, 1)’ : ‘0 0 25px rgba(49, 124, 103, 0.8)’;
});
point.addEventListener(‘mouseleave’, function() {
this.style.transform = this.classList.contains(‘point-center’) ?
‘translate(-50%, -50%) scale(1)’ : ‘scale(1)’;
this.style.boxShadow = this.classList.contains(‘point-center’) ?
‘0 0 20px rgba(92, 225, 230, 0.8)’ : ‘0 0 15px rgba(49, 124, 103, 0.5)’;
});
});
// Add click animation to buttons
const buttons = document.querySelectorAll(‘.btn’);
buttons.forEach(button => {
button.addEventListener(‘click’, function(e) {
e.preventDefault();
// Create ripple effect
const ripple = document.createElement(‘span’);
const rect = this.getBoundingClientRect();
const size = Math.max(rect.width, rect.height);
const x = e.clientX – rect.left – size / 2;
const y = e.clientY – rect.top – size / 2;
ripple.style.cssText = `
position: absolute;
width: ${size}px;
height: ${size}px;
left: ${x}px;
top: ${y}px;
background: rgba(255, 255, 255, 0.3);
border-radius: 50%;
transform: scale(0);
animation: ripple 0.6s ease-out;
pointer-events: none;
`;
this.style.position = ‘relative’;
this.style.overflow = ‘hidden’;
this.appendChild(ripple);
setTimeout(() => ripple.remove(), 600);
});
});
});
// Add ripple animation
const style = document.createElement(‘style’);
style.textContent = `
@keyframes ripple {
to {
transform: scale(2);
opacity: 0;
}
}
`;
document.head.appendChild(style);
function animateCounter(element, target, duration = 10000) {
let start = 0;
const increment = target / (duration / 16);
const timer = setInterval(() => {
start += increment;
element.textContent = Math.floor(start);
if (start >= target) {
element.textContent = target;
clearInterval(timer);
}
}, 16);
}
// Animate counters on load
window.addEventListener(‘load’, function() {
// เลือกองค์ประกอบ
ทั้งหมดที่มี class ‘stat-number’
const statNumbers = document.querySelectorAll(‘.stat-number’);
statNumbers.forEach(function(numberElement) {
// ดึงค่าตัวเลขปัจจุบันที่อยู่ใน span มาเป็นค่าเป้าหมาย
// ใช้ parseInt() เพื่อแปลงข้อความให้เป็นตัวเลข
const targetValue = parseInt(numberElement.textContent);
// ตั้งค่าเนื้อหาเริ่มต้นของ span ให้เป็น 0 ก่อนเริ่มแอนิเมชัน
numberElement.textContent = ‘0’;
// ตรวจสอบว่าค่าที่ได้มาเป็นตัวเลขและไม่เป็น NaN (Not a Number)
if (!isNaN(targetValue)) {
animateCounter(numberElement, targetValue);
}
});
});