/*
Theme Name: Dongraphic Custom Theme
Theme URI: https://dongraphic.com
Author: Dong Xiong
Author URI: https://dongraphic.com
Description: Custom WordPress theme matching the main Dongraphic website design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dongraphic
*/

/* Import Google Font */
@import url('https://fonts.googleapis.com/css?family=Kanit:100,200,300,400,500,600,700,800,900');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kanit', sans-serif;
  background-color: #232323;
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body, html {
  height: 100%;
  min-height: 100%;
}

a {
  color: #f4dd5b;
  text-decoration: none;
  transition: all 0.5s;
}

a:hover {
  opacity: 0.5;
}

/* Navigation */
nav {
  background: rgba(250,250,250,0.2);
  height: 80px;
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 300;
  box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.5);
}

nav .logo {
  float: left;
  margin-left: 30px;
}

nav .logo a {
  font-size: 28px;
  line-height: 80px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

nav .logo em {
  font-style: normal;
  font-weight: 200;
}

/* Main Content Area */
.blog-content {
  padding: 140px 0 80px 0;
  background-color: #232323;
  min-height: calc(100vh - 80px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Blog Post Listing */
.blog-post {
  border-bottom: 1px solid #414141;
  padding-bottom: 65px;
  margin-bottom: 60px;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post img {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.blog-post .text-content {
  margin-top: 30px;
}

.blog-post .text-content .post-meta {
  font-size: 16px;
  font-weight: 200;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.blog-post .text-content .post-meta a {
  color: #f4dd5b;
  text-decoration: none;
}

.blog-post .text-content h2 {
  margin-top: 5px;
  font-size: 36px;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  font-weight: 300;
  margin-bottom: 20px;
}

.blog-post .text-content h2 a {
  color: #fff;
  text-decoration: none;
  transition: all 0.5s;
}

.blog-post .text-content h2 a:hover {
  color: #f4dd5b;
}

.blog-post .text-content p {
  color: #bbb;
  font-size: 16px;
  font-weight: 300;
  line-height: 28px;
  margin-top: 20px;
}

.blog-post .text-content .read-more {
  margin-top: 25px;
  display: inline-block;
}

.blog-post .text-content .read-more a {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  background-color: transparent;
  color: #fff;
  letter-spacing: 2px;
  border-bottom: 3px solid #fff;
  padding-bottom: 3px;
  text-decoration: none;
  transition: all 0.5s;
}

.blog-post .text-content .read-more a:hover {
  opacity: 0.5;
}

/* Single Post */
.single-post {
  margin-bottom: 60px;
}

.single-post img {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.single-post .post-header {
  border-bottom: 1px solid #414141;
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.single-post .post-header .post-meta {
  font-size: 16px;
  font-weight: 200;
  color: #fff;
  letter-spacing: 0.5px;
}

.single-post .post-header .post-meta a {
  color: #f4dd5b;
  text-decoration: none;
}

.single-post .post-header h1 {
  margin-top: 15px;
  font-size: 42px;
  color: #fff;
  letter-spacing: 0.5px;
  font-weight: 300;
  line-height: 1.3;
}

.single-post .post-content {
  color: #bbb;
  font-size: 16px;
  font-weight: 300;
  line-height: 28px;
}

.single-post .post-content p {
  margin-bottom: 20px;
}

.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
  color: #fff;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 300;
}

.single-post .post-content ul,
.single-post .post-content ol {
  margin-left: 30px;
  margin-bottom: 20px;
}

.single-post .post-content li {
  margin-bottom: 10px;
}

.single-post .post-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

/* Pagination */
.pagination {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #414141;
  text-align: center;
}

.pagination a {
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  background-color: #414141;
  display: inline-block;
  margin: 0 5px;
  transition: all 0.5s;
  letter-spacing: 0.5px;
  font-weight: 300;
}

.pagination a:hover {
  background-color: #f4dd5b;
  color: #232323;
  opacity: 1;
}

.pagination .current {
  font-size: 16px;
  color: #232323;
  background-color: #fff;
  padding: 15px 30px;
  display: inline-block;
  margin: 0 5px;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  width: 100%;
  height: 80px;
  background-color: #313131;
}

footer p {
  text-align: center;
  color: #fff;
  font-weight: 200;
  font-size: 13px;
  text-transform: uppercase;
  padding-top: 33px;
  letter-spacing: 0.5px;
  margin: 0;
}

footer a {
  color: #aaa;
  text-decoration: none;
}

footer a:hover {
  color: #aaa;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  nav .logo {
    margin-left: 15px;
  }

  nav .logo a {
    font-size: 22px;
  }

  .blog-content {
    padding: 100px 15px 60px 15px;
  }

  .blog-post .text-content h2 {
    font-size: 28px;
  }

  .single-post .post-header h1 {
    font-size: 32px;
  }

  .blog-post {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
}
