/*
Theme Name: Custom Theme
Theme URI: https://icons-clipart.com
Description: A custom WordPress theme matching the main site design
Version: 1.0
Author: Your Name
Author URI: https://icons-clipart.com
*/

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', 'Segoe UI', 'Fira Sans', Roboto, Oxygen, Ubuntu, 'Droid Sans', Arial, sans-serif;
    font-weight: 400;
    color: #000;
    line-height: 1.5;
    background: #fff;
}

*, *:before, *:after {
    box-sizing: border-box;
}

:focus {
    outline: none;
}

a {
    transition: border .3s ease;
    color: #28b351;
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Headers */
h1, h2, h3, h4, h5 {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', 'Segoe UI', 'Fira Sans', Roboto, Oxygen, Ubuntu, 'Droid Sans', Arial, sans-serif;
    font-weight: 600;
}

h1, h2 {
    font-size: 42px;
    margin: 1rem 0;
    color: #000;
}

@media (max-width: 800px) {
    h1, h2 {
        font-size: 32px;
    }
}

h3 {
    font-size: 28px;
}

p {
    margin: 12px 0;
}

/* Main Layout */
.main-page-layout {
    font-size: 14px;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.main-page-layout p {
    margin: 0 0 15px;
}

.main-page-layout a {
    text-decoration: none;
}

.container {
    max-width: 1040px;
    width: 100%;
    margin: auto;
    padding: 0 20px;
}

/* Header */
header {
    position: relative;
    padding: 0 20px;
    height: 60px;
    width: 100%;
    background: linear-gradient(158.46deg, #60c546, #1bae52 76.54%, #0ca940);
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    width: 32px;
    height: 32px;
    color: #fff;
}

.logo-line {
    width: 16px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 1px;
}

.logo-circle {
    display: flex;
    flex-direction: column;
    margin-left: -1px;
}

.logo-circle:before,
.logo-circle:after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Navigation */
.main-nav {
    width: 100%;
    font-size: 16px;
}

nav {
    position: relative;
    width: 100%;
    height: 50px;
}

.nav-list {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    position: relative;
    display: flex;
    max-width: 1040px;
    margin: auto;
    padding: 0 20px;
}

.nav-item {
    margin-right: 16px;
}

.nav-item:last-child {
    margin-right: 0;
}

.nav-link {
    display: block;
    padding: 10px;
    line-height: 30px;
    text-transform: capitalize;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: opacity .25s ease;
}

.nav-link:hover {
    opacity: .6;
}

/* Hero Section */
.hero {
    color: #fff;
    background: linear-gradient(158.46deg, #60c546, #1bae52 76.54%, #0ca940);
    padding: 60px 0 140px;
}

.hero-header h1 {
    margin: 0 0 16px;
    text-align: left;
    font-size: 48px;
    font-weight: 700;
    line-height: 57px;
    color: #fff;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

@media (max-width: 738px) {
    .hero-header h1 {
        font-size: 32px;
        line-height: 38px;
    }
}

/* Content Area */
.content {
    margin-top: -119px;
    padding-bottom: 60px;
}

.content .container {
    max-width: 1340px;
    width: 100%;
    padding: 0 32px;
}

@media (max-width: 420px) {
    .content .container {
        padding: 0 16px;
    }
}

/* Blog Posts Grid */
.blog-posts {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
}

.blog-post {
    position: relative;
    flex: 1;
    background: #fff;
    width: 307px;
    min-width: 307px;
    padding: 24px;
    margin: 16px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,.03);
    display: flex;
    flex-direction: column;
}

@media (max-width: 1030px) {
    .blog-post {
        width: 40%;
        min-width: 310px;
    }
}

@media (max-width: 715px) {
    .blog-post {
        width: 60%;
        margin-right: 0;
    }
}

@media (max-width: 400px) {
    .blog-post {
        min-width: 90%;
    }
}

.blog-post h2 {
    font-size: 24px;
    line-height: 28px;
    margin: 0 0 12px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.blog-post h2 a {
    color: #333;
    text-decoration: none;
}

.blog-post h2 a:hover {
    color: #28b351;
}

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

.post-excerpt {
    font-size: 16px;
    line-height: 24px;
    color: #333;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    color: #28b351;
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Single Post */
.single-post {
    background: #fff;
    padding: 40px;
    margin: 0 16px 32px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,.03);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-post h1 {
    font-size: 42px;
    line-height: 48px;
    margin: 0 0 16px;
    font-weight: 700;
    color: #333;
    text-align: left;
}

@media (max-width: 800px) {
    .single-post h1 {
        font-size: 32px;
        line-height: 38px;
    }
}

.single-post .post-meta {
    font-size: 14px;
    color: #848484;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f3f3;
}

.single-post .post-content {
    font-size: 16px;
    line-height: 24px;
    color: #333;
}

.single-post .post-content p {
    margin: 0 0 15px;
}

.single-post .post-content h2 {
    font-size: 28px;
    margin: 24px 0 12px;
    text-align: left;
}

.single-post .post-content h3 {
    font-size: 24px;
    margin: 20px 0 10px;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin: 0 0 15px 20px;
}

.single-post .post-content li {
    margin-bottom: 8px;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 32px 0;
}

.pagination a {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 8px;
    background-color: #28b351;
    border: 1px solid #28b351;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 400;
    transition: all .3s ease;
}

.pagination a:hover {
    background-color: #24a249;
    border-color: #24a249;
}

/* Footer */
footer {
    background: #f6f6f6;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

footer a {
    color: #28b351;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Buttons */
.button {
    font-size: 16px;
    padding: 0 24px;
    border-radius: 6px;
    line-height: 62px;
    height: 64px;
    min-width: 180px;
    display: inline-block;
    position: relative;
    background-color: #28b351;
    border: 1px solid #28b351;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all .3s ease;
    vertical-align: middle;
    color: #fff;
    text-align: center;
}

.button:hover {
    background-color: #24a249;
    border-color: #24a249;
    color: #fff;
}

/* Utility Classes */
.no-wrap {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .no-wrap {
        white-space: normal;
    }
}

.capitalize {
    text-transform: capitalize;
}
