/* Blog Post Page Styles */

/* Post Hero Section */
.post-hero-section {
    padding: 140px 0 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.post-hero-content {
    text-align: center;
}

.post-breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #6c757d;
}

.post-breadcrumbs a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-breadcrumbs a:hover {
    color: rgb(29, 27, 24);
}

.post-breadcrumbs span {
    margin: 0 8px;
}

.post-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin-bottom: 25px;
}

.post-meta-info {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #6c757d;
}

.post-meta-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-info i {
    font-size: 1rem;
}

/* Post Article */
.post-article {
    padding: 60px 0 80px 0;
    background: white;
}

/* Post Content - All typography styles for WYSIWYG editor */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Paragraphs */
.post-content p {
    margin-bottom: 1.5rem;
}

.post-content p:first-child {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.7;
    color: #495057;
}

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 700;
    color: #000;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.post-content h1 {
    font-size: 2.5rem;
}

.post-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    padding-top: 1rem;
}

.post-content h3 {
    font-size: 1.6rem;
}

.post-content h4 {
    font-size: 1.3rem;
}

.post-content h5 {
    font-size: 1.15rem;
}

.post-content h6 {
    font-size: 1rem;
}

/* Lists */
.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-content li:last-child {
    margin-bottom: 0;
}

/* Links */
.post-content a {
    color: rgb(29, 27, 24);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #000;
}

/* Strong and Em */
.post-content strong,
.post-content b {
    font-weight: 600;
    color: #000;
}


/* Strong and Em */
.post-content strong,
.post-content b {
    font-weight: 600;
    color: #000;
}

.post-content em,
.post-content i {
    font-style: italic;
}

/* Blockquote */
.post-content blockquote {
    background: #f8f9fa;
    border-left: 5px solid rgb(29, 27, 24);
    padding: 2rem 2rem 2rem 3rem;
    margin: 2.5rem 0;
    border-radius: 0 10px 10px 0;
    position: relative;
    font-size: 1.15rem;
    font-style: italic;
    color: #495057;
}

.post-content blockquote:before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 25px;
    top: 25px;
    font-size: 2rem;
    color: rgb(29, 27, 24);
    opacity: 0.3;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.post-content code {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #d63384;
}

.post-content pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* Tables */
.post-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.post-content table thead {
    background: rgb(29, 27, 24);
    color: white;
}

.post-content table th,
.post-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.post-content table th {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content table tbody tr:hover {
    background: #f8f9fa;
}

.post-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Images */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Float Image in Post Content */
.post-content .post-float-image {
    float: right;
    margin: 0 0 25px 30px;
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-content .post-float-image-left {
    float: left;
    margin: 0 30px 25px 0;
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Horizontal Rule */
.post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #e9ecef, transparent);
    margin: 3rem 0;
}

/* Post Footer */
.post-footer {
    border-top: 2px solid #e9ecef;
    padding-top: 2.5rem;
    margin-top: 3rem;
}

.post-tags-section,
.post-share-section {
    margin-bottom: 2rem;
}

.post-tags-section strong,
.post-share-section strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    display: block;
    margin-bottom: 1rem;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 8px 18px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgb(29, 27, 24);
    color: white;
    transform: translateY(-2px);
}

/* Share Buttons */
.post-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.telegram {
    background: #0088cc;
}

.share-button.facebook:hover {
    background: #1664d9;
}

.share-button.twitter:hover {
    background: #1a8cd8;
}

.share-button.linkedin:hover {
    background: #006399;
}

.share-button.telegram:hover {
    background: #0077b3;
}

/* Back to Blog Button */
.back-to-blog {
    margin-top: 3rem;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.btn-back:hover {
    background: rgb(29, 27, 24);
    color: white;
    border-color: rgb(29, 27, 24);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-back i {
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-5px);
}

/* Post CTA Section */
.post-cta-section {
    padding: 80px 0;
    background: white;
}

.cta-content {
    background: linear-gradient(135deg, rgb(29, 27, 24), #333);
    padding: 3.5rem 2.5rem;
    border-radius: 15px;
    color: white;
    text-align: center;
}

.cta-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-content .btn-light {
    background: white;
    color: rgb(29, 27, 24);
    border: none;
    padding: 15px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-content .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .post-hero-section {
        padding: 120px 0 50px 0;
    }
    
    .post-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .post-content {
        font-size: 1.05rem;
    }
    
    .post-content p:first-child {
        font-size: 1.2rem;
    }
    
    .post-content h2 {
        font-size: 1.75rem;
    }
    
    .post-content h3 {
        font-size: 1.4rem;
    }
    
    .post-content .post-float-image,
    .post-content .post-float-image-left {
        max-width: 50%;
        margin: 0 0 20px 25px;
    }
    
    .post-content .post-float-image-left {
        margin: 0 25px 20px 0;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .post-hero-section {
        padding: 110px 0 40px 0;
    }
    
    .post-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .post-meta-info {
        gap: 15px;
        font-size: 0.85rem;
    }
    
    .post-breadcrumbs {
        font-size: 0.85rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content p:first-child {
        font-size: 1.1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .post-content h4 {
        font-size: 1.15rem;
    }
    
    .post-content ul,
    .post-content ol {
        padding-left: 1.5rem;
    }
    
    .post-content blockquote {
        padding: 1.5rem 1.5rem 1.5rem 2.5rem;
        font-size: 1.05rem;
        margin: 2rem 0;
    }
    
    .post-content blockquote:before {
        font-size: 1.5rem;
        left: 15px;
        top: 20px;
    }
    
    .post-content pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .post-content table {
        font-size: 0.9rem;
    }
    
    .post-content table th,
    .post-content table td {
        padding: 10px 12px;
    }
    
    .post-content img {
        margin: 1.5rem 0;
    }
    
    .post-content .post-float-image,
    .post-content .post-float-image-left {
        float: none;
        max-width: 100%;
        width: 100%;
        margin: 0 0 25px 0;
        display: block;
    }
    
    .post-footer {
        padding-top: 2rem;
        margin-top: 2.5rem;
    }
    
    .post-tags-section strong,
    .post-share-section strong {
        font-size: 1rem;
    }
    
    .tag-item {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    .share-button {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .back-to-blog {
        margin-top: 2.5rem;
    }
    
    .btn-back {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .post-cta-section {
        padding: 60px 0;
    }
    
    .cta-content {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-content .btn-light {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .post-hero-section {
        padding: 100px 0 35px 0;
    }
    
    .post-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .post-meta-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .post-breadcrumbs {
        font-size: 0.8rem;
    }
    
    .post-content h2 {
        font-size: 1.35rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
    }
    
    .post-content blockquote {
        padding: 1.25rem 1.25rem 1.25rem 2rem;
        font-size: 1rem;
    }
    
    .post-content blockquote:before {
        font-size: 1.25rem;
        left: 10px;
        top: 15px;
    }
    
    .post-tags {
        justify-content: center;
    }
    
    .post-share-buttons {
        justify-content: center;
    }
    
    .share-button {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
    
    .cta-content h3 {
        font-size: 1.35rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .post-hero-section {
        background: white !important;
        padding: 20px 0 !important;
    }
    
    .post-share-section,
    .back-to-blog,
    .post-cta-section {
        display: none;
    }
    
    .post-content a {
        text-decoration: none;
        color: #000;
    }
    
    .post-content blockquote {
        page-break-inside: avoid;
    }
    
    .post-content table {
        page-break-inside: avoid;
    }
    
    .post-content h2,
    .post-content h3,
    .post-content h4 {
        page-break-after: avoid;
    }
}




/* Float Image Left */
.post-content .post-float-image-left {
    float: left;
    margin: 0 30px 25px 0;
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
    .post-content .post-float-image-left {
        float: none;
        max-width: 100%;
        width: 100%;
        margin: 0 0 25px 0;
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .post-content .post-float-image-left {
        max-width: 50%;
        margin: 0 25px 20px 0;
    }
}
