/* Siam Health News - Digital Newspaper Style */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Sarabun", sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

a {
  color: #1565c0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.3;
}

/* Top Bar */
.ti7pggj9 {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
}

.ti7pggj9 .o2rzgon9 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header */
header {
  background-color: #fff;
  padding: 20px 0;
  border-bottom: 3px solid #c62828;
}

header .o2rzgon9 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.irbu853v {
  font-size: 32px;
  font-weight: 700;
  color: #c62828;
  letter-spacing: 2px;
}

.irbu853v span {
  color: #1565c0;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

nav ul li a {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

nav ul li a:hover {
  border-bottom-color: #c62828;
  text-decoration: none;
}

/* Container */
.o2rzgon9 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main Content Layout */
.pmo3xnfw {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin: 30px auto;
}

/* Hero Section */
.gxsls7jy {
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.gxsls7jy .jdhobjgy {
  position: relative;
  overflow: hidden;
}

.gxsls7jy .jdhobjgy img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.gxsls7jy .ojyjetjn {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #c62828;
  color: #fff;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 2px;
}

.gxsls7jy .csp3wcpt {
  padding: 25px;
}

.gxsls7jy .csp3wcpt h2 {
  font-size: 26px;
  color: #333;
  margin-bottom: 15px;
}

.gxsls7jy .csp3wcpt p {
  color: #666;
  margin-bottom: 20px;
  font-size: 16px;
}

.dphie2cr {
  display: inline-block;
  background-color: #1565c0;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dphie2cr:hover {
  background-color: #0d47a1;
  text-decoration: none;
}

/* Grid Section */
.cjzm6mgl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.z2i52x4e {
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.z2i52x4e:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.z2i52x4e .jdhobjgy {
  overflow: hidden;
}

.z2i52x4e .jdhobjgy img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.z2i52x4e:hover .jdhobjgy img {
  transform: scale(1.05);
}

.z2i52x4e .csp3wcpt {
  padding: 20px;
}

.z2i52x4e .csp3wcpt h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
}

.z2i52x4e .csp3wcpt p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.z2i52x4e .dphie2cr {
  padding: 10px 20px;
  font-size: 14px;
}

/* Sidebar */
.hhv4bf2i {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.s1k4jimv {
  background-color: #fff;
  border-radius: 4px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.s1k4jimv h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c62828;
}

.s1k4jimv p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.s1k4jimv .dphie2cr {
  width: 100%;
  text-align: center;
}

.s1k4jimv .vydzxm0o {
  background-color: transparent;
  border: 2px solid #1565c0;
  color: #1565c0;
}

.s1k4jimv .vydzxm0o:hover {
  background-color: #1565c0;
  color: #fff;
}

/* Recommended List */
.hhx8wxux {
  list-style: none;
}

.hhx8wxux li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

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

.hhx8wxux li a {
  font-size: 14px;
  color: #333;
  display: block;
}

.hhx8wxux li a:hover {
  color: #1565c0;
  text-decoration: none;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 50px;
}

footer .o2rzgon9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

footer h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #fff;
}

footer p,
footer a {
  color: #bbb;
  font-size: 14px;
}

footer a:hover {
  color: #fff;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 10px;
}

.lf49h3ut {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  color: #888;
  font-size: 13px;
}

/* Modal */
.fnoomm03 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.a912oldc {
  background-color: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  padding: 30px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sioe5dmi {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.sioe5dmi:hover {
  color: #333;
}

.a912oldc h2 {
  font-size: 22px;
  color: #c62828;
  margin-bottom: 10px;
  text-align: center;
}

.a912oldc p {
  color: #666;
  font-size: 14px;
  text-align: center;
  margin-bottom: 25px;
}

.ayi0onsv {
  margin-bottom: 20px;
}

.ayi0onsv label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

.ayi0onsv input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-family: "Sarabun", sans-serif;
  transition: border-color 0.3s;
}

.ayi0onsv input:focus {
  outline: none;
  border-color: #1565c0;
}

.a912oldc .dphie2cr {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background-color: #c62828;
}

.a912oldc .dphie2cr:hover {
  background-color: #b71c1c;
}

/* Legal Pages */
.rs8w4u5t {
  max-width: 800px;
  margin: 40px auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rs8w4u5t h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #c62828;
}

.rs8w4u5t h2 {
  font-size: 20px;
  color: #333;
  margin: 25px 0 15px;
}

.rs8w4u5t p {
  color: #666;
  margin-bottom: 15px;
  font-size: 15px;
}

.rs8w4u5t ul {
  margin-left: 20px;
  margin-bottom: 15px;
  color: #666;
}

.rs8w4u5t li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .pmo3xnfw {
    grid-template-columns: 1fr;
  }

  .hhv4bf2i {
    order: -1;
  }

  .cjzm6mgl {
    grid-template-columns: 1fr;
  }

  footer .o2rzgon9 {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  header .o2rzgon9 {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .ti7pggj9 .o2rzgon9 {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .irbu853v {
    font-size: 24px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .gxsls7jy .jdhobjgy img {
    height: 250px;
  }

  .gxsls7jy .csp3wcpt h2 {
    font-size: 20px;
  }

  .a912oldc {
    margin: 20px;
    padding: 20px;
  }

  .rs8w4u5t {
    margin: 20px;
    padding: 25px;
  }
}
