/*
Theme Name: Routine of Canada
Theme URI: https://routineofcanada.com
Author: Samikaran Adhikari
Author URI: https://samikaranadhikari.com.np
Description: A custom WordPress theme for Routine of Canada
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: routineofcanada
*/

/* News Detail Content Styles */
.post-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #374151;
    counter-reset: section;
}

/* Headings with decorative elements */
.post-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1F2937;
    margin: 3rem 0 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin: 2.5rem 0 1.25rem;
    display: flex;
    align-items: center;
}

/*.post-content h3::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 3px;
    background: var(--primary-red);
    margin-right: 1rem;
    border-radius: 2px;
}*/

/* List Styles */
.post-content ol {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.post-content ol+ul {
    padding-left: 4rem;
    margin-top: -1rem;
}

.post-content ol+ul>li>ul {
    padding-left: 1.75rem;
}

.post-content ol>li {
    counter-increment: section;
    position: relative;
    padding: 1.5rem 2rem 1.5rem 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #f8fafc 0%, #ffffff 100%);
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-content ol>li:hover {
/*    transform: translateY(-2px);*/
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.post-content ol>li::before {
    content: counter(section);
    position: absolute;
    left: 1.25rem;
    top: 1.5rem;
    font-weight: 700;
    color: #dc3545;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.15);
}

.post-content ol>li>strong {
    font-size: 1.35rem;
    color: #091d50;
    margin-bottom: 1rem;
}

.post-content ol>li>ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.post-content ol>li>ul>li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.875rem;
    color: #374151;
    display: flex;
    align-items: center;
}

.post-content ol>li>ul>li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #dc3545;
    border-radius: 50%;
    margin-top: 0.125rem;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.post-content ol>li>ul>li>ul {
    list-style: none;
    padding-left: 1.75rem;
    margin: 0.75rem 0;
}

.post-content ol>li>ul>li>ul>li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-size: 0.95em;
}

.post-content ol>li>ul>li>ul>li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 0.375rem;
    height: 0.375rem;
    border: 2px solid #dc3545;
    border-radius: 50%;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .post-content ol>li {
        padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    }

    .post-content ol>li::before {
        left: 1rem;
        top: 1.25rem;
        font-size: 1.25rem;
    }
}

/* Modern Links */
.post-content a {
    color: var(--primary-red);
    text-decoration: none;
    background: linear-gradient(to bottom, transparent 95%, var(--primary-red) 95%);
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

.post-content a:hover {
    background-size: 100% 100%;
}

/* Stylish Blockquotes */
.post-content blockquote {
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
    background: linear-gradient(to right, #F3F4F6 0%, #FFFFFF 100%);
    border-left: 4px solid var(--primary-red);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #4B5563;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-red);
    opacity: 0.2;
    position: absolute;
    left: 1rem;
    top: -1rem;
}

/* Enhanced Images */
.post-content img {
    max-width: 100%;
    height: auto;
    /* border-radius: 1rem; */
    /* margin: 2.5rem 0; */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.post-content figure {
    margin: 2.5rem 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 1rem;
    font-style: italic;
}

/* Modern Code Blocks */
.post-content pre {
    background: #1F2937;
    color: #F3F4F6;
    padding: 1.75rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin: 2.5rem 0;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.post-content code {
    background: #F3F4F6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    border: 1px solid #E5E7EB;
}

/* Enhanced Tables */
.post-content table {
    width: 100%;
    margin: 2.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.post-content th {
    background: #F9FAFB;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.post-content th,
.post-content td {
    padding: 1rem;
    border: 1px solid #E5E7EB;
}

.post-content tr:hover {
    background-color: #F9FAFB;
}

/* Stylish Custom Boxes */
.post-content .highlight-box {
    background: linear-gradient(135deg, #FEF2F2 0%, #FFF 100%);
    border: 1px solid #FEE2E2;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.post-content .info-box {
    background: linear-gradient(135deg, #EFF6FF 0%, #FFF 100%);
    border: 1px solid #DBEAFE;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* First Paragraph Special Styling */
.post-content>p:first-of-type {
    font-size: 1.25rem;
    color: #4B5563;
    line-height: 1.7;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(to right, #F9FAFB 0%, #FFFFFF 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-content {
        font-size: 1.125rem;
    }

    .post-content h2 {
        font-size: 1.75rem;
    }

    .post-content h3 {
        font-size: 1.375rem;
    }

    .post-content>p:first-of-type {
        font-size: 1.125rem;
        padding: 1.25rem 1rem;
    }

    .post-content blockquote {
        padding: 1.5rem;
    }
}

.post-navigation {
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.post-nav-link:hover .post-navigation {
    border-color: #dc3545;
    box-shadow: 0 0.125rem 0.25rem rgba(220, 53, 69, 0.1);
}

.nav-title {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

.post-nav-link:hover .nav-icon i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}