/* ======================================================
   YONGNENG VALVES - MAIN STYLE CSS
   FILE: /assets/css/style.css
====================================================== */

/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  color:#222;
  line-height:1.8;
  overflow-x:hidden;
}

/* LINK */
a{
  text-decoration:none;
  transition:.3s;
}

/* IMAGE */
img{
  max-width:100%;
  display:block;
}

/* CONTAINER */
.container{
  width:100%;
  max-width:1250px;
  margin:auto;
  padding:0 20px;
}

/* HEADER */
header{
  background:linear-gradient(135deg,#06101d,#173962);
  color:white;
  text-align:center;
  padding:80px 20px;
  position:relative;
  overflow:hidden;
}

header h1{
  font-size:56px;
  line-height:1.3;
  margin-bottom:20px;
}

header p{
  max-width:900px;
  margin:auto;
  font-size:20px;
  opacity:.95;
}

/* NAVIGATION */
nav{
  background:#08111f;
  padding:18px;
  text-align:center;
  position:sticky;
  top:0;
  z-index:999;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
}

nav a{
  color:white;
  margin:0 14px;
  font-size:15px;
  font-weight:500;
}

nav a:hover{
  color:#66d9ff;
}

/* WRAPPER */
.wrapper{
  max-width:1250px;
  margin:auto;
  display:grid;
  grid-template-columns:2.2fr 1fr;
  gap:30px;
  padding:35px 20px;
}

/* MAIN CONTENT */
.main-content{
  width:100%;
}

/* HERO */
.hero-content{
  padding:40px;
  border-radius:18px;
  box-shadow:0 3px 14px rgba(0,0,0,.08);
  margin-bottom:35px;
}

/* LABEL */
.label-tech{
  display:inline-block;
  background:#08111f;
  color:white;
  padding:8px 16px;
  border-radius:30px;
  font-size:14px;
  margin-bottom:20px;
}

/* HERO TITLE */
.hero-content h2{
  font-size:48px;
  line-height:1.3;
  margin-bottom:25px;
  color:#08111f;
}

/* HERO TEXT */
.hero-content p{
  font-size:20px;
  margin-bottom:22px;
  color:#444;
}

/* BUTTON */
.hero-btn{
  display:inline-block;
  background:#08111f;
  color:white;
  padding:15px 28px;
  border-radius:10px;
  transition:.3s;
  font-weight:bold;
}

.hero-btn:hover{
  background:#173962;
  transform:translateY(-2px);
}

/* SECTION TITLE */
.section-title{
  font-size:34px;
  margin-bottom:25px;
  color:#08111f;
}

/* ARTICLE GRID */
.featured-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
}

/* ARTICLE CARD */
.article-card{
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 3px 14px rgba(0,0,0,.08);
  transition:.3s;
}

.article-card:hover{
  transform:translateY(-5px);
}

/* ARTICLE IMAGE */
.article-card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

/* CARD CONTENT */
.card-content{
  padding:25px;
}

/* CATEGORY */
.meta-category{
  display:inline-block;
  margin-bottom:12px;
  font-size:13px;
  color:#173962;
  font-weight:bold;
}

/* CARD TITLE */
.card-content h3{
  font-size:26px;
  margin-bottom:15px;
  color:#08111f;
  line-height:1.4;
}

/* CARD TEXT */
.card-content p{
  margin-bottom:20px;
  color:#555;
}

/* READ MORE */
.read-more{
  color:#173962;
  font-weight:bold;
}

.read-more:hover{
  color:#08111f;
}

/* SIDEBAR */
.sidebar{
  display:flex;
  flex-direction:column;
  gap:25px;
}

/* WIDGET */
.widget{
  padding:28px;
  border-radius:18px;
  box-shadow:0 3px 14px rgba(0,0,0,.08);
}

/* WIDGET TITLE */
.widget h3{
  margin-bottom:20px;
  color:#08111f;
  font-size:24px;
}

/* LIST */
.widget ul{
  list-style:none;
}

.widget ul li{
  margin-bottom:14px;
}

.widget ul li a{
  color:#173962;
  line-height:1.7;
}

.widget ul li a:hover{
  color:#08111f;
}

/* SEARCH */
.widget input{
  width:100%;
  padding:14px;
  border:1px solid #d8dfe8;
  border-radius:10px;
  margin-bottom:14px;
  outline:none;
}

.widget button{
  width:100%;
  padding:14px;
  border:none;
  background:#08111f;
  color:white;
  border-radius:10px;
  cursor:pointer;
  transition:.3s;
}

.widget button:hover{
  background:#173962;
}

/* FOOTER */
footer{
  background:#08111f;
  color:white;
  text-align:center;
  padding:40px;
  margin-top:40px;
}

footer p{
  font-size:15px;
  opacity:.9;
}

/* TABLE */
table{
  width:100%;
  border-collapse:collapse;
  margin:25px 0;
}

table th,
table td{
  border:1px solid #dbe2ea;
  padding:14px;
  text-align:left;
}

/* BLOCKQUOTE */
blockquote{
  border-left:4px solid #173962;
  padding-left:18px;
  margin:25px 0;
  color:#555;
  font-style:italic;
}

/* CODE */
code{
  background:#eef2f7;
  padding:3px 6px;
  border-radius:5px;
}

/* MOBILE */
@media(max-width:992px){

  .wrapper{
    grid-template-columns:1fr;
  }

  .sidebar{
    margin-top:10px;
  }

}

@media(max-width:768px){

  header h1{
    font-size:36px;
  }

  header p{
    font-size:17px;
  }

  .hero-content{
    padding:28px;
  }

  .hero-content h2{
    font-size:34px;
  }

  .hero-content p{
    font-size:17px;
  }

  .section-title{
    font-size:28px;
  }

  nav a{
    display:inline-block;
    margin:6px;
  }

  .card-content h3{
    font-size:22px;
  }

}

@media(max-width:480px){

  .hero-content h2{
    font-size:28px;
  }

  .hero-btn{
    width:100%;
    text-align:center;
  }

}