/*
Theme Name: ADTHEME
Author: Your Name
Description: A WordPress theme with custom ad management and styling.
Version: 1.0
Text Domain: adtheme
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lato", sans-serif;
  background-color: #ffffff;
}

#app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

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

.header {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 0 10px;
  position: relative;
}

.logo img {
  width: 28px;
  height: 28px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin-bottom: 4px;
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #fff;
  border: 1px solid #eee;
  width: 200px;
}

.nav-menu.active {
  display: flex;
}

.nav-menu ul {
  list-style: none;
}

.nav-menu li {
  border-bottom: 1px solid #eee;
}

.nav-menu li a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #112238;
  font-weight: 500;
}

.nav-menu ul.sub-menu {
  display: none;
}

.nav-menu li:hover > ul.sub-menu {
  display: block;
}

.nav-menu ul.sub-menu li a {
  padding-left: 20px;
}

.main_title {
  padding-top: 23px;
  font-size: 21px;
  font-weight: bold;
  color: #353535;
  line-height: 1.4;
  padding-left: 5%;
  padding-right: 5%;
}

.main_detail {
  font-size: 16px;
  color: #3b3b3b;
  line-height: 1.8;
  padding-left: 5%;
  padding-right: 5%;
}

.news {
  margin-top: 10px;
  border-top: 1px solid #efefef;
}

.news_display {
  padding: 10px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 100%;
}

.news_content {
  flex: 1;
  min-width: 0;
}

.news_img {
  width: 125px;
  height: 94px;
  overflow: hidden;
  border-radius: 10px;
  object-fit: cover;
  margin-left: 10px;
  flex-shrink: 0;
}

.news_name {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.news_description {
  margin-top: 4px;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.footer {
  text-align: center;
  font-size: 0.875rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.footer-menu li {
  margin: 0 10px;
}

.footer-menu li a {
  text-decoration: none;
  color: #000;
}

.infor-footer {
  margin-top: 10px;
  text-align: center;
  font-size: 0.75rem;
}

.infor-footer a {
  color: #000;
  text-decoration: none;
}

.topic_title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  line-height: 22px;
  text-align: center;
  margin-top: 20px;
}

.new_list {
  padding: 0 5%;
}

.ad-placeholder {
  text-align: center;
  padding: 10px;
  background-color: #f5f5f5;
  border: 1px dashed #ccc;
  margin: 10px 0;
}

@media (max-width: 430px) {
  .main_title,
  .main_detail {
    padding-left: 4%;
    padding-right: 4%;
  }

  .main_title {
    font-size: 20px;
  }

  .main_detail {
    font-size: 16px;
  }

  .news_display {
    padding: 10px 5px;
    flex-direction: row;
    align-items: flex-start;
    max-width: 100%;
  }

  .news_content {
    flex: 1;
    min-width: 0;
  }

  .news_img {
    width: 100px;
    height: 75px;
    margin-left: 5px;
    flex-shrink: 0;
  }

  .news_name {
    font-size: 16px;
  }

  .news_description {
    font-size: 14px;
  }
}
