/*
Theme Name: WordPlus Studio (TT25)
Theme URI: 
Author: Rajesh Rathod
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wordplus-studio-tt25
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/* WordPress Single Post Page Custom Styles */
/* Target only single post pages using body class */

/* Main post content container */
.single-post .entry-content,
.single .entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #333;
}

/* Headings Styles */
.single-post .entry-content h1,
.single .entry-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
}

.single-post .entry-content h2,
.single .entry-content h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    color: #34495e;
    margin: 2.5rem 0 1.25rem 0;
    padding-left: 1rem;
    border-left: 4px solid #e74c3c;
}

.single-post .entry-content h3,
.single .entry-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    position: relative;
}

.single-post .entry-content h3:before,
.single .entry-content h3:before {
    content: "▸";
    color: #3498db;
    font-weight: bold;
    margin-right: 0.5rem;
}

.single-post .entry-content h4,
.single .entry-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    color: #34495e;
    margin: 1.75rem 0 0.75rem 0;
}

.single-post .entry-content h5,
.single .entry-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-post .entry-content h6,
.single .entry-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #7f8c8d;
    margin: 1.25rem 0 0.5rem 0;
    font-style: italic;
}

/* Paragraphs */
.single-post .entry-content p,
.single .entry-content p {
    margin: 1.5rem 0;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
    text-align: justify;
}

.single-post .entry-content p:first-of-type,
.single .entry-content p:first-of-type {
    font-size: 1.2rem;
    font-weight: 400;
    color: #2c3e50;
    margin-top: 0;
}

/* Lists */
.single-post .entry-content ul,
.single-post .entry-content ol,
.single .entry-content ul,
.single .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post .entry-content ul li,
.single-post .entry-content ol li,
.single .entry-content ul li,
.single .entry-content ol li {
    margin: 0.75rem 0;
    line-height: 1.7;
    color: #444;
}

.single-post .entry-content ul li::marker,
.single .entry-content ul li::marker {
    color: #3498db;
}

/* Blockquotes */
.single-post .entry-content blockquote,
.single .entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 5px solid #3498db;
    font-style: italic;
    font-size: 1.15rem;
    color: #555;
    position: relative;
}

.single-post .entry-content blockquote:before,
.single .entry-content blockquote:before {
    content: """;
    font-size: 4rem;
    color: #3498db;
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    opacity: 0.3;
}

/* Links */
.single-post .entry-content a,
.single .entry-content a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post .entry-content a:hover,
.single .entry-content a:hover {
    color: #2980b9;
    text-decoration: none;
}

/* Images */
.single-post .entry-content img,
.single .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Code blocks */
.single-post .entry-content pre,
.single .entry-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.single-post .entry-content code,
.single .entry-content code {
    background: #f1f2f6;
    color: #e74c3c;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Tables */
.single-post .entry-content table,
.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.single-post .entry-content table th,
.single-post .entry-content table td,
.single .entry-content table th,
.single .entry-content table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.single-post .entry-content table th,
.single .entry-content table th {
    background: #3498db;
    color: white;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-post .entry-content,
    .single .entry-content {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .single-post .entry-content h1,
    .single .entry-content h1 {
        font-size: 2rem;
    }
    
    .single-post .entry-content h2,
    .single .entry-content h2 {
        font-size: 1.6rem;
    }
    
    .single-post .entry-content h3,
    .single .entry-content h3 {
        font-size: 1.4rem;
    }
    
    .single-post .entry-content h4,
    .single .entry-content h4 {
        font-size: 1.2rem;
    }
    
    .single-post .entry-content h5,
    .single .entry-content h5 {
        font-size: 1.1rem;
    }
    
    .single-post .entry-content h6,
    .single .entry-content h6 {
        font-size: 1rem;
    }
}

/* Alternative targeting if your theme uses different classes */
.single-post .wp-block-post-content,
.single .wp-block-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Apply the same styles to wp-block-post-content */
.single-post .wp-block-post-content h1,
.single-post .wp-block-post-content h2,
.single-post .wp-block-post-content h3,
.single-post .wp-block-post-content h4,
.single-post .wp-block-post-content h5,
.single-post .wp-block-post-content h6,
.single-post .wp-block-post-content p,
.single .wp-block-post-content h1,
.single .wp-block-post-content h2,
.single .wp-block-post-content h3,
.single .wp-block-post-content h4,
.single .wp-block-post-content h5,
.single .wp-block-post-content h6,
.single .wp-block-post-content p {
    /* Inherit all styles from above */
}