/*
 Theme Name: PureBlog One
 Theme URI: https://webuilders.dev
 Author: Cozma Calin
 Author URI: https://webuilders.dev
 Description: A clean and lightweight WordPress blog theme built for speed and simplicity. PureBlog is perfect for personal blogs, lifestyle journals, and content-focused websites.
 Version: 1.0.0
 Tested up to: 6.8
 Requires PHP: 7.4
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Tags: blog, news
 Text Domain: pureblog-one
 Copyright: (c) 2025 Webuilders
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--body-gradient);
    min-height: 100vh;
}

h1, h2, h3, h4, h5{
    color: var(--heading-color);
    margin-bottom: 15px;
}

img{
    max-width: 100%;
}

/* Header with Single Image */
header {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

/* Overlay Text with Typewriter Animation */
.header-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.typewriter {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    overflow: hidden;
    border-right: .15em solid var(--white);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 5s steps(15, end), blink-caret 1s step-end infinite;
    will-change: width;
    color: var(--white);
}

.typewriter-subtitle {
    font-size: 1.2em;
    opacity: 0;
    animation: fadeIn 1s ease-in 5s forwards;
}

/* Main Layout Grid */
.container {
    display: grid;
    grid-template-columns: var(--sidebar-width) var(--main-width) var(--sidebar-width);
    gap: var(--gap);

    max-width: 1400px;
    margin: 70px auto;
    padding: 0 20px;
}

/* Enhanced Sidebar - Sticky */
.sidebar {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    animation: slideInLeft 1s ease-out;
    will-change: transform, opacity;
    position: sticky;
    top: 20px;
    align-self: start;
    height: fit-content;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo a{
    text-decoration: none;
}

.logo h1 {
    color: var(--main-color);
    font-size: 28px;
    font-weight: 700;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--button-gradient);
    border-radius: 2px;
}

.logo img{
    max-width: 120px;
    height: auto;
}

div.search {
    margin-bottom: 30px;
    position: relative;
}

div.search input {
    width: 100%;
}

div.search::after {
    content: '🔍';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.categories {
    margin-bottom: 30px;
}

.categories h3 {
    font-weight: 600;
    position: relative;
}

.categories h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--link-color);;
}

.categories ul {
    list-style: none;
}

.categories li {
    margin-bottom: 10px;
}

.categories a {
    text-decoration: none;
    color: var(--text-color);;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.categories a::before {
    content: '•';
    margin-right: 10px;
    color: var(--main-color);
    font-size: 20px;
    transition: transform 0.3s;
}

.categories a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

.categories a:hover::before {
    transform: scale(1.5);
}

.subscribe {
    text-align: center;
}

.subscribe input {
    width: 100%;
    margin-bottom: 15px;
}

.alert{
    font-size: 14px;
    margin: 10px;
    text-align: left;
}

.alert.bg-red{
    color: red;
}

.alert.bg-green{
    color: green;
}

.button,
button {
    width: 100%;
    padding: 12px;
    background: var(--button-gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 20px;
}

.button::before,
button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.button:hover::before,
button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    animation: slideInUp 1s ease-out;
    will-change: transform, opacity;
    height: max-content;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    will-change: transform, box-shadow;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--button-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    position: relative;
}

.card h2 {
    font-weight: 600;
    transition: color 0.3s;
}

.card:hover h2 {
    color: var(--main-color);
}

.card p {
    color: var(--text-color);;
    margin-bottom: 15px;
}

.card .read-more {
    color: var(--link-color);;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.card .read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
}

.card:hover .read-more::after {
    transform: translateX(5px);
}

.archive-title{
    margin-bottom: 0;
    grid-column: 1 / -1;
}

.pagination{
    grid-column: 1 / -1;
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination span,
.pagination a{
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    background: var(--main-color);
    color: #fff;
    line-height: 30px;
    border-radius: 5px;
    text-decoration: none;
}

.pagination span{
    opacity: 0.3;
}

/* Latest Posts */
.latest {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    animation: slideInRight 1s ease-out;
    will-change: transform, opacity;
    height: fit-content;
}

.latest h3 {
    margin-bottom: 20px;
    color: var(--heading-color);
    font-weight: 600;
    position: relative;
}

.latest h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #45b7d1, #96ceb4);
}

.latest ul {
    list-style: none;
}

.latest li {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, background;
}

.latest li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--main-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.latest li:hover::before {
    transform: scaleY(1);
}

.latest li:hover {
    background: rgba(255,107,107,0.1);
    transform: translateX(5px);
}

.latest a {
    text-decoration: none;
    color: var(--text-color);;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding-left: 10px;
}

.latest a:hover {
    color: var(--main-color);
}

/* Footer */
footer {
    background: var(--footer-gradient);
    color: var(--footer-text-color);
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--main-color);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--main-color);
}

.contact-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    color: var(--footer-text-color);
    font-size: 14px;
}

.footer-bottom a{
    color: var(--main-color);
    font-weight: 600;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 50px 0px;
    }

    .latest, .sidebar {
        order: 2;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    header {
        height: 300px;
    }

    .typewriter {
        font-size: 2em;
    }

    .typewriter-subtitle {
        font-size: 1em;
    }

    .content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Single page */
.container:has(.content-single) {
    grid-template-columns: 1fr 250px;
    gap: 30px;
}

.content-single {
    max-width: none;
}

.post-single {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-content {
    padding: 40px;
}

.post-title {
    color: var(--heading-color);;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--text-color);;
    font-size: 0.9em;
}

.post-body {
    line-height: 1.8;
}

/* Gutenberg Block Styles */
.wp-block-paragraph {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

.wp-block-heading {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--heading-color);;
    font-weight: 600;
}

.wp-block-heading.is-style-large {
    font-size: 2.5em;
    color: var(--main-color);
}

.wp-block-quote {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--main-color);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2em;
    color: var(--heading-color);;
}

.wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--text-color);;
    font-style: normal;
}

.wp-block-list {
    margin: 20px 0;
    padding-left: 20px;
}

.wp-block-list ul,
.wp-block-list ol {
    list-style-position: inside;
    margin-bottom: 15px;
}

.wp-block-list li {
    margin-bottom: 10px;
    color: #555;
}

.wp-block-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.wp-block-image figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--text-color);;
    font-style: italic;
}

.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.wp-block-gallery .blocks-gallery-item img {
    border-radius: 10px;
    height: 200px;
    object-fit: cover;
}

.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.wp-block-column {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.wp-block-media-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
}

.wp-block-media-text .wp-block-media-text__media img {
    border-radius: 15px;
    height: 300px;
    object-fit: cover;
}

.wp-block-media-text .wp-block-media-text__content {
    padding: 20px;
}

.wp-block-pullquote {
    background: linear-gradient(135deg, var(--link-color), #45b7d1);
    color: white;
    padding: 40px;
    margin: 30px 0;
    border-radius: 15px;
    text-align: center;
    font-size: 1.5em;
    font-style: italic;
}

.wp-block-pullquote cite {
    display: block;
    margin-top: 20px;
    font-size: 1em;
    opacity: 0.9;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.wp-block-table th,
.wp-block-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wp-block-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--heading-color);;
}

.wp-block-separator {
    border: none;
    border-top: 2px solid var(--link-color);;
    margin: 40px 0;
    height: 1px;
}

.wp-block-separator.is-style-wide {
    border-top-width: 4px;
}

.wp-block-code {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid var(--main-color);
}

.wp-block-verse {
    background: rgba(78, 205, 196, 0.1);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    border-left: 4px solid var(--link-color);;
}

.wp-block-archives,
.wp-block-categories,
.wp-block-latest-posts {
    list-style: none;
    padding: 0;
}

.wp-block-archives li,
.wp-block-categories li,
.wp-block-latest-posts li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.wp-block-archives a,
.wp-block-categories a,
.wp-block-latest-posts a {
    text-decoration: none;
    color: var(--text-color);;
    transition: color 0.3s;
}

.wp-block-archives a:hover,
.wp-block-categories a:hover,
.wp-block-latest-posts a:hover {
    color: var(--main-color);
}

.wp-block-tag-cloud a {
    display: inline-block;
    background: #f8f9fa;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);;
    transition: all 0.3s;
    font-size: 0.9em;
}

.wp-block-tag-cloud a:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive for single page */
@media (max-width: 1024px) {
    .container:has(.content-single){
        grid-template-columns: 1fr;
    }
    .container:has(.content-single) .latest{
        order: initial;
    }
}
@media (max-width: 768px) {
    .wp-block-media-text {
        grid-template-columns: 1fr;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 2em;
    }
    
    .wp-block-pullquote {
        padding: 20px;
        font-size: 1.2em;
    }
    .wp-block-quote{
        font-size: 16px;
    }
    .post-featured-image{
        height: 250px;
    }
}

/* BreadCrrumbs */
.breadcrumbs {
    grid-column: 1 / -1;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color);;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: var(--main-color);
    font-weight: bold;
}

.breadcrumb-item a {
    color: var(--text-color);;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--main-color);
}

.breadcrumb-item.current {
    color: var(--heading-color);;
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb-list {
        gap: 5px;
        font-size: 0.8em;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 5px;
    }
}

/* Leave a reply */
.comment-respond{
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    padding: 20px;
}

input{
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--main-color);
    outline: none;
    box-shadow: 0 0 10px var(--main-color);
}

textarea{
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: var(--main-color);
    outline: none;
    box-shadow: 0 0 10px var(--main-color);
}

.comment-respond label{
    display: block;
}

.comment-form{
    display: flex;
    flex-flow: row wrap;
    margin: 0 -15px;
}

.comment-form p.comment-form-comment{
    width: 100%;
    padding: 0 15px;
}

.comment-form p.comment-form-comment textarea{
    width: 100%;
}

.comment-form p{
    padding: 10px 15px;
    width: 33.33%;
}

.comment-form p input{
    width: 100%;
}

.comment-form .comment-form-cookies-consent{
    width: 100%;
    display: flex;
    align-items: center;
}

.comment-form .comment-form-cookies-consent input{
    width: 15px;
    height: 15px;
    margin-right: 8px;
}

.comment-form .form-submit .submit {
    padding: 12px 30px;
    background: var(--button-gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: auto;
    line-height: 20px;
}

.comment-form .form-submit .submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.comment-form .form-submit .submit:hover::before {
    left: 100%;
}

.comment-form .form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

.comment-form .comment-notes{
    width: 100%;
}

.commentlist{
    display: flex;
    flex-flow: column;
}

.commentlist li{
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    padding: 20px;
}

.commentlist li .children{
    margin-left: 15px;
}

.comment-author.vcard{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-flow: row wrap;
}

.commentlist li a{
    color: var(--main-color)
}

.comment-reply-link,
.comment-meta{
    margin: 10px 0px;
    font-size: 14px;
    display: block;
}

footer.comment-meta{
    padding: initial;
    background: initial;
    color: initial;
}

.avatar {
    border-radius: 50%;
}

.children li{
    box-shadow: none;
    border-radius: 0;
}

.children{
    border-top: 1px solid #e0e0e0;;
}

@media (max-width: 768px) {
    .comment-form p{
        width: 100%;
    }
}

/* Post Share Buttons */
.post-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--link-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.post-share h4 {
    color: var(--heading-color);
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--button-gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.2em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    will-change: transform, box-shadow;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
    color: var(--white);
}

.share-btn.facebook {
    background: linear-gradient(45deg, #3b5998, #4267b2);
}

.share-btn.facebook:hover {
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.4);
}

.share-btn.x {
    background: linear-gradient(45deg, #0f1419, #000);
}

.share-btn.x:hover {
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.share-btn.whatsapp {
    background: linear-gradient(45deg, #25d366, #20ba5a);
}

.share-btn.whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    display: flex;
}

.post-navigation a{
    display: inline-block;
    width: auto;
    text-decoration: none;
    min-width: 120px;
    text-align: center;
}

.post-navigation .nav-next{
    margin-left: auto;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .share-buttons {
        gap: 8px;
    }
}

/* Animations */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* contact us */
.page-template-page-contact article{
    grid-column: 1 / -1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.wpcf7-form{
    margin-top: 40px;
}

.col-wrapper{
    display: flex;
    margin: 0 -15px;
    flex-flow: row wrap;
}

.col-50{
    width: 50%;
    padding: 10px 15px;
}

.wpcf7-form br{
    display: none;
}

.wpcf7-form label{
    display: block;
    margin-bottom: 5px;
}

.wpcf7-form input{
    width: 100%;
}

.wpcf7-form textarea{
    width: 100%;
    margin-bottom: 10px;
}

.wpcf7-form .wpcf7-submit {
    width: auto;
    min-width: 200px;
    background: var(--button-gradient);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    line-height: 20px;
}

.default_page{
    grid-column: 1 / -1;
}

.default_page .content{
    display: block;
}

@media (max-width: 768px) {
    .wpcf7-form .col-50{
        width: 100%;
    }
}

/* WordPress Caption Styles */
.wp-caption {
    margin-bottom: 20px;
    max-width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.wp-caption:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wp-caption img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

.wp-caption:hover img {
    transform: scale(1.02);
}

.wp-caption-text {
    padding: 15px;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-color);
    font-style: italic;
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid #eee;
}

/* Gallery Caption */
.gallery-caption {
    font-size: 0.9em;
    color: var(--text-color);
    font-style: italic;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 10px 10px;
    margin-top: 5px;
}

.gallery-caption:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Sticky Post */
.sticky {
    position: relative;
}

.sticky::before {
    content: '⭐';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--button-gradient);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: var(--box-shadow);
    z-index: 1;
    transition: transform 0.3s ease;
}

.sticky:hover::before {
    transform: scale(1.1) rotate(10deg);
}

.sticky .card::before {
    background: linear-gradient(90deg, var(--main-color), #ff6b6b);
}

/* By Post Author Comment */
.bypostauthor {
    background: rgba(255, 107, 107, 0.05);
    border-left: 4px solid var(--main-color);
    padding-left: 15px;
    margin-left: -15px;
    transition: all 0.3s ease;
}

.bypostauthor .comment-author {
    color: var(--main-color);
    font-weight: 600;
}

.bypostauthor:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateX(5px);
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 50%;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
    max-width: 50%;
}

.aligncenter {
    display: block;
    margin: 20px auto;
    text-align: center;
}

.alignright,
.alignleft,
.aligncenter {
    transition: all 0.3s ease;
}

.alignright:hover,
.alignleft:hover,
.aligncenter:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .alignright,
    .alignleft {
        float: none;
        margin: 20px auto;
        max-width: 100%;
        display: block;
    }
}