/* Blog Post Page Styles - Monster Fairings Theme */

/* ========================================
   GLOBAL BLOG POST STYLES
   ======================================== */

/* Main blog post container */
.blog-text {
    font-family: 'Switser', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #2D2D2D;
    max-width: 100%;
}

/* ========================================
   TYPOGRAPHY & HEADINGS
   ======================================== */

/* H1 - Main post title (already styled in banner) */
h1 {
    font-family: 'HelveticaNeueLT 87 Hvy Cn', sans-serif !important;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 2rem 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* H2 - Section headings */
.blog-text h2 {
    font-family: 'HelveticaNeueLT 87 Hvy Cn', sans-serif !important;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2D2D2D;
    font-style: normal;
    margin: 2.5rem 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    display: inline-block;
    border-bottom: 3px solid #DF213D;
    padding-bottom: 0.5rem;
}

/* H3 - Subsection headings */
.blog-text h3 {
    font-family: 'HelveticaNeueLT 87 Hvy Cn', sans-serif !important;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: #2D2D2D;
    margin: 2rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

/* H4 - Minor headings */
.blog-text h4 {
    font-family: 'HelveticaNeueLT 87 Hvy Cn', sans-serif !important;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #2D2D2D;
    margin: 1.5rem 0 1rem 0;
}

/* H5 & H6 */
.blog-text h5,
.blog-text h6 {
    font-family: 'HelveticaNeueLT 87 Hvy Cn', sans-serif !important;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #2D2D2D;
    margin: 1.25rem 0 0.75rem 0;
}

/* Bold text */
.blog-text b,
.blog-text strong {
    font-family: 'HelveticaNeueLT 87 Hvy Cn', sans-serif !important;
}

/* ========================================
   PARAGRAPHS & TEXT
   ======================================== */

/* Main paragraph text */
.blog-text p {
    font-family: 'Switser', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #2D2D2D;
    margin: 0 0 1.5rem 0;
    font-weight: 400;
}

/* Lead paragraph */
.blog-text p.lead {
    font-size: 18px;
    line-height: 1.7;
    color: #4A4A4A;
    margin-bottom: 2rem;
}

/* Small text */
.blog-text small,
.blog-text .small {
    font-size: 14px;
    line-height: 1.6;
    color: #6C757D;
}

/* ========================================
   LISTS
   ======================================== */

/* Unordered lists */
.blog-text ul {
    font-family: 'Switser', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #2D2D2D;
    margin: 0 0 1.5rem 2rem;
    padding: 0;
}

.blog-text ul li {
    position: relative;
}

.blog-text ul li::before {
    content: "•";
    color: #2D2D2D;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: -1.5rem;
    top: -2px;
}

/* Ordered lists */
.blog-text ol {
    font-family: 'Switser', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #2D2D2D;
    margin: 0 0 1.5rem 2rem;
    padding: 0;
    counter-reset: item;
}

.blog-text ol li {
    position: relative;
    counter-increment: item;
}

.blog-text ol li::before {
    content: counter(item) ".";
    color: #2D2D2D;
    font-weight: bold;
    position: absolute;
    left: -2rem;
    top: 0;
}

/* Nested lists */
.blog-text ul ul,
.blog-text ol ol,
.blog-text ul ol,
.blog-text ol ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
}

/* ========================================
   TABLES
   ======================================== */

/* Table container */
.wp-block-table {
    padding: 0px 2px;
}

.blog-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'Switser', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #E9ECEF;
}

/* Table headers */
.blog-text table thead {
    border-bottom: 0px;
}

.blog-text table th {
    background: #DF213D;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem;
    text-align: left;
    border: none;
    letter-spacing: 0.5px;
}

/* Table cells */
.blog-text table td {
    padding: 0.75rem;
    border: none;
    color: #2D2D2D;
    vertical-align: top;
}

/* Table row hover effect */
.blog-text table tbody tr:hover {
    background-color: #F8F9FA;
}

/* Striped rows */
.blog-text table tbody tr:nth-child(even) {
    background-color: #F8F9FA;
}

/* ========================================
   IMAGES & MEDIA
   ======================================== */

/* Featured images */
.blog-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image captions */
.blog-text figcaption {
    font-family: 'Switser', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #6C757D;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Gutenberg image blocks */
.blog-text .wp-block-image {
    margin: 2rem 0;
}

.blog-text .wp-block-image img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   BLOCKQUOTES
   ======================================== */

.blog-text blockquote {
    font-family: 'Switser', sans-serif;
    font-size: 20px;
    line-height: 1.7;
    font-style: italic;
    color: #4A4A4A;
    margin: 2rem 0;
    padding: 2rem;
    background: #F8F9FA;
    border-left: 5px solid #DF213D;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.blog-text blockquote::before {
    content: "\201C";
    font-family: 'HelveticaNeueLT Com 75 Bd', sans-serif;
    font-size: 4rem;
    color: #DF213D;
    position: absolute;
    top: -10px;
    left: 1rem;
    line-height: 1;
}

.blog-text blockquote p {
    margin: 0;
    font-size: 20px;
    line-height: 1.7;
}

/* ========================================
   LINKS & BUTTONS
   ======================================== */

/* Links */
.blog-text a {
    color: #DF213D;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.blog-text a:hover {
    color: #B91C3A;
    border-bottom-color: #DF213D;
}

/* Buttons */
.blog-text .btn {
    font-family: 'HelveticaNeueLT Com 75 Bd', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.blog-text .btn-primary {
    background: #DF213D;
    border-color: #DF213D;
    color: #FFFFFF;
}

.blog-text .btn-primary:hover {
    background: #B91C3A;
    border-color: #B91C3A;
    color: #FFFFFF;
}

.blog-text .btn-outline-secondary {
    border-color: #6C757D;
    color: #6C757D;
}

.blog-text .btn-outline-secondary:hover {
    background: #6C757D;
    border-color: #6C757D;
    color: #FFFFFF;
}

/* ========================================
   CODE & PRE
   ======================================== */

.blog-text code {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    background: #F8F9FA;
    color: #DF213D;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #E9ECEF;
}

.blog-text pre {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;
    background: #2D2D2D;
    color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border-left: 5px solid #DF213D;
}

/* ========================================
   GUTENBERG SPECIFIC BLOCKS
   ======================================== */

/* Cover block */
.blog-text .wp-block-cover {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Gallery block */
.blog-text .wp-block-gallery {
    margin: 2rem 0;
}

.blog-text .wp-block-gallery .blocks-gallery-item {
    border-radius: 8px;
    overflow: hidden;
}

/* Columns block */
.blog-text .wp-block-columns {
    margin: 2rem 0;
    gap: 2rem;
}

.blog-text .wp-block-column {
    padding: 0;
}

/* Separator */
.blog-text .wp-block-separator {
    border: none;
    height: 3px;
    background: #DF213D;
    margin: 3rem auto;
    max-width: 100px;
}

/* Spacer */
.blog-text .wp-block-spacer {
    margin: 0;
}

/* ========================================
   CATEGORY BADGES
   ======================================== */

/* Category badges styling */
.blog-text .badge {
    font-family: 'HelveticaNeueLT Com 75 Bd', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #DF213D;
    color: #FFFFFF;
    border: none;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

/* ========================================
   NAVIGATION
   ======================================== */

/* Previous/Next navigation */
.blog-text .post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #E9ECEF;
    border-bottom: 2px solid #E9ECEF;
}

/* Button link styles */
.btn-link {
    color: #DF213D;
    font-family: 'HelveticaNeueLT Com 75 Bd', sans-serif;
    font-weight: bold;
}

.btn-link:hover {
    color: #000;
    text-decoration: none;
}

/* ========================================
   768px MEDIA QUERY - MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    /* Typography adjustments */
    .blog-text {
        font-size: 16px;
        line-height: 1.7;
    }
    
    h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin: 1.5rem 0 1rem 0;
    }
    
    .blog-text h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .blog-text h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .blog-text h4 {
        font-size: 1.2rem;
        margin: 1.25rem 0 0.75rem 0;
    }
    
    /* Paragraph adjustments */
    .blog-text p {
        font-size: 16px;
        line-height: 1.7;
        margin: 0 0 1.25rem 0;
    }
    
    .blog-text p.lead {
        font-size: 18px;
        line-height: 1.6;
    }
    
    /* List adjustments */
    .blog-text ul,
    .blog-text ol {
        font-size: 16px;
        line-height: 1.7;
        margin: 0 0 1.25rem 1.5rem;
    }
    
    /* Table adjustments */
    .blog-text table {
        font-size: 16px;
        margin: 1.5rem 0;
    }
    
    .blog-text table th,
    .blog-text table td {
        padding: 0.6rem;
    }
    
    /* Blockquote adjustments */
    .blog-text blockquote {
        font-size: 18px;
        line-height: 1.6;
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
    
    .blog-text blockquote p {
        font-size: 18px;
        line-height: 1.6;
    }
    
    /* Image adjustments */
    .blog-text img {
        margin: 1rem 0;
    }
    
    /* Featured image mobile adjustments */
    .blog-featured-image {
        max-height: 600px;
    }
    
    .blog-featured-image img {
        max-height: 600px;
    }
    
    /* Button adjustments */
    .blog-text .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    /* Category badges */
    .blog-text .badge {
        font-size: 11px;
        padding: 5px 10px;
        margin-right: 6px;
        margin-bottom: 6px;
    }
    
    /* Navigation adjustments */
    .blog-text .post-navigation {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    /* Gutenberg blocks mobile adjustments */
    .blog-text .wp-block-columns {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .blog-text .wp-block-cover {
        margin: 1.5rem 0;
    }
    
    .blog-text .wp-block-gallery {
        margin: 1.5rem 0;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .blog-text {
        font-size: 14px;
        line-height: 1.6;
        color: #000000;
    }
    
    h1,
    .blog-text h2,
    .blog-text h3,
    .blog-text h4,
    .blog-text h5,
    .blog-text h6 {
        color: #000000;
        page-break-after: avoid;
    }
    
    .blog-text img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .blog-text table {
        page-break-inside: avoid;
    }
} 

/* ========================================
   BANNER & FEATURED IMAGE
   ======================================== */

/* Banner mobile height */
@media (max-width: 768px) {
    .cmn-bnr.position-relative {
        min-height: 250px;
    }
}

/* Featured image */
.blog-featured-image {
    max-height: 800px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-featured-image img {
    max-height: 800px;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
} 