@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --storm-primary: #ff9800;
    --storm-primary-dark: #e68a00;
    --storm-text-main: #1a1a1a;
    --storm-text-muted: #555;
    --storm-bg-card: #ffffff;
    --storm-bg-body: #fdfdfd;
    --storm-border-radius: 12px;
    --storm-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --storm-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --storm-font: 'Outfit', sans-serif;
}

body {
    font-family: var(--storm-font);
    background-color: var(--storm-bg-body);
}

/* Grid Layout */
.storm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.storm-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 992px) {
    .storm-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .storm-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Post Card Design */
.storm-post-card {
    background: var(--storm-bg-card);
    border-radius: var(--storm-border-radius);
    overflow: hidden;
    box-shadow: var(--storm-shadow);
    transition: var(--storm-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

.storm-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.storm-post-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.storm-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--storm-transition);
}

.storm-post-card:hover .storm-post-thumbnail img {
    transform: scale(1.1);
}

/* Category Badge */
.storm-post-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--storm-primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

/* Post Content */
.storm-post-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.storm-post-title {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.storm-post-title a {
    text-decoration: none;
    color: var(--storm-text-main);
    transition: var(--storm-transition);
}

.storm-post-title a:hover {
    color: var(--storm-primary);
}

.storm-post-excerpt {
    color: var(--storm-text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Post Meta */
.storm-post-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
}

.storm-read-more {
    color: var(--storm-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.storm-read-more:hover {
    color: var(--storm-primary-dark);
}

.storm-post-date {
    font-size: 13px;
    color: #aaa;
}

/* Pagination */
.storm-pagination {
    margin: 60px 0;
    text-align: center;
}

.storm-pagination .page-numbers {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: var(--storm-text-main);
    font-weight: 600;
    transition: var(--storm-transition);
}

.storm-pagination .page-numbers.current {
    background: var(--storm-primary);
    color: #fff;
    border-color: var(--storm-primary);
}

.storm-pagination .page-numbers:hover:not(.current) {
    background: var(--storm-primary);
    color: #fff;
}

/* Single Post Styles - FULL WIDTH & RESPONSIVE */
body.single-post {
    background-color: #f0ede7; /* Beige background from image */
    margin: 0;
    padding: 0;
}

.storm-single-post {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    animation: stormFadeIn 0.8s ease-out;
}

.storm-single-header {
    max-width: 1000px;
    margin: 60px auto 20px;
    padding: 0 20px;
}

.storm-single-featured {
    width: 100%;
    margin: 40px 0;
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

.storm-single-featured img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.storm-single-title {
    font-size: clamp(32px, 5vw, 42px);
    margin: 0 0 20px 0;
    line-height: 1.1;
    font-weight: 700;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .storm-single-title {
        font-size: 28px;
    }
}

.storm-single-meta {
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.storm-single-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storm-single-meta .storm-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.storm-single-meta a {
    color: inherit;
    text-decoration: none;
}

.storm-single-body {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
    color: #444;
}

.storm-single-body p {
    margin-bottom: 25px;
}

/* Breadcrumb - Adjusted for image style */
.storm-breadcrumb {
    font-size: 11px;
    color: #999;
    margin: 0 0 20px 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Author Box & Related - Cleaned up */
.storm-author-box {
    max-width: 800px;
    margin: 60px auto;
    background: #fff;
    border: none;
    box-shadow: none;
    padding: 30px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
}

@media (max-width: 600px) {
    .storm-author-box {
        flex-direction: column;
        text-align: center;
        margin: 40px 20px;
    }
    .storm-author-avatar img {
        margin-right: 0 !important;
        margin-bottom: 20px;
    }
}

.storm-author-avatar img {
    border-radius: 50%;
    margin-right: 30px;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.storm-author-label {
    display: block;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--storm-primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.storm-author-info h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: var(--storm-text-main);
}

.storm-author-info p {
    margin: 0;
    color: var(--storm-text-muted);
    line-height: 1.6;
}

/* Related Posts - MATCHING IMAGE STYLE */
.storm-related-posts {
    max-width: 1000px;
    margin: 80px auto;
    padding: 40px 20px;
    border-top: 1px solid #ddd;
}

.storm-related-posts h3 {
    margin-bottom: 40px;
    font-size: 24px;
    text-align: left;
    font-weight: 600;
    color: #222;
}

.storm-related-posts h3::after {
    display: none; /* Remove previous underline */
}

/* Comments Section */
.storm-comments-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 40px;
    background: #fff;
}

.storm-comments-section h2.comments-title,
.storm-comments-section h3#reply-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #222;
}

/* Basic Comment Form Styling */
#commentform p {
    margin-bottom: 20px;
}

#commentform label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

#commentform input[type="submit"] {
    background: var(--storm-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--storm-transition);
}

#commentform input[type="submit"]:hover {
    background: var(--storm-primary-dark);
}

