/*
Theme Name: Old School Magazine
Author: Huynh Cong Tu
Description: Classic WordPress theme 2008–2014 style. SEO-ready, no plugin.
Version: 1.0
*/

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    background: #f2f2f2;
}

a {
    color: #004f9e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ================= GLOBAL ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

#site-body {
    background: #fff;
}

/* ================= TOP MENU ================= */
#top-menu {
    background: #333;
    font-size: 12px;
}

#top-menu ul {
    list-style: none;
    display: flex;
    padding: 6px 10px;
}

#top-menu li {
    margin-right: 15px;
}

#top-menu a {
    color: #ddd;
}

#top-menu a:hover {
    color: #fff;
}

/* ================= LOGO ================= */
#logo {
    text-align: center;
    padding: 25px 10px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
}

.site-title img {
    max-height: 120px;
    width: auto;
}

.site-description {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* ================= MAIN MENU ================= */
#main-menu {
    background: #eee;
    border-bottom: 1px solid #ccc;
}

#main-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

#main-menu li {
    position: relative;
}

#main-menu a {
    display: block;
    padding: 12px 15px;
    font-weight: bold;
    color: #333;
}

#main-menu a:hover {
    background: #ddd;
}

/* Dropdown (old-school) */
#main-menu ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #eee;
    display: none;
    min-width: 180px;
    border: 1px solid #ccc;
}

#main-menu ul li:hover > ul {
    display: block;
}

#main-menu ul ul li a {
    font-weight: normal;
}

/* ================= CONTENT ================= */
#content {
    display: flex;
    padding: 15px;
}

/* Main */
#main {
    width: 70%;
    padding-right: 20px;
}

/* Sidebar */
#sidebar {
    width: 30%;
}

/* ================= POSTS ================= */
.post {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dotted #ccc;
}

font-size: 22px;
    margin-bottom: 6px;
    width: 250px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.post-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.post-excerpt {
    font-size: 14px;
}

/* ================= BREADCRUMB ================= */
.breadcrumb {
    font-size: 12px;
    margin-bottom: 15px;
    color: #666;
}

/* ================= SIDEBAR ================= */
.widget {
    margin-bottom: 25px;
}

.widget-title {
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ccc;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 6px;
}

/* ================= PAGINATION ================= */
.pagination {
    margin: 20px 0;
}

.pagination a,
.pagination span {
    padding: 6px 10px;
    margin-right: 5px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.pagination .current {
    background: #333;
    color: #fff;
}

/* ================= FOOTER ================= */
#footer {
    background: #333;
    color: #ccc;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    margin-top: 20px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    #content {
        flex-direction: column;
    }

    #main,
    #sidebar {
        width: 100%;
        padding: 0;
    }

    #main-menu ul {
        flex-wrap: wrap;
    }
}
/* ================= LOGIN WIDGET ================= */

.widget-login input[type="text"],
.widget-login input[type="password"] {
    width: 100%;
    padding: 6px;
    font-size: 13px;
    border: 1px solid #ccc;
}

.widget-login input[type="submit"] {
    width: 100%;
    padding: 7px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.widget-login input[type="submit"]:hover {
    background: #000;
}

.widget-login ul {
    list-style: none;
    padding-left: 0;
}

.widget-login li {
    margin-bottom: 6px;
}
/* ================= SIDEBAR FILE BOX ================= */

.file-box img {
    max-width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.file-box p {
    font-size: 13px;
    margin-bottom: 8px;
}

.file-box ul {
    list-style: none;
    padding-left: 0;
}

.file-box li {
    margin-bottom: 6px;
}

.file-box a {
    font-weight: bold;
}
.btn-download-svg {
    width: 100%;
    max-width: 520px;
    cursor: pointer;
    transition: transform .15s ease;
}

.btn-download-svg:hover {
    transform: scale(0.98);
}

.btn-download-svg:hover rect:first-child {
    stroke: #007a3d;
}

.btn-download-svg:hover text {
    fill: #007a3d;
}

img.downloadx7, img.download23 {
    width: 45%;
    transition: 
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

img.download23:hover ,img.downloadx7:hover {
    transform: translateY(2px) scale(0.98);
    filter: brightness(1.05) contrast(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

img.downloaddis {
    width: 45%;
}
img {
	padding: 1%;
    width: 300px;
    max-width: 95%;
    overflow: hidden;
}
imgthumnail {
	padding: 1%;
    width: 300px;
    height: 230px;
    max-width: 95%;
    overflow: hidden;
}
article.post {
	width: 300px;
    float: left;
    margin: 5px;
    max-width: 32%;
    padding: 5px;
    box-sizing: border-box
}