/*
Theme Name: Dejan Stanic Custom Theme
Theme URI: https://dejanstanic.com
Author: Dejan Stanic
Description: Custom WordPress theme matching the main website design
Version: 1.0
*/

/* Base Styles - Extracted from original site */
body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a, button { transition: all 0.3s ease; }
a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

.row { display: block; }
.tm-left-right-container { width: 100%; }

.tm-blue-bg {
    background-color: #006599;
    color: white;
}

.tm-blue-text { color: #006599; }
.tm-blue-bg a { color: white; }

.tm-site-name {
    font-size: 4rem;
    margin-top: 20px;
}

.tm-logo-div {
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
}

.tm-main-nav { display: none; }

.tm-main-nav-ul {
    display: inline-block;
    padding-left: 0;
    margin: 0;
}

.tm-section { margin-bottom: 60px; }
.tm-section-title { font-size: 2.2rem; }
.tm-content-div { padding: 40px; }
.tm-margin-b-30 { margin-bottom: 30px; }
p { line-height: 2; }

.tm-button {
    background-color: #006599;
    border: none;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-size: 1.4rem;
    padding: 18px 35px;
    text-decoration: none;
}

.tm-button:hover,
.tm-button:active,
.tm-button:focus {
    background-color: #2790c6;
    color: white;
}

.tm-nav-item {
    list-style: none;
}

.tm-nav-item a {
    color: white;
    text-decoration: none;
}

.tm-nav-item:hover a,
.tm-nav-item:active a,
.tm-nav-item:focus a,
.tm-nav-item-link.active {
    color: #f4ef5e;
}

.tm-copyright-p { margin-bottom: 0; }

/* Blog-specific styles */
.blog-post {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post-title {
    color: #006599;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.blog-post-title a {
    color: #006599;
    text-decoration: none;
}

.blog-post-title a:hover {
    color: #2790c6;
}

.blog-post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-post-excerpt {
    line-height: 1.8;
}

.blog-post-thumbnail {
    margin-bottom: 15px;
}

.blog-post-thumbnail img {
    max-width: 100%;
    height: auto;
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
    overflow: hidden;
}

.blog-pagination a {
    color: #006599;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #006599;
}

.blog-pagination a:hover {
    background-color: #006599;
    color: white;
}

.blog-pagination .prev {
    float: left;
}

.blog-pagination .next {
    float: right;
}

/* Single post styles */
.single-post-title {
    color: #006599;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.single-post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.single-post-content {
    line-height: 2;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
}

.back-to-blog {
    margin-top: 40px;
}

.back-to-blog a {
    color: #006599;
    text-decoration: none;
}

.back-to-blog a:hover {
    color: #2790c6;
}

/* Responsive - from original site */
@media (min-width: 576px) {
    .container { width: 100%; }
    .tm-site-name { margin-top: 35px; }
}

@media (min-width: 992px) {
    .tm-main-nav {
        display: flex;
        justify-content: center;
    }

    .tm-left-column {
        position: fixed;
        height: 100%;
        width: 30%;
    }

    .container { width: 100%; }

    .tm-right-column {
        float: right;
        width: 70%;
    }

    .tm-nav-item {
        cursor: pointer;
        font-size: 1.5rem;
        list-style: none;
        padding: 18px 30px;
        transition: all 0.3s ease;
    }

    .tm-site-name {
        font-size: 3.3rem;
        margin-top: 30px;
    }

    .tm-logo-div {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .tm-section { margin-bottom: 100px; }
    .tm-content-div { padding: 80px 40px 30px 80px; }
}

@media (min-width: 1200px) {
    .container { width: 100%; }
}

@media (max-height: 860px) {
    .tm-logo-div {
        padding-top: 45px;
        padding-bottom: 20px;
    }

    .tm-nav-item { font-size: 1.4rem; }

    .tm-site-name {
        font-size: 2.4rem;
        margin-top: 10px;
    }
}

@media (min-height: 859px) {
    .tm-logo-div {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .tm-nav-item { font-size: 1.9rem; }
}
