/* Article Typography Styles */
.article-typography {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.8;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 20px 0;
}

.theme-day .article-typography {
    color: #344161;
}

.article-typography p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-typography h1, 
.article-typography h2, 
.article-typography h3, 
.article-typography h4, 
.article-typography h5, 
.article-typography h6 {
    color: #ffffff;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.theme-day .article-typography h1, 
.theme-day .article-typography h2, 
.theme-day .article-typography h3, 
.theme-day .article-typography h4, 
.theme-day .article-typography h5, 
.theme-day .article-typography h6 {
    color: #222F43;
}

.article-typography h1 {
    font-size: 2rem;
}

.article-typography h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid rgba(230, 240, 255, 0.1);
    padding-bottom: 0.5rem;
}

.theme-day .article-typography h2 {
    border-bottom: 1px solid rgba(52, 65, 97, 0.1);
}

.article-typography h3 {
    font-size: 1.5rem;
}

.article-typography h4 {
    font-size: 1.25rem;
}

.article-typography ul, 
.article-typography ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-typography ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.article-typography ol li {
    list-style: decimal;
    margin-bottom: 0.5rem;
}

.article-typography blockquote {
    border-left: 4px solid #0EA5EA;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(14, 165, 234, 0.1);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.theme-day .article-typography blockquote {
    background-color: rgba(14, 165, 234, 0.05);
}

.article-typography blockquote p {
    margin-bottom: 0;
}

.article-typography a {
    color: #0EA5EA;
    text-decoration: none;
    border-bottom: 1px dotted #0EA5EA;
    transition: all 0.3s ease;
}

.theme-day .article-typography a {
    color: #0A7FB5;
    border-bottom: 1px dotted #0A7FB5;
}

.article-typography a:hover {
    color: #1CC2E7;
    border-bottom: 1px solid #1CC2E7;
}

.theme-day .article-typography a:hover {
    color: #0EA5EA;
    border-bottom: 1px solid #0EA5EA;
}

.article-typography img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-day .article-typography img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-typography table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-typography table th {
    background-color: rgba(14, 165, 234, 0.2);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
}

.theme-day .article-typography table th {
    color: #222F43;
    background-color: rgba(14, 165, 234, 0.15);
}

.article-typography table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(230, 240, 255, 0.1);
}

.theme-day .article-typography table td {
    border-bottom: 1px solid rgba(52, 65, 97, 0.1);
}

.article-typography table tr:last-child td {
    border-bottom: none;
}

.article-typography pre {
    background-color: rgba(15, 23, 42, 0.8);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: monospace;
}

.theme-day .article-typography pre {
    background-color: rgba(15, 23, 42, 0.1);
    color: #344161;
}

.article-typography code {
    background-color: rgba(15, 23, 42, 0.8);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.theme-day .article-typography code {
    background-color: rgba(15, 23, 42, 0.1);
    color: #344161;
}

/* Special styling for Islamic content */
.article-typography .arabic {
    font-family: 'Traditional Arabic', serif;
    font-size: 1.5rem;
    line-height: 2.2;
    text-align: right;
    direction: rtl;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(14, 165, 234, 0.05);
    border-radius: 8px;
}

.theme-day .article-typography .arabic {
    background-color: rgba(14, 165, 234, 0.03);
    color: #344161;
}

.article-typography .hadith {
    border-left: 4px solid #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.theme-day .article-typography .hadith {
    background-color: rgba(76, 175, 80, 0.05);
}

.article-typography .quran {
    border-left: 4px solid #FFC107;
    background-color: rgba(255, 193, 7, 0.1);
}

.theme-day .article-typography .quran {
    background-color: rgba(255, 193, 7, 0.05);
}

/* Social Share Buttons */
.share-article {
    margin-top: 2rem;
}

.social-share .btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 10px;
    color: #E6F0FF;
}

.theme-day .social-share .btn-circle {
    color: #344161;
}

.social-share .btn-circle:hover {
    transform: translateY(-3px);
    background-color: #0EA5EA !important;
    box-shadow: 0 5px 15px rgba(14, 165, 234, 0.3);
}

.theme-day .social-share .btn-circle:hover {
    box-shadow: 0 5px 15px rgba(14, 165, 234, 0.2);
    background-color: #0A7FB5 !important;
}

.social-share .btn-circle i {
    font-size: 1rem;
}

.btn-primary {
    background-color: #0EA5EA;
    border-color: #0EA5EA;
}

.theme-day .btn-primary {
    background-color: #0A7FB5;
    border-color: #0A7FB5;
}

.btn-primary:hover {
    background-color: #0c93d1;
    border-color: #0c93d1;
}

.theme-day .btn-primary:hover {
    background-color: #096a96;
    border-color: #096a96;
}

.btn-outline-primary {
    color: #0EA5EA;
    border-color: #0EA5EA;
}

.theme-day .btn-outline-primary {
    color: #0A7FB5;
    border-color: #0A7FB5;
}

.btn-outline-primary:hover {
    background-color: #0EA5EA;
    border-color: #0EA5EA;
    color: #ffffff;
}

.theme-day .btn-outline-primary:hover {
    background-color: #0A7FB5;
    border-color: #0A7FB5;
    color: #ffffff;
}

.link-primary {
    color: #0EA5EA !important;
    text-decoration: none;
}

.theme-day .link-primary {
    color: #0A7FB5 !important;
}

.link-primary:hover, .link-primary:focus {
    color: #0c93d1 !important;
    text-decoration: underline;
}

.theme-day .link-primary:hover, .theme-day .link-primary:focus {
    color: #096a96 !important;
}

:focus-visible {
    outline: 2px solid #0EA5EA;
    outline-offset: 2px;
}

.theme-day :focus-visible {
    outline: 2px solid #0A7FB5;
}

.form-control:focus {
    border-color: #0EA5EA;
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 234, 0.25);
}

.theme-day .form-control:focus {
    border-color: #0A7FB5;
    box-shadow: 0 0 0 0.25rem rgba(10, 127, 181, 0.25);
}

.form-check-input:checked {
    background-color: #0EA5EA;
    border-color: #0EA5EA;
}

.theme-day .form-check-input:checked {
    background-color: #0A7FB5;
    border-color: #0A7FB5;
}

.page-item.active .page-link {
    background-color: #0EA5EA;
    border-color: #0EA5EA;
}

.theme-day .page-item.active .page-link {
    background-color: #0A7FB5;
    border-color: #0A7FB5;
}

.page-link {
    color: #0EA5EA;
}

.theme-day .page-link {
    color: #0A7FB5;
}

.page-link:hover {
    color: #0c93d1;
}

.theme-day .page-link:hover {
    color: #096a96;
}

.progress-bar {
    background-color: #0EA5EA;
}

.theme-day .progress-bar {
    background-color: #0A7FB5;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #0EA5EA;
}

.theme-day .dropdown-item.active, .theme-day .dropdown-item:active {
    background-color: #0A7FB5;
}

.list-group-item-primary {
    color: #ffffff;
    background-color: #0EA5EA;
}

.theme-day .list-group-item-primary {
    color: #ffffff;
    background-color: #0A7FB5;
}

.list-group-item-primary.list-group-item-action:hover, 
.list-group-item-primary.list-group-item-action:focus {
    color: #ffffff;
    background-color: #0c93d1;
}

.theme-day .list-group-item-primary.list-group-item-action:hover, 
.theme-day .list-group-item-primary.list-group-item-action:focus {
    color: #ffffff;
    background-color: #096a96;
}

/* Author Bio Styling */
.author-bio {
    margin: 2rem 0;
    padding: 1.5rem;
}

.theme-day .author-bio {
    background-color: #F9FBFF !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.theme-day .content-article {
    background-color: #F9FBFF !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.theme-day .entry-meta.meta-1,
.theme-day .entry-meta.meta-2 {
    color: #344161 !important;
}

.theme-day .bg-primary {
    background-color: #0A7FB5 !important;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.author-image img.avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.rounded-circle {
    border-radius: 50%;
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-2 {
    border-width: 2px;
}

.border-primary {
    border-color: #0EA5EA;
}

.theme-day .border-primary {
    border-color: #0A7FB5;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.me-4 {
    margin-right: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    color: #ffffff;
    background-color: #0EA5EA;
}

.theme-day .badge {
    background-color: #0A7FB5;
}

.alert-primary {
    color: #084298;
    background-color: #cfe2ff;
    border-color: #0EA5EA;
}

.theme-day .alert-primary {
    border-color: #0A7FB5;
}

.badge {
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.card-primary {
    border-color: #0EA5EA;
}

.theme-day .card-primary {
    border-color: #0A7FB5;
}

.card-primary .card-header {
    background-color: #0EA5EA;
    color: #ffffff;
}

.theme-day .card-primary .card-header {
    background-color: #0A7FB5;
}

.tooltip-inner {
    background-color: #0EA5EA;
}

.theme-day .tooltip-inner {
    background-color: #0A7FB5;
}

.bs-tooltip-top .tooltip-arrow::before, 
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: #0EA5EA;
}

.theme-day .bs-tooltip-top .tooltip-arrow::before, 
.theme-day .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: #0A7FB5;
}

.bs-tooltip-end .tooltip-arrow::before, 
.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: #0EA5EA;
}

.theme-day .bs-tooltip-end .tooltip-arrow::before, 
.theme-day .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: #0A7FB5;
}

.bs-tooltip-bottom .tooltip-arrow::before, 
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: #0EA5EA;
}

.theme-day .bs-tooltip-bottom .tooltip-arrow::before, 
.theme-day .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: #0A7FB5;
}

.bs-tooltip-start .tooltip-arrow::before, 
.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: #0EA5EA;
}

.theme-day .bs-tooltip-start .tooltip-arrow::before, 
.theme-day .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: #0A7FB5;
}

.bg-primary-soft {
    background-color: rgba(14, 165, 234, 0.15);
}

.theme-day .bg-primary-soft {
    background-color: rgba(10, 127, 181, 0.15);
}

.text-primary {
    color: #0EA5EA;
}

.theme-day .text-primary {
    color: #0A7FB5;
}

.author-social a {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hover-text-primary:hover {
    color: #0EA5EA !important;
}

.theme-day .hover-text-primary:hover {
    color: #0A7FB5 !important;
}

/* Related Posts Styling */
.related-posts .section-title {
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.related-posts .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0EA5EA;
}

.theme-day .related-posts .section-title:after {
    background-color: #0A7FB5;
}

.card-blog-1 {
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-blog-1:hover {
    transform: translateY(-5px);
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.theme-day .shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rounded-top-lg {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.top-right-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.post-title {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-title-link:hover .post-title {
    color: #0EA5EA;
}

.theme-day .post-title-link:hover .post-title {
    color: #0A7FB5;
}

.author-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.me-3 {
    margin-right: 1rem;
}

.d-block {
    display: block;
}

.me-2 {
    margin-right: 0.5rem;
}

.border-top {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-gray-800 {
    border-color: rgba(230, 240, 255, 0.1);
}

.theme-day .border-gray-800 {
    border-color: rgba(52, 65, 97, 0.1);
}

.mt-5 {
    margin-top: 3rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.p-md-5 {
    padding: 3rem;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.theme-day .shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-typography {
        font-size: 1rem;
    }
    
    .article-typography h1 {
        font-size: 1.75rem;
    }
    
    .article-typography h2 {
        font-size: 1.5rem;
    }
    
    .article-typography h3 {
        font-size: 1.25rem;
    }
    
    .article-typography h4 {
        font-size: 1.1rem;
    }
    
    .p-md-5 {
        padding: 1.5rem;
    }
    
    .social-share .btn-circle {
        width: 36px;
        height: 36px;
    }
}