/* Siam Health News - Digital Newspaper Style */

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

body {
  font-family: "Poppins", sans-serif;
  background-color: #fef5e7;
  color: #2d2d2d;
  line-height: 1.6;
}

a {
  color: #d94e3a;
  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 */
.pjh34pto {
  background-color: #fff;
  border-bottom: 1px solid #f5a623;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
}

.pjh34pto .trzqg6kj {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header */
header {
  background: linear-gradient(135deg, #c41e3a 0%, #e85d75 100%);
  padding: 20px 0;
  border-bottom: 3px solid #f5a623;
}

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

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

.i6xxo8gf span {
  color: #f5a623;
}

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

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

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

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

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

/* Hero Section */
.lnulc6ra {
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.15);
  margin-bottom: 30px;
  border-top: 4px solid #c41e3a;
}

.lnulc6ra .h4gxitx1 {
  position: relative;
  overflow: hidden;
}

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

.lnulc6ra .qdkahy3i {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #f5a623 0%, #d94e3a 100%);
  color: #fff;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 2px;
}

.lnulc6ra .l75005v8 {
  padding: 25px;
}

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

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

.ex6v91ks {
  display: inline-block;
  background: linear-gradient(135deg, #d94e3a 0%, #c41e3a 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(217, 78, 58, 0.3);
}

.ex6v91ks:hover {
  background: linear-gradient(135deg, #c41e3a 0%, #a3162b 100%);
  box-shadow: 0 4px 12px rgba(217, 78, 58, 0.4);
  text-decoration: none;
}

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

.wnk2b6hq {
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border-top: 3px solid #e85d75;
}

.wnk2b6hq:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.2);
}

.wnk2b6hq .h4gxitx1 {
  overflow: hidden;
}

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

.wnk2b6hq:hover .h4gxitx1 img {
  transform: scale(1.05);
}

.wnk2b6hq .l75005v8 {
  padding: 20px;
}

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

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

.wnk2b6hq .ex6v91ks {
  padding: 10px 20px;
  font-size: 14px;
}

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

.e761zlu5 {
  background-color: #fff;
  border-radius: 4px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.1);
  border-left: 4px solid #f5a623;
}

.e761zlu5 h3 {
  font-size: 18px;
  color: #c41e3a;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e85d75;
}

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

.e761zlu5 .ex6v91ks {
  width: 100%;
  text-align: center;
}

.e761zlu5 .keu9o9u5 {
  background-color: transparent;
  border: 2px solid #d94e3a;
  color: #d94e3a;
}

.e761zlu5 .keu9o9u5:hover {
  background: linear-gradient(135deg, #d94e3a 0%, #c41e3a 100%);
  color: #fff;
}

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

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

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

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

.xrpqgiez li a:hover {
  color: #d94e3a;
  text-decoration: none;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2d2d2d 0%, #4a192c 100%);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 50px;
  border-top: 4px solid #f5a623;
}

footer .trzqg6kj {
  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;
}

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

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

.ha98no0n {
  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);
  }
}

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

.xtetuk8m:hover {
  color: #333;
}

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

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

.b7ugqhpt {
  margin-bottom: 20px;
}

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

.b7ugqhpt 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;
}

.b7ugqhpt input:focus {
  outline: none;
  border-color: #d94e3a;
}

.ha98no0n .ex6v91ks {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background: linear-gradient(135deg, #c41e3a 0%, #d94e3a 100%);
}

.ha98no0n .ex6v91ks:hover {
  background: linear-gradient(135deg, #a3162b 0%, #c41e3a 100%);
}

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

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

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

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

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

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

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

  .yjguicmk {
    order: -1;
  }

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

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

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

  nav ul {
    justify-content: center;
  }
}

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

  .i6xxo8gf {
    font-size: 24px;
  }

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

  .lnulc6ra .h4gxitx1 img {
    height: 250px;
  }

  .lnulc6ra .l75005v8 h2 {
    font-size: 20px;
  }

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

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